Changes to rofi shutdown
Changes the icons and temporarily disables lock
This commit is contained in:
parent
cca01b6251
commit
85ba44a508
1 changed files with 16 additions and 18 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue