Adding nosleep alias for gnome-shell

This commit is contained in:
Andrew Davidson 2023-05-05 21:13:29 -07:00
parent 0a5fde840d
commit f5cff72fcf
Signed by: amd
SSH key fingerprint: SHA256:ugJCg4p5ibiMeQwZ9n6ZlhMGEX8uZv/M5q1oeV6BY3Q

View file

@ -38,6 +38,9 @@ if [[ -x `which apt-get >/dev/null 2>&1` ]]; then
HAS_APT=1
fi
if [[ -x `which gnome-shell >/dev/null 2>&1` ]]; then
HAS_GNOME=1
fi
# _
# _ __ _ __ ___ _ __ ___ _ __ | |_
@ -206,7 +209,9 @@ alias tm="tmux new-session -A -s main"
# emacsclient
alias ec="emacsclient -n -c -a emacs"
if [[ HAS_GNOME ]]; then
alias nosleep="gnome-session-inhibit --inhibit idle sleep infinity"
fi