Changes to rofi shutdown

Changes the icons and temporarily disables lock
Jonathan Hodgson 4 years ago
parent 402162ca1a
commit fd29426b20
  1. 34
      bin/.bin/dmenu/rofi-shutdown

@ -1,10 +1,10 @@
#!/usr/bin/sh #!/usr/bin/sh
if type -p rofi 2> /dev/null; then if type -p rofi 2> /dev/null; then
selectcommand="rofi -dmenu -i -theme themes/five.rasi" selectcommand="rofi -dmenu -i -theme themes/four.rasi -me-select-entry '' -me-accept-entry 'Mouse1'"
shutdown="" shutdown=""
reboot="" reboot=""
lock="" lock=""
suspend="" suspend=""
logout="" logout=""
else else
selectcommand="dmenu -i -p 'Option'" selectcommand="dmenu -i -p 'Option'"
@ -25,22 +25,20 @@ echo $selection;
sleep .2 sleep .2
case $selection in case $selection in
) $lock)
i3exit lock #i3exit lock
;; ;;
Logout) $logout)
i3exit logout pkill dwm
;; ;;
Suspend) $suspend)
i3exit suspend systemctl suspend
#i3exit lock
;; ;;
Hibernate) $reboot)
i3exit hibernate systemctl reboot
;; ;;
Reboot) $shutdown)
i3exit reboot systemctl poweroff
;;
Shutdown)
i3exit shutdown
;; ;;
esac esac

Loading…
Cancel
Save