summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-06-15 16:14:22 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-06-15 18:56:26 +0200
commitcd15a1e143f053632901c084675dffa92f5d5bce (patch)
tree0baeefa5efaa7d81feabe403fec12e66bab227db /.local
parent48b8993dacd948ce3f1426c35039c3ec38ae21e3 (diff)
downloaddotfiles-cd15a1e143f053632901c084675dffa92f5d5bce.tar.gz
dotfiles-cd15a1e143f053632901c084675dffa92f5d5bce.zip
misc: bind capslock → esc/ctrl, leftctrl → compose, and more
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/dotfiles18
1 files changed, 17 insertions, 1 deletions
diff --git a/.local/bin/dotfiles b/.local/bin/dotfiles
index 9e6bff3..1868358 100755
--- a/.local/bin/dotfiles
+++ b/.local/bin/dotfiles
@@ -5,7 +5,7 @@ declare NVIM_SRC_DIR="$HOME/.local/share/dotfiles/deps/neovim"
declare NVIM_BUILD_DIR="$HOME/.local/share/nvim"
declare -a PACKAGES_YAY=(7zip atool base-devel bash bash-completion
bash-language-server bat browserpass browserpass-firefox bzip2 cmake cpio
- ctags docker docker-buildx fd firefox foot fzf git glib2 gzip lhasa
+ ctags docker docker-buildx fd firefox foot fzf git glib2 gzip keyd lhasa
lua-language-server lzop marksman ninja pass pigz python-black ranger
ripgrep shfmt stylua tar texinfo tig tk tmux tree-sitter-cli unrar unzip
vim-language-server wl-clipboard xz yay zip)
@@ -180,6 +180,20 @@ _sync_vpn() {
}
################################################################################
+# keyd #########################################################################
+################################################################################
+
+_install_keyd() {
+ local src="$HOME/.config/keyd/default.conf" dst=/etc/keyd/default.conf
+ if [[ ! -f "$dst" ]] || ! cmp --quiet "$src" "$dst"; then
+ sudo install -D --mode 644 "$src" "$dst"
+ sudo keyd check
+ systemctl is-active --quiet keyd && sudo keyd reload
+ fi
+ systemctl is-active --quiet keyd || sudo systemctl enable --now keyd
+}
+
+################################################################################
# main() #######################################################################
################################################################################
@@ -211,6 +225,8 @@ _sync_all() {
_sync_nvim
echo "Syncing Proton VPN…"
_sync_vpn
+ echo "Installing keyd…"
+ _install_keyd
}
main() {