17 lines
493 B
Plaintext
17 lines
493 B
Plaintext
|
#! /bin/sh
|
||
|
|
||
|
choice=$(echo " Kill X11\n Logout\n襤 Poweroff" | rofi -dmenu -m -3 -hover-select -me-select-entry '' -me-accept-entry MousePrimary -theme-str ' * { width: 15em; scrollbar: false; } listview { fixed-height: false; } inputbar { enabled: false; }')
|
||
|
|
||
|
case "$choice" in
|
||
|
" Kill X11")
|
||
|
herbstclient quit
|
||
|
;;
|
||
|
" Logout")
|
||
|
touch $XDG_RUNTIME_DIR/logout
|
||
|
herbstclient quit
|
||
|
;;
|
||
|
"襤 Poweroff")
|
||
|
doas poweroff
|
||
|
;;
|
||
|
esac
|