mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
Updates
This commit is contained in:
parent
9e36d7c157
commit
013fa0cd06
2 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/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
|
||||
1)
|
||||
|
|
@ -11,4 +11,6 @@ case $? in
|
|||
systemctl reboot;;
|
||||
4)
|
||||
systemctl poweroff;;
|
||||
5)
|
||||
systemctl hibernate;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue