WIP: Adds kanatctl to runs/after/system, adds ability for kanatactl to install service as user or system service.

This commit is contained in:
2025-11-10 11:36:21 -05:00
parent 74011a46bc
commit 3c98a008c8
5 changed files with 157 additions and 77 deletions

View File

@@ -8,6 +8,7 @@ install() {
log " Setting up espanso."
sudo setcap "cap_dac_override+p" "$(which espanso)"
espanso service register
systemctl --user daemon-reload
espanso service start
}

View File

@@ -4,16 +4,19 @@ set -e
set -o nounset
set -o pipefail
SCRIPTS="${DEV_ENV}/env/.local/scripts"
install() {
log " Setting user shell to 'zsh'."
sudo chsh --shell "$(which zsh)"
log " Enabling up systemd services."
systemctl --user daemon-reload
sudo systemctl daemon-reload
sudo systemctl enable --now pcscd.service
sudo systemctl enable --now firewalld.service
systemctl --user enable --now logout-task.service
systemctl --user enable --now battery-monitor.timer
systemctl --user enable --now tmux-kill-sessions.timer
sudo systemctl enable --now pcscd.service
sudo systemctl enable --now firewalld.service
SCRIPTS="$SCRIPTS" "$SCRIPTS/kanatactl" service install --prompt
}
arg=${1:-""}