39 lines
1.1 KiB
Bash
Executable file
39 lines
1.1 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
option_logout="img:/usr/share/icons/Paper/512x512/actions/system-log-out.png:text:Logout"
|
|
option_reboot="img:/usr/share/icons/Paper/512x512@2x/actions/system-reboot.png:text:Restart / Reboot"
|
|
option_suspend="img:/usr/share/icons/Paper/512x512@2x/actions/system-suspend-hibernate.png:Suspend then hibernate"
|
|
option_shutdown="img:/usr/share/icons/Paper/512x512@2x/actions/system-shutdown.png:text:Shutdown"
|
|
theme="$HOME/.config/worf/launcher"
|
|
result=`echo -e "$option_reboot\n$option_suspend\n$option_shutdown\n$option_logout" | \
|
|
worf --show dmenu -i true -p "Exit" \
|
|
--style $theme/style.css \
|
|
--conf $theme/config.toml \
|
|
--sort-order default \
|
|
--image-size 64 \
|
|
--orientation horizontal \
|
|
--hide-search true \
|
|
--content-vcenter true \
|
|
--blurred-background-fullscreen true \
|
|
--blurred-background true `
|
|
|
|
case "$result" in
|
|
"$option_logout")
|
|
hyprctl dispatch exit
|
|
;;
|
|
|
|
"$option_reboot")
|
|
reboot
|
|
;;
|
|
|
|
"$option_suspend")
|
|
hyprlock & systemctl suspend-then-hibernate
|
|
;;
|
|
|
|
"$option_shutdown")
|
|
shutdown now
|
|
;;
|
|
|
|
*)
|
|
exit 1
|
|
esac
|