Added rofi config

This commit is contained in:
Liliesh 2025-05-31 19:37:20 +02:00
parent 4f4b2e1f64
commit cd5bc16400
Signed by: liliesh
GPG key ID: 680387646C7BAE8E
4 changed files with 143 additions and 0 deletions

36
rofi/LilieshBase/powermenu.sh Executable file
View file

@ -0,0 +1,36 @@
#!/bin/env bash
logout="󰩈 Logout"
sleep=" Sleep"
shutdown=" Shutdown"
reboot=" Reboot"
# Get answer from user via rofi
selected=$(echo "$logout
$sleep
$reboot
$shutdown" | rofi -dmenu\
-i\
-p "Power"\
-config "~/.config/rofi/powermenu.rasi"\
-font "Cascadia Code 12"\
-width "15"\
-lines 5\
-line-margin 3\
-line-padding 10\
-scrollbar-width "0" )
case $selected in
$logout)
hyprctl dispatch exit
;;
$sleep)
systemctl suspend
;;
$reboot)
systemctl reboot
;;
$shutdown)
systemctl poweroff
;;
esac