Added rofi config
This commit is contained in:
parent
4f4b2e1f64
commit
cd5bc16400
4 changed files with 143 additions and 0 deletions
36
rofi/LilieshBase/powermenu.sh
Executable file
36
rofi/LilieshBase/powermenu.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue