Commit Graph
100 Commits
Author SHA1 Message Date
frebib 521f462141 systemd: replace profile.service with systemd-environment.d generator
This moves loading of the environment variables out of the normal
service startup flow and has systemd load the variables early.
Shim ZSH to load the environment.d configuration when running without
systemd.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-11 12:19:09 +01:00
frebib 322adb478a i3: start applications in systemd slices
As documented https://github.com/systemd/systemd/blob/master/docs/DESKTOP_ENVIRONMENTS.md
processes should be grouped by their user-facing priority into slices.
This should add fine-grained control to resource-management if later
required.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-11 10:27:04 +01:00
frebib 1272045e9a systemd: replace autocutsel with parcellite
Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-11 10:26:54 +01:00
frebib 7b8191b737 aliases: add alert/silence alertmanager/amtool shorthands
Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-11 09:30:48 +01:00
frebib 49b5924f14 aliases: use grv for git-revert
git revert is a more common/useful command than git remote -v

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-11 09:28:30 +01:00
frebib 91ac3d470d imgur-screenshot: remove unused configuration
This has been replaced by scripts/screenshot

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-11 09:19:01 +01:00
frebib 715349d0f4 scripts/screenshot: add proper arg parsing
This fixes usage of --active and --clip together. I'm not even sure how
it worked before this tbh.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-11 09:14:16 +01:00
frebib 0bf16821d5 systemd: use bin/sh over usr/bin/bash
Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 22:42:40 +01:00
frebib 60bf423556 dotfiles: move .config/* to root
This seems to make more sense. Almost all files were within .config
anyway.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 22:42:14 +01:00
frebib 20f48e25b4 vim: attempt to improve yaml auto-indent
Hopefully this should prevent auto-indent when hitting <CR> after
inserting a :. Whether it works or not, we'll have to see.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 22:02:24 +01:00
frebib 35d08af7ce vim: remove GVim settings
I never use gvim. I'm not sure why I added these here in the first
place. The defaults should do the same thing anyway

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 22:01:42 +01:00
frebib ec76965c70 vim: group splitting options together
Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 22:01:22 +01:00
frebib 8a5408c002 zsh: rearrange files into sane XDG dirs
Move non-config into XDG_DATA_HOME including Antigen and ZSH history
files.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 21:58:23 +01:00
frebib e7b3c5e3e0 aliases: remove unused screenfetch/neofetch aliases
Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 21:32:24 +01:00
frebib eddb464053 aliases: remove z=zsh alias as z conflicts
Conflicts with `z` the shell command for jumping to frecent directories

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 21:32:06 +01:00
frebib 30be10a7f4 zsh: replace rupa/z with agkozak/zsh-z
zsh-z is a zsh-native plugin which can be installed with antigen. It is
a drop-in replacement and does the same thing, but with less management
overhead.

Set _Z_DATA to be in $XDG_DATA_HOME to un-clutter ~ a little more

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 21:30:59 +01:00
frebib 8e91156b4e i3: generate secure passwords, strip newline
Add -s flag to pwgen to generate cryptographically secure passwords and
strip the newline when adding the value to the clipboard to prevent
accidental submit actions when pasting.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 21:30:59 +01:00
frebib bd1671fcc8 i3: run pwgen without systemd-run
systemd-run doesn't play nicely with xclip

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 21:30:58 +01:00
frebib 561582734e polybar: use 'polybar-msg cmd restart' to reload
This is technically more of a restart than a reload, but it's the
closest thing without actually restarting the main pid.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 21:30:40 +01:00
frebib c1ff08b878 i3: reload on 'systemctl reload i3'
Instead of restart. Reload is called reload for a reason

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 20:32:42 +01:00
frebib ce595c81b6 zsh: remove annoying ^V edit-command-line
I activate this all the time, but never actually want to use it. I find
it more annoying than helpful, so it can be banished forever!

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 19:29:03 +01:00
frebib 5c105f4851 alacritty: auto-copy selection to PRIMARY clip
This is faster than xclip et al, so doesn't hurt to enable as well

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 19:27:50 +01:00
frebib 8e32bc8618 alacritty: retain foreground colour during selection
This mirrors the old behaviour of Termite, which I think I prefer the
look of.

Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 19:24:34 +01:00
frebib 67676df08a element: add config.json for Arc Dark theme
Signed-off-by: Joe Groocock <me@frebib.net>
2020-07-27 00:05:59 +01:00
frebib 7209ef65f6 alacritty: move dynamic_title to window.dynamic_title
Upstream change: https://github.com/alacritty/alacritty/commit/18cf806a27f06185b1ceb2d63f3b9bc2dd3dc80e

Signed-off-by: Joe Groocock <me@frebib.net>
2020-07-23 19:43:07 +01:00
frebib 2d414258ca rofi-emoji: replace rofi-emoji script with rofi plugin
https://github.com/Mange/rofi-emoji

Signed-off-by: Joe Groocock <me@frebib.net>
2020-07-22 20:55:17 +01:00
frebib 41fff2dd6c i3: increase inner gaps to 24px
Signed-off-by: Joe Groocock <me@frebib.net>
2020-07-18 16:49:25 +01:00
frebib 1f6518193e aliases: force editor with gcm alias
This always opens the editor after writing a commit message for final
tweaking before committing

Signed-off-by: Joe Groocock <me@frebib.net>
2020-07-14 21:08:54 +01:00
frebib 08373e019a vim: add Salt SLS syntax highlighting
This is better than Jinja+YAML highlighters alone as it combines both
into one

Signed-off-by: Joe Groocock <me@frebib.net>
2020-07-14 21:07:18 +01:00
frebib 58e3e31d7d i3: start jetbrains splash as floating
Signed-off-by: Joe Groocock <me@frebib.net>
2020-07-14 21:03:06 +01:00
frebib fa0e057e2e mailnag: remove mailnag
Signed-off-by: Joe Groocock <me@frebib.net>
2020-06-21 11:03:01 +01:00
frebib 6943839b3b qt5: replace QT_STYLE_OVERRIDE with qt5ct config
The latest version of qt5 ignores these environment variables and reads the configuration instead

Signed-off-by: Joe Groocock <me@frebib.net>
2020-06-21 11:02:53 +01:00
frebib b52496bbb3 scripts/screenshot: add --active and --clip args
--active uses the active window as selection boundary, instead of the root window, or prompting for a window selection
--clip adds the image to the clipboard and exits without uploading

Signed-off-by: Joe Groocock <me@frebib.net>
2020-05-30 00:28:27 +01:00
frebib 308eff050e aliases: signoff with git-commit aliases
Remove gcmst as it is almost never used

Signed-off-by: Joe Groocock <me@frebib.net>
2020-05-30 00:22:27 +01:00
frebib bae4f0b819 solaar: hide window on startup
The new default behaviour is to show, not hide

Signed-off-by: Joe Groocock <me@frebib.net>
2020-05-30 00:21:00 +01:00
frebib ee9af5eeca zsh: move compinit to end of zshrc
This saves one compinit load, from 3 to 2 which should slightly reduce startup time
2020-05-17 12:39:39 +01:00
frebib fbb43dfff5 picom: speed up fading slightly 2020-05-04 08:53:21 +01:00
frebib d407512522 scripts/rofi-emoji: simplify clipboard/typing logic
Always do both, because that is the easiest thing to do
2020-04-02 13:19:23 +01:00
frebib f67a8e5f80 scripts/screenshot: reduce window shadow to 60% opacity 2020-04-02 12:49:11 +01:00
frebib d1772bc178 vim: gitcommit: add right gutter at column 72
Also set the tab indent to 4 chars instead of the default 8
2020-04-02 11:41:18 +01:00
frebib 7f79cca7bc scripts/systemd-run-i3: fix overriding unit name
systemd-run uses the last passed argument for each flag, so specify the
default first, and the override afterwards, if set
2020-04-02 11:33:57 +01:00
frebib 928ef584e6 picom: fix focus/blur/shadows with Zoom 2020-04-02 11:32:21 +01:00
frebib b58469c1ea i3: rearrange terminal shortcuts
Also directly invoke alacritty instead of i3-sensible-terminal as the
arguments passed are alacritty specific. Ideally there would be a
wrapper script that handles terminal-emulator specific arguments so this
would work with many/multiple emulators.
2020-04-02 11:30:35 +01:00
frebib 5d55a2eeba aliases: add gcp alias for cherry-pick 2020-03-28 15:23:35 +00:00
frebib 2e5b5d18fe i3: don't run rofi-* in systemd
For some reason, it breaks xclip in strange ways, possibly because the systemd unit closes and kills the xclip process
2020-03-28 14:17:50 +00:00
frebib 6e28f1d0c4 i3: xkill on key release 2020-03-28 14:14:38 +00:00
frebib 3958c544a3 alacritty: set 120x40 default buffer size 2020-03-25 18:03:14 +00:00
frebib 45680df7c5 scripts/screenshot: add shadow to full-window snaps 2020-03-24 23:07:28 +00:00
frebib e6bf7b181f systemd: picom should wait for dbus to start 2020-03-24 22:29:45 +00:00
frebib cd5cb41179 top: reduce refresh delay to 0.5s 2020-03-24 22:28:49 +00:00
frebib 40946fed7c fontconfig: override SFMono with default monospace font
This makes Atlassian websites look more consistent with the rest of the browser experience
2020-03-24 22:27:37 +00:00
frebib 54bc7448b9 i3: add $mod+x for xkill, rebind xprop to $mod+shift+x 2020-03-24 22:26:38 +00:00
frebib 937e0cf2dc i3: run screenshot utilities directly so xclip works 2020-03-24 22:25:02 +00:00
frebib e017568b41 systemd: parameterise autocutsel service
Enable three invocations, one for each kind of clipboard
With this, they should all now stay in sync (I hope)
2020-03-24 22:03:22 +00:00
frebib e43b6af0ad alacritty: bind Ctrl+Shift+Action for font-size change 2020-03-24 21:59:08 +00:00
frebib fa79deeb05 gitignore: exclude gopass logo
Annoyingly this file is auto-generated in the config directory, even though it's definitely not configuration 🤷
2020-03-22 23:17:45 +00:00
frebib 90fc09e1a9 scripts/fontawesome: simplify subshell calls 2020-03-22 23:09:04 +00:00
frebib 7017703cab i3: kill any rofi instances before starting
Rofi doesn't allow starting without creating/checking a pidfile, for some strange reason, so we work around it like this
2020-03-22 23:00:17 +00:00
frebib 4a646b6573 aliases: scp is always recursive
This should be the default >.<
2020-03-22 12:46:26 +00:00
frebib 37ad234319 aliases: add ginit alias 2020-03-22 12:46:07 +00:00
frebib 5547ec844c i3/powermenu: add pretty icons 2020-03-22 12:44:57 +00:00
frebib 934944d248 i3: don't stop desktop on restart
This allows restarting the i3 process without killing the session
2020-03-22 12:36:50 +00:00
frebib ec0b562960 picom: log info; reduce excessive log spam 2020-03-22 12:36:06 +00:00
frebib 028c549ea9 polybar: delay before closing yay window
To give the user enough time to actually read the output
2020-03-22 12:35:49 +00:00
frebib 96902aee6b X11: don't fail xprofile when xmodmap is absent 2020-03-22 12:35:16 +00:00
frebib c495293fb7 i3/powermenu: exit systemd session on logout 2020-03-22 12:34:05 +00:00
frebib 9aeeee58d0 i3: launch i3 programs with systemd
This parents each program within it's own service/scope to the systemd user session, independent of i3
2020-03-22 12:33:26 +00:00
frebib 8e86599372 i3/powermenu: fix rebooting when non-interactive 2020-03-22 12:32:00 +00:00
frebib 4b52c21ac9 alacritty: set alacritty as default terminal 2020-03-22 11:10:14 +00:00
frebib d985ba7b12 alacritty: increase background opacity for visual 2020-03-22 10:54:27 +00:00
frebib fb68f77812 alacritty: increase history buffer 10x 2020-03-22 10:47:49 +00:00
frebib 7deef0edfc browser: set default browser to Firefox 2020-03-22 10:47:30 +00:00
frebib 82d7d0409f X11: add gtk2 config to X11 profile 2020-03-22 10:47:13 +00:00
frebib 133af4caf1 X11: enable pixel-accurate scrolling in firefox 2020-03-22 10:37:42 +00:00
frebib b59f33a1f5 zsh: systemd: explicitly set pager with args
Sometimes systemd ignores the $LESS variable, so force it a little harder
2020-03-22 10:28:14 +00:00
frebib 6dc01ac2bd polybar: fix updates/weather clickable icons 2020-03-22 09:55:19 +00:00
frebib ce2d5e267a polybar: fix gateway ping for v4-only networks 2020-03-22 09:54:42 +00:00
frebib 874e177b8f systemd: polybar wait for i3
This should ensure that the IPC socket to get i3 workspaces works on polybar startup

In reality this doesn't help because systemd marks the service as active before the socket file is created, so startup is still racy
2020-03-21 23:37:05 +00:00
frebib 7b193b1b99 zsh: less enable mouse support
Usually this works most of the time, but in some invocations mouse does not work without this,

e.g. systemctl status
2020-03-21 23:37:05 +00:00
frebib 16c629fc70 zsh: enable multibyte (unicode) support
I don't know why I had this disabled. Probably copy-paste when I had no idea what it meant or did
2020-03-21 23:37:05 +00:00
frebib 02041c3b27 picom: use ewmh active-window and render damage 2020-03-21 23:37:04 +00:00
frebib 18aa625eca picom: disable logging to file 2020-03-21 23:37:04 +00:00
frebib a45ef24aff picom: update Firefox class to 'firefox' 2020-03-21 23:37:04 +00:00
frebib d741e2e6fa zsh: fix backspacing across newlines in vi-mode 2020-03-21 23:37:04 +00:00
frebib 080e92b740 zsh: add Ctrl+W (emacs delete word) in Vi mode
Yes, I see the irony in this one, it's just too convenient to pass up
2020-03-21 23:37:04 +00:00
frebib 9e9ba8a76f zsh: add Ctrl+F for fuzzy file search 2020-03-21 23:37:04 +00:00
frebib f2c67c19aa zsh: tty -s prints nothing
Remove redirection of stdout/stderr as they're pointless
2020-03-21 23:37:03 +00:00
frebib 8ceb3434a0 polybar: prefer 'systemd-run --no-block' over 'i3-msg exec' 2020-03-21 23:37:03 +00:00
frebib 1929a94ef4 i3: use light instead of xbacklight 2020-03-21 23:37:03 +00:00
frebib ccce866b55 systemd: add & enable xsettingsd service
Update `dpi` script to interact with systemd units
2020-03-21 23:37:02 +00:00
frebib bbfb8fff3f gtk2: remove include to non-existent file 2020-03-21 23:03:43 +00:00
frebib ff0d449fa5 git: add 'git leaders' alias
Lists git committers in order of commit count, for a repo
2020-03-21 23:02:28 +00:00
frebib 936e8828c8 git: use absolute dates in git-log 2020-03-21 23:01:50 +00:00
frebib fb480c73c5 git: prune deleted branches on fetch/pull 2020-03-21 23:01:01 +00:00
frebib bc89989bbb polybar: use nct6775 cputemp hwmon module 2020-03-21 22:56:09 +00:00
frebib 2770fefefd polybar: add gputemp applet
rename temperature to cputemp for consistency
2020-03-21 22:56:09 +00:00
frebib 0256369cd6 scripts/screenshot: update screenshot scp path 2020-03-21 22:56:09 +00:00
frebib 1fdb93e356 scripts/gtav: add gtav/netsplit scripts 2020-03-21 22:56:09 +00:00
frebib f379b758c9 systemd: add & enable nm-applet service 2020-03-21 22:51:42 +00:00
frebib 93a2899c7b i3: allow popups to interrupt fullscreen windows 2020-03-21 22:33:10 +00:00