diff options
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/dotfiles | 18 |
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() { |
