1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00
Commit Graph

771 Commits

Author SHA1 Message Date
14805b3f9a
picom: Increase corner radius
Signed-off-by: Joe Groocock <me@frebib.net>
2022-08-31 20:43:20 +00:00
e03c93bf39
gtk: Force GTK 4.0 to use the GTK 3 theming
This non-compliant turd doesn't respect the config file, because of
course it doesn't. Enforce the theme with yet another messy environment
variable.

Signed-off-by: Joe Groocock <me@frebib.net>
2022-08-31 20:43:12 +00:00
ba6173e0ee
git: Dynamically identify the "default" branch
This broadly assumes that the "default" remote is called "origin", but
that's better than assuming that plus the default branch name.

Thanks to https://joshtronic.com/2020/08/09/how-to-get-the-default-git-branch/

Suggested-by: Chris Lane <chris@chrislane.com>
Signed-off-by: Joe Groocock <me@frebib.net>
2022-08-31 20:43:06 +00:00
dcfd191613
systemd: Add pipewire+wireplumber, remove pulseaudio
Gotta go fast. pipewire seems to be working pretty well so far.

Signed-off-by: Joe Groocock <me@frebib.net>
2022-03-21 22:21:37 +00:00
db40ef08bb
picom: Update to picom 9.1, enable rounded corners
As always, tweak some of the visuals. Tone down the shadow opacity to
make the non-rounded corner shadows less obvious. Hopefully I can undo
that a bit in the future.

Signed-off-by: Joe Groocock <me@frebib.net>
2022-03-21 22:12:40 +00:00
839d972e95
systemd-run-i3: Add ExitType=cgroup to user units
systemd v250 added ExitType= which allows systemd to wait for all
processes in the cgroup to exit before terminating the unit, instead of
only the main pid. This has many uses, but for desktop applications in
particular it allows self-restarting (forking) applications to correctly
fork/restart and other background processes that may have been spawned
to continue when their forked parent inevitably exits first (like ssh
processes inside terminals).

Signed-off-by: Joe Groocock <me@frebib.net>
2022-03-21 21:46:28 +00:00
ece2eb878a
picom: Avoid odd-looking shadows in Firefox
picom cannot and does not attempt to use the window geometry from the
non-rectangular menu+friend windows that Firefox displays which causes a
strange floating blur/shadow behind the menus. Avoid this by disabling
both blur and shadows on those pop-ups until picom can handle it better.

Signed-off-by: Joe Groocock <me@frebib.net>
2022-03-21 21:44:39 +00:00
6f1569b35d
alacritty: log at Warn and above
Info produces causes logging under normal use, which creates useless log
files in /tmp, which I don't need.

Signed-off-by: Joe Groocock <me@frebib.net>
2022-03-21 21:42:48 +00:00
5035afc8b4
X11, dpi: reliably set xcursor size
Other minor tweaks to the dpi script to ensure everything gets updated
correctly.

Signed-off-by: Joe Groocock <me@frebib.net>
2022-03-21 21:41:57 +00:00
650eb08a80
aliases: rm is always verbose
That way I can see when I've been an idiot and deleted something I
actually needed.

Signed-off-by: Joe Groocock <me@frebib.net>
2022-03-21 21:35:00 +00:00
535697a31c
aliases: Be consistent with abort/continue/skip aliases
Laziness prevails 🚀

Signed-off-by: Joe Groocock <me@frebib.net>
2022-03-04 11:32:27 +00:00
f520784d9b
zsh: LESS with more usability
These defaults are heavily inspired by the default of $SYSTEMD_LESS
provided by systemd themselves.

Signed-off-by: Joe Groocock <me@frebib.net>
2022-03-04 11:21:55 +00:00
ef4b739af1
element: Enable labs settings
Signed-off-by: Joe Groocock <me@frebib.net>
2022-02-21 21:48:19 +00:00
0ba6dc8e4b
polybar: Update to upstream feat/units config
Fix a few things that changed along the way.

Signed-off-by: Joe Groocock <me@frebib.net>
2022-02-21 20:44:17 +00:00
55e492cd8f
vim: disable eol $ marker
This provides little value and causes clickable links inside Vim to take
the $ symbol with them into browsers, which outweighs the small gain.
Text is visibly more readable without it, too.

Signed-off-by: Joe Groocock <me@frebib.net>
2022-02-16 15:26:50 +00:00
19663fa4f1
polybar: Adjust padding to improve element distribution
This looks more aestetically pleasing to me, and is not so off-centre
between the bottom of the window and the bottom of the screen.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-12-03 09:49:46 +00:00
7e5b329e74
polybar, fontconfig: Update to Font Awesome 6
Signed-off-by: Joe Groocock <me@frebib.net>
2021-11-30 22:12:30 +00:00
0116be881a
rofi: Update configuration for >= 1.7.1
Fix theming and window size since the update had breaking changes.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-11-29 22:29:11 +00:00
90038f8795
zsh: Migrate zdharma -> zdharma-continuum
https://github.com/zdharma-continuum/zinit/wiki/Migration-to-zdharma-continuum
https://www.reddit.com/r/zsh/comments/qinb6j/httpsgithubcomzdharma_has_suddenly_disappeared_i/

Signed-off-by: Joe Groocock <me@frebib.net>
2021-11-25 11:12:41 +00:00
7775fb62e4
zsh: Disable zsh fast-syntax-highlighting chromas
This fixes `zi` being extremely slow in the shell.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-11-25 11:02:15 +00:00
a48288ad50
zsh: Simplify fish-like compressed working directory
Works the same, is simpler and less prone to doing the wrong thing,
hopefully...

Signed-off-by: Joe Groocock <me@frebib.net>
2021-11-25 11:00:40 +00:00
b519b48e83
ssh: Add systemd ssh@ unit for persistent master connections
These rely on SSH configuring ControlMaster and ControlSocket for the
host so the connection can be reused.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-11-25 10:00:49 +00:00
8e74101f3e
git: Fetch GitHub pull request refs by default
I can't find a way to make this a wildcard that applies to all remotes,
so this adds the two most common remotes that I'm likely to use.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-11-23 11:21:45 +00:00
898190a99f
git: Use fast-forward-only merge by default
Merge commits are nasty, so make sure they're only created explicitly
and never by default.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-11-23 11:16:08 +00:00
d771bf0448
environment: Re-enable PASSWORD_STORE_DIR override
gopass seems to be behaving itself more now.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-11-23 11:10:39 +00:00
634db612a1
dunst: Fix window geometry with new version
This more or less replicates the old behaviour with window placement
using the new configuration options.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-11-23 11:08:09 +00:00
a7778c30a7
i3: Add $mod+z otp selector
Signed-off-by: Joe Groocock <me@frebib.net>
2021-11-23 11:05:34 +00:00
49554ca359
i3: Fix $mod+i "paste" with text starting with a dash
Shell escaping is the devil

Signed-off-by: Joe Groocock <me@frebib.net>
2021-11-23 11:04:38 +00:00
895d0ff0aa
zsh: Print normal in RPROMPT in Vim mode
Change the cursor to an `_` too, to make it abundantly clear that the
mode has changed. Hopefully this stops me screwing up and accidentally
entering vim mode without realising.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-10-18 10:08:33 +00:00
7be83b7b70
zsh: Fix fzf-history-search over SSH
Reorder and remove duplicate keybinds

Signed-off-by: Joe Groocock <me@frebib.net>
2021-10-18 10:07:48 +00:00
a41314ca34
alacritty: Update deprecated transparency option
Signed-off-by: Joe Groocock <me@frebib.net>
2021-10-10 09:26:38 +00:00
3158db0946
aliases: docker compose is a docker subcommand
compose v2 does away with the docker-compose binary and provides 'docker
compose' directly.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-10-10 09:25:50 +00:00
e25953d913
aliases: fix gfrb rebasing on non-default origins
Add gfrbi for an interactive fetch-and-rebase.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-09-21 16:53:07 +00:00
a6f162b7e2
scripts/dpi: Add more xsettings configuration from xrdb
Read some standard xsettings values out of xrdb and set them in
xsettingsd. Use bash instead of sh to allow for `set -o pipefail`.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-08-01 19:18:15 +00:00
85ab256484
scripts/dpi: Clean-up, improvements and shellcheck-compliant
Fix all shellcheck warnings, mostly by adding double quotes around vars.
Re-order operations and run multiple jobs in parallel to speed up DPI
change speed.
Remove all use of bc, simple sh integer division is sufficient in all
cases.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-08-01 19:05:07 +00:00
d1c4112ee3
alacritty: Remove deprecated 'url' section
Signed-off-by: Joe Groocock <me@frebib.net>
2021-07-31 00:19:10 +00:00
8c8048ebcb
vim: Add several useful/common FileType configs
Unconditionally enable ColorColumn. Any vim without it is not worth
using anyway.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-07-31 00:15:57 +00:00
019a3f9c18
vim: Replace YouCompleteMe/syntastic with ale/deoplete
These seem to work better out of the box and don't have an awfully
obtuse setup process involving certain unnamed dynamic languages.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-07-31 00:14:10 +00:00
0ff266f257
picom: Disable vsync
This improves window resize and move performance and general
responsiveness a considerable amount on the laptop Intel iGPU.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-07-31 00:10:48 +00:00
d6f2800ddd
fontconfig: disable hinting on sans-serif fonts
Hinting apparently makes Chrom{e,ium}/Electron display fonts horribly,
whilst everything else ever is fine with it on.
Re-organise and tidy up fontconfig slightly.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-07-31 00:08:58 +00:00
524e5132ba
environment: add ~/.local/bin to $PATH
Python's pip amongst other things likes to put binaries in here.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-07-31 00:08:02 +00:00
dde4e776f5
aliases: git: add gbrl branch-list with fzf alias
Very useful for previewing each branch in an interactive manner.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-07-31 00:06:05 +00:00
1bd8081663
aliases: git: attempt to elide merge commits in glg
In theory this should give a much cleaner commit log without all of the
noise from merge commits in poorly maintained repos.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-07-31 00:04:30 +00:00
9224e953e2
Revert "X11: enable hardware video acceleration in firefox"
This reverts commit 3b34decb42.

Enabling EGL causes firefox to stop rendering when the compositor is
stopped or restarted. Whilst there are supposed performance
improvements, those are negated by bugs that make it unusable at the
current time.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-07-26 16:09:45 +00:00
a0d9149013
aliases: fix all shellcheck warnings
Most of these changes have no semantic bearing, but some of the warnings
specifically related to quoting fix some word-splitting and globbing
issues with certain scripts.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-06-05 15:24:46 +00:00
c1f65fc03d
aliases: replace cdt alias with function
This adds an optional argument to `cdt` to allow specifying the
temporary directory prefix instead of the default `tmp`. This also
shortens the random character string from 10 (GNU mktemp) to 8.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-06-05 15:24:46 +00:00
92c8dbc019
aliases: consistently quote ls/directory aliases
Consistency is key.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-05-25 11:00:48 +00:00
315f6b6b9a
aliases: remove unused global aliases
I used to use these occasionally, but now I increasingly find myself
typing the commands out in full. They really don't save much time at
all.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-05-25 10:59:34 +00:00
c1903f5726
aliases: remove ssh pseudo-tty override
Sometimes SSH needs to be called without a pty as it breaks some
non-interactive workflows, such as `docker save | ssh .. docker load`.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-05-25 09:59:40 +00:00
24dfc13c3f
git: log/show dates in ISO8601 in UTC
Consistency is key. Timezones are the devil.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-05-25 09:58:32 +00:00