Krolyxon
Commit b1341a6

Branches

Refs →

aurorab1341a6

install.sh: add keyd.service setup

Author
krolxon
Date
2026-01-01 17:49 +0530
Parent
16cc31b
Commit
b1341a67b17a28706cc9f85fe834af7b6057a107

+18 −8

2 files changed

  1. M install.sh +18 −6
  2. M packages/pkg_utils.sh +0 −2
M install.sh View
@@ -56,11 +56,11 @@ if [[ $install_aur_pkg == y ]]; then
5656 ## Install paru if it isn't already installed
5757 if ! command -v paru >/dev/null 2>&1; then
5858 log INFO "Installing Paru (AUR package manager)"
59− git clone https://aur.archlinux.org/paru-bin.git
60− cd paru-bin
59+ git clone https://aur.archlinux.org/paru.git
60+ cd paru
6161 makepkg -sri
6262 cd ..
63− rm -rf paru-bin
63+ rm -rf paru
6464 else
6565 log INFO "Skipping paru (already in PATH)"
6666 fi
@@ -71,7 +71,7 @@ fi
7171
7272
7373 ## Setup dotfiles
74−log WARN "⚠️ This will DELETE any conflicting files and replace them with symlinks from this repo."
74+log WARN "This will DELETE any conflicting files and replace them with symlinks from this repo."
7575 log WARN "Make sure you have already backed up all your existing config files (~/.config)"
7676 read -rp "Continue with stow (y/N): " confirm
7777 if [[ "$confirm" =~ ^[Yy]$ ]]; then
@@ -108,7 +108,7 @@ fi
108108
109109
110110 ## Setup neovim dotfiles
111−read -rp "Clone neovim dotfiles as well? (y/N): " confirm
111+read -rp "Setup neovim configuration as well? (y/N): " confirm
112112 if [[ "$confirm" =~ ^[Yy]$ ]]; then
113113 log INFO "Taking backup of neovim config (if already exists)"
114114 mv ~/.config/nvim{,.bak}
@@ -132,6 +132,18 @@ else
132132 fi
133133
134134
135+## Install and setup Keyd
136+read -rp "Configure and enable Keyd? (y/N): " confirm
137+if [[ "$confirm" =~ ^[Yy]$ ]]; then
138+ log INFO "Copying keyd configuration to /etc/keyd/default.conf"
139+ sudo cp "$currentDir/system/etc/keyd/default.conf" /etc/keyd/
140+ sudo systemctl enable --now keyd.service \
141+ && log INFO "Successfully enabled keyd.service" \
142+ || log ERROR "Couldn't enable keyd.service"
143+fi
144+
145+
146+
135147 printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
136148 echo ""
137−log INFO "Done! 😊"
149+log INFO "Done!"
M packages/pkg_utils.sh View
@@ -17,8 +17,6 @@ export pkg_utils=(
1717 "cpio"
1818 "cryptsetup"
1919 "ddcutil"
20− "efibootmgr"
21− "envycontrol"
2220 "eza"
2321 "fastfetch"
2422 "fd"