aurorab1341a6
install.sh: add keyd.service setup
+18 −8
2 files changed
- M install.sh +18 −6
- M packages/pkg_utils.sh +0 −2
| @@ -56,11 +56,11 @@ if [[ $install_aur_pkg == y ]]; then | |||
| 56 | 56 | ## Install paru if it isn't already installed | |
| 57 | 57 | if ! command -v paru >/dev/null 2>&1; then | |
| 58 | 58 | 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 | |
| 61 | 61 | makepkg -sri | |
| 62 | 62 | cd .. | |
| 63 | − | rm -rf paru-bin | |
| 63 | + | rm -rf paru | |
| 64 | 64 | else | |
| 65 | 65 | log INFO "Skipping paru (already in PATH)" | |
| 66 | 66 | fi | |
| @@ -71,7 +71,7 @@ fi | |||
| 71 | 71 | ||
| 72 | 72 | ||
| 73 | 73 | ## 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." | |
| 75 | 75 | log WARN "Make sure you have already backed up all your existing config files (~/.config)" | |
| 76 | 76 | read -rp "Continue with stow (y/N): " confirm | |
| 77 | 77 | if [[ "$confirm" =~ ^[Yy]$ ]]; then | |
| @@ -108,7 +108,7 @@ fi | |||
| 108 | 108 | ||
| 109 | 109 | ||
| 110 | 110 | ## 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 | |
| 112 | 112 | if [[ "$confirm" =~ ^[Yy]$ ]]; then | |
| 113 | 113 | log INFO "Taking backup of neovim config (if already exists)" | |
| 114 | 114 | mv ~/.config/nvim{,.bak} | |
| @@ -132,6 +132,18 @@ else | |||
| 132 | 132 | fi | |
| 133 | 133 | ||
| 134 | 134 | ||
| 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 | + | ||
| 135 | 147 | printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = | |
| 136 | 148 | echo "" | |
| 137 | − | log INFO "Done! 😊" | |
| 149 | + | log INFO "Done!" | |
| @@ -17,8 +17,6 @@ export pkg_utils=( | |||
| 17 | 17 | "cpio" | |
| 18 | 18 | "cryptsetup" | |
| 19 | 19 | "ddcutil" | |
| 20 | − | "efibootmgr" | |
| 21 | − | "envycontrol" | |
| 22 | 20 | "eza" | |
| 23 | 21 | "fastfetch" | |
| 24 | 22 | "fd" | |