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

752 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
1272045e9a
systemd: replace autocutsel with parcellite
Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-11 10:26:54 +01:00
7b8191b737
aliases: add alert/silence alertmanager/amtool shorthands
Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-11 09:30:48 +01:00
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
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
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
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
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
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
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
ec76965c70
vim: group splitting options together
Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 22:01:22 +01:00
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
e7b3c5e3e0
aliases: remove unused screenfetch/neofetch aliases
Signed-off-by: Joe Groocock <me@frebib.net>
2020-08-10 21:32:24 +01:00
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
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
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
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