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

727 Commits

Author SHA1 Message Date
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
8f14e0d757
systemd: invoke xsettingsd without a shell
systemd will substitute variables in commands making the sh invocation
redundant.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-04-30 21:35:59 +01:00
d5668f82fe
aliases: add gfrb for 'git fetch && git rebase'
Signed-off-by: Joe Groocock <me@frebib.net>
2021-04-29 11:32:18 +01:00
4607175b94
aliases: add grbi for 'git rebase -i'
Signed-off-by: Joe Groocock <me@frebib.net>
2021-04-29 11:30:35 +01:00
ff9feca14c
aliases: replace dklrm with drmf
Recently I learnt that `docker rm -f` both stops and removes the
container in one go, without any races. It's much cleaner than the hack
from before so replace it outright.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-02-13 14:46:19 +00:00
6f655c20aa
zsh: remove fzf-tab plugin
This plugin is more of a hindrance than a help, even though fzf is still
really useful; just not here.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-02-01 13:50:25 +00:00
9793eb491b
zsh: remove unused x-bash-backward-kill-word
The standard backward-delete-word works just fine, so this is redundant

Signed-off-by: Joe Groocock <me@frebib.net>
2021-02-01 13:49:49 +00:00
8142cdf82f
systemd: add missing WantedBy= properties to user units
This fixes some inconsistent and incorrect startup order of the
graphical and desktop targets. xprofile will now always run as part of
xorg.target, which is before all other X-related applications that
require those settings to be in place beforehand.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-02-01 13:44:12 +00:00
69787bd90f
dpi: set cursor size with xsettings
Signed-off-by: Joe Groocock <me@frebib.net>
2021-01-30 11:48:39 +00:00
3b34decb42
X11: enable hardware video acceleration in firefox
According to the wiki, setting this value helps a lot.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-01-24 11:37:37 +00:00
03690a5f9f
X11: remove unused urxvt configuration
urxvt is a dated and broken terminal emulator. It fails to render simple
modern glyphs like emojis and powerline. There are much better
alternatives available now like Termite, Alacritty or Kitty.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-01-24 11:35:02 +00:00
00f7814f8e
git: add missing git am/cherry-pick aliases
These are shorthands for continue and abort with both git am and
cherry-pick.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-01-24 11:30:19 +00:00
b1eecdbbda
git: suppress detached-head warning. I-know-what-I-am-doing
git is not for the weak. Warnings are not for the knowing.
Shut up git.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-01-07 15:34:18 +00:00
1b3672b983
git: suppress default branch babble warning
Shut up and just make me a repo without complaining will you.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-01-07 15:34:18 +00:00
3e681a94b1
environment: override GEM_HOME to prevent ~/.gem
Note from the Arch Wiki:
    Make sure to remove gem: --user-install from /etc/gemrc

https://wiki.archlinux.org/index.php/XDG_Base_Directory#Ruby

Signed-off-by: Joe Groocock <me@frebib.net>
2021-01-05 09:43:27 +00:00
ab7532e250
environment: move PATH additions to 20-xdg-overrides
Signed-off-by: Joe Groocock <me@frebib.net>
2021-01-05 09:43:02 +00:00
3b78319653
aliases: limit dlg to last 1000 lines
This prevents the sometimes lengthy waits whilst Docker spools months or
years of container logs into the shell scrollback, shortly to be
discarded. It's rare that more than the most 1000 recent lines will be
required, and those should probably use more specific cli invocations.

Signed-off-by: Joe Groocock <me@frebib.net>
2021-01-04 15:38:34 +00:00
dae7f60002
alacritty: update to 0.7.0, fix keybinds
Upstream change: 67db9b228d

Signed-off-by: Joe Groocock <me@frebib.net>
2020-12-17 19:21:01 +00:00
e237f79831
systemd: add SyslogIdentifier for /bin/sh processes
These units appear in the journal with the identifier `sh` so set a
sensible identifier for them to aid in log readability

Signed-off-by: Joe Groocock <me@frebib.net>
2020-09-26 14:12:01 +01:00
8d0eedb617
rofi: float based on window class
Upstream changed the window naming behaviour so the window stopped
floating. 85279323e6

Signed-off-by: Joe Groocock <me@frebib.net>
2020-09-08 21:54:32 +01:00
f6b863adf3
zsh: add bash-insulter plugin
Should lighten the mood when I inevitibly fuck up typing a command.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 17:12:41 +01:00
f4b03038ee
zsh: zshenv source all environment in a loop
source only accepts one argument, so it must be called once for each
environment file.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 17:04:05 +01:00
a2ad4853ed
zsh: use ZDOTDIR over XDG_CONFIG_HOME
ZSH is programmed to prefer this ordering, so honor that in the ZSH
configuration as well.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 16:38:34 +01:00
ecb282cabb
zsh: remove unused edit-command-line zmod
This was added previously for Ctrl+V for vim editing of the
command-line, but the key-bind was removed in
ce595c81b6 but this was forgotten.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 16:37:59 +01:00
6d33d4685c
zsh: switch to zinit & zsh-fsh
These are significantly faster to load, and are actively maintained.
Functionality is almost identical from a usability perspective.
The primary motivation for this change is the several orders of
magnitude faster shell loading times, which should help with
productivity on overloaded and underpowered hardware.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 16:34:33 +01:00
5ace0bb7f4
zsh: trysource various ZSH plugins
These vary by OS/distribution and even between devices depending on what
is installed. Most of these are optional anyway so make a best-effort
attempt to load them.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 12:07:09 +01:00
c719fad76a
zsh: skip loading environment if ZDOTDIR is set
Loading the environment on every shell invocation is slow. We can speed
up shell startup a little by skipping this for ever shell because it's
loaded on login by systemd.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 12:03:27 +01:00
9d34d3250b
environment: force aspell to respect XDG directories
Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 11:50:27 +01:00
cda9cb6570
environment: split XDG base directory overrides
Move environment variable overrides for non-XDG compliant applications
into it's own file. I expect this list will get a lot longer over time.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 11:49:52 +01:00
d3910bda18
ideavim: move .ideavimrc into $XDG_CONFIG_HOME/ideavim
Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 11:42:16 +01:00
98990b8ac9
xournal: remove unused .xournal configuration
Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 11:42:15 +01:00
4fc5fc0df6
environment: move .ts3client to $XDG_CONFIG_HOME
Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 11:35:24 +01:00
3dff4ff428
environment: move .ICEauthority to $XDG_CACHE_HOME
Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 11:18:30 +01:00
be88417d59
python: move .python_history to $XDG_CACHE_DIR/python
Courtesy of 89fd8cc648

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 11:18:22 +01:00
f16cd95a0f
mimeapps: update GNOME .desktop names
Fixes using eog/evince as default image/pdf viewer applications with
xdg-open/gio open.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 02:23:18 +01:00
21f7a2b75c
systemd: nm-applet requires NetworkManger to run
Require NetworkManager tmp files before attempting to start nm-applet,
else it will fail to start if NetworkManager is not actually running.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 02:22:04 +01:00
a912db8044
systemd: add gphoto2-ffmpeg user service
Streams 720p25 video from a gphoto2-compatible camera through ffmpeg
into /dev/video* for use as a generic video/camera device.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 02:21:01 +01:00
e0ff04168a
systemd: assign default slices to user services
As per recommendations in the systemd documentation, assign session, app
or background slice allocations to the standard user services:
https://github.com/systemd/systemd/blob/master/docs/DESKTOP_ENVIRONMENTS.md#pre-defined-systemd-units

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-23 01:16:54 +01:00
ed2fa7076c
picom: move picom.conf into XDG directory
Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-21 20:05:34 +01:00
ba47b9b00d
polybar: scale font & tray icons with dpi
This is using my hacked branch of polybar, but it works well enough.
Padding isn't properly scaled, though.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-19 23:00:59 +01:00
cdbe8ce855
systemd: parameterise wallpaper.service
Remove all invocations of 'feh' for setting wallpaper that are now
redundant as this service should handle setting the wallpaper in all
relevant situations.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-19 20:49:10 +01:00
03ae85dff5
i3: remove i3blocks references
i3blocks is long gone so these do nothing now

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-19 15:16:50 +01:00
ab4bb4e480
zsh: enabled extendedhistory
This saves timestamps and command durations for all history entries

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-19 12:28:13 +01:00
2cace82b29
systemd: move xdg-user-dirs-update.service to default.target
Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-18 13:53:50 +01:00
39d5f2a370
systemd: require sys/class/bluetooth for blueman-applet
This should prevent the unit from failing when there is no bluetooth
device in the system.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-18 13:53:16 +01:00