Add confirmation for reboot/shutdown
This commit is contained in:
parent
58b93e92a4
commit
b5fa40b136
@ -580,10 +580,20 @@ Script taken from Luke Smith.
|
||||
systemctl hibernate && ~/.local/bin/lockscreen
|
||||
;;
|
||||
"Reboot")
|
||||
systemctl reboot
|
||||
confirmation=$(echo -e "Yes\nNo" | rofi -i -p "Are you sure you want to Reboot?" -dmenu)
|
||||
case "$confirmation" in
|
||||
"Yes")
|
||||
systemctl reboot
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
"Shutdown")
|
||||
systemctl poweroff
|
||||
confirmation=$(echo -e "Yes\nNo" | rofi -i -p "Are you sure you want to Shutdown?" -dmenu)
|
||||
case "$confirmation" in
|
||||
"Yes")
|
||||
systemctl poweroff
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
,*)
|
||||
echo "== ! i3exit: missing or invalid argument ! =="
|
||||
|
Loading…
Reference in New Issue
Block a user