- Enable programs.uwsm for session management. - Improve SDDM theme session detection logic to be case-insensitive and more robust. - Perform a global cleanup of 'Nnomarchy' and 'org.nnomarchy' typos across all scripts and configurations.
11 lines
321 B
Bash
Executable File
11 lines
321 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Prompt for sudo once and keep the credential alive in the background.
|
|
# Source this script so the trap applies to the calling shell:
|
|
# source nomarchy-sudo-keepalive
|
|
|
|
sudo -v
|
|
while true; do sudo -n true; sleep 60; done 2>/dev/null &
|
|
SUDO_KEEPALIVE_PID=$!
|
|
trap "kill $SUDO_KEEPALIVE_PID 2>/dev/null" EXIT
|