adding nosleep command for gnome environments
This commit is contained in:
parent
d2630b12eb
commit
555d2589c3
1 changed files with 6 additions and 2 deletions
|
@ -38,7 +38,9 @@ if [[ -x `which apt-get >/dev/null 2>&1` ]]; then
|
||||||
HAS_APT=1
|
HAS_APT=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -x `which gnome-shell >/dev/null 2>&1` ]]; then
|
||||||
|
HAS_GNOME=1
|
||||||
|
fi
|
||||||
|
|
||||||
# _
|
# _
|
||||||
# _ __ _ __ ___ _ __ ___ _ __ | |_
|
# _ __ _ __ ___ _ __ ___ _ __ | |_
|
||||||
|
@ -201,7 +203,9 @@ alias tm="tmux new-session -A -s main"
|
||||||
# emacsclient
|
# emacsclient
|
||||||
alias ec="emacsclient -n -c -a emacs"
|
alias ec="emacsclient -n -c -a emacs"
|
||||||
|
|
||||||
|
if [[ HAS_GNOME ]]; then
|
||||||
|
alias nosleep="gnome-session-inhibit --inhibit idle sleep infinity"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue