This commit is contained in:
Eduard Tolosa 2018-12-21 22:21:31 -05:00
parent 9e36d7c157
commit 013fa0cd06
2 changed files with 6 additions and 1 deletions

3
bashrc
View file

@ -154,6 +154,9 @@ alias gclone='git clone'
# Alias for git push # Alias for git push
alias gpush='git push' alias gpush='git push'
# Alias for git pull
alias gpull='git pull'
# Alias to kill Signal Private Messenger when crashed # Alias to kill Signal Private Messenger when crashed
alias ksignal='killall -9 signal-desktop' alias ksignal='killall -9 signal-desktop'

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
xmessage "Are you sure you want to shut down the computer?" -center -title "Power options" -font "Monospace bold 10" -default "Cancel" -buttons "Cancel":1,"Log out":2,"Reboot":3,"Shut down":4 >/dev/null xmessage "Are you sure you want to shut down the computer?" -center -title "Power options" -font "Monospace bold 10" -default "Cancel" -buttons "Cancel":1,"Log out":2,"Reboot":3,"Shut down":4,"Hibernate":5 >/dev/null
case $? in case $? in
1) 1)
@ -11,4 +11,6 @@ case $? in
systemctl reboot;; systemctl reboot;;
4) 4)
systemctl poweroff;; systemctl poweroff;;
5)
systemctl hibernate;;
esac esac