mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
feat: Adds tmux-kill-old-sessions script and systemd timer/service, to clean up inactive sessions.
This commit is contained in:
3
system
3
system
@@ -22,7 +22,7 @@ log() {
|
||||
}
|
||||
|
||||
log_and_run() {
|
||||
log "Running: \"$@\""
|
||||
log "Running: \"$*\""
|
||||
|
||||
if [[ $dry_run == "0" ]]; then
|
||||
eval $1
|
||||
@@ -37,5 +37,6 @@ log_and_run "sudo setcap "cap_dac_override+p" $(which espanso)"
|
||||
|
||||
log_and_run "systemctl --user enable --now logout-task.service"
|
||||
log_and_run "systemctl --user enable --now battery-monitor.timer"
|
||||
log_and_run "systemctl --user enable --now tmux-kill-sessions.timer"
|
||||
log_and_run "sudo systemctl enable --now pcscd.service"
|
||||
log_and_run "sudo systemctl enable --now firewalld.service"
|
||||
|
||||
Reference in New Issue
Block a user