frebib
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
frebib
dae7f60002
alacritty: update to 0.7.0, fix keybinds
...
Upstream change: https://github.com/alacritty/alacritty/commit/67db9b228d3b6c63484ca4b8fcae577afc0ee22a
Signed-off-by: Joe Groocock <me@frebib.net >
2020-12-17 19:21:01 +00:00
frebib
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
frebib
8d0eedb617
rofi: float based on window class
...
Upstream changed the window naming behaviour so the window stopped
floating. https://github.com/davatorium/rofi/commit/85279323e65ce6cfe0841f4dd6dcc73017db78f8
Signed-off-by: Joe Groocock <me@frebib.net >
2020-09-08 21:54:32 +01:00
frebib
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
frebib
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
frebib
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
frebib
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
frebib
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
frebib
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
frebib
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
frebib
9d34d3250b
environment: force aspell to respect XDG directories
...
Signed-off-by: Joe Groocock <me@frebib.net >
2020-08-23 11:50:27 +01:00
frebib
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
frebib
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
frebib
98990b8ac9
xournal: remove unused .xournal configuration
...
Signed-off-by: Joe Groocock <me@frebib.net >
2020-08-23 11:42:15 +01:00
frebib
4fc5fc0df6
environment: move .ts3client to $XDG_CONFIG_HOME
...
Signed-off-by: Joe Groocock <me@frebib.net >
2020-08-23 11:35:24 +01:00
frebib
3dff4ff428
environment: move .ICEauthority to $XDG_CACHE_HOME
...
Signed-off-by: Joe Groocock <me@frebib.net >
2020-08-23 11:18:30 +01:00
frebib
be88417d59
python: move .python_history to $XDG_CACHE_DIR/python
...
Courtesy of https://codeberg.org/nycex/dotfiles/commit/89fd8cc6482ba671329f39ee196f7bec4381519a
Signed-off-by: Joe Groocock <me@frebib.net >
2020-08-23 11:18:22 +01:00
frebib
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
frebib
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
frebib
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
frebib
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
frebib
ed2fa7076c
picom: move picom.conf into XDG directory
...
Signed-off-by: Joe Groocock <me@frebib.net >
2020-08-21 20:05:34 +01:00
frebib
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
frebib
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
frebib
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
frebib
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
frebib
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
frebib
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
frebib
09f36fa202
zsh: z-sy-hl redrawhook feature merged
...
Use master branch that contains the redrawhook feature and other fixes
Signed-off-by: Joe Groocock <me@frebib.net >
2020-08-18 13:29:07 +01:00
frebib
3f274253ff
scripts/systemd-run-i3: bind applications to graphical session
...
When the graphical-session target exits, this should terminal all units
bound to it.
Signed-off-by: Joe Groocock <me@frebib.net >
2020-08-18 13:17:55 +01:00
frebib
9a04e70e77
systemd: default launch systemd apps in app.slice
...
Unless specified, units will launch in `app.slice` under the assumption
that they are foreground user applications.
Update i3 configuration to remove redundant app.slice definition.
Conform to unit naming of app-{name}-{random}.service as documented in
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-18 12:49:31 +01:00
frebib
e2d1c57792
systemd: remove dependency on system bluetooth service
...
systemd user units cannot depend on systemd units as the systemd daemons
are independent processes and have no notion of each-others' services.
Signed-off-by: Joe Groocock <me@frebib.net >
2020-08-11 18:53:49 +01:00
frebib
6c4767b01e
systemd: re-apply wallpaper on xorg screen event
...
Signed-off-by: Joe Groocock <me@frebib.net >
2020-08-11 18:50:17 +01:00
frebib
e08fe1b262
i3: bind to active window with xdotool auto-type
...
Prevents accidentally typing into other windows when focus is moved.
Allows the user to perform other tasks whilst the typing continues in
the background.
Signed-off-by: Joe Groocock <me@frebib.net >
2020-08-11 16:07:37 +01:00
frebib
9316d74027
aliases: fix 'dotfiles' and 'aliases' alias
...
After moving dotfiles around, these aliases became out of sync.
Dynamically detect the path of the 'aliases' file, and set 'dotfiles' to
use the XDG config directory.
Signed-off-by: Joe Groocock <me@frebib.net >
2020-08-11 15:59:45 +01:00
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