init
This commit is contained in:
25
scripts/powermenu-hypr.sh
Executable file
25
scripts/powermenu-hypr.sh
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
option1=" lock"
|
||||
option2=" logout"
|
||||
option3=" reboot"
|
||||
option4=" power off"
|
||||
|
||||
options="$option1\n"
|
||||
options="$options$option2\n"
|
||||
options="$options$option3\n$option4"
|
||||
|
||||
choice=$(echo -e "$options" | rofi -dmenu -i -no-show-icons -l 4 -width 30 -p "Powermenu")
|
||||
|
||||
case $choice in
|
||||
$option1)
|
||||
swaylock ;;
|
||||
$option2)
|
||||
# loginctl terminate-user $USER # For command line based login
|
||||
hyprctl dispatch exit ;; # For display manager login
|
||||
$option3)
|
||||
systemctl reboot ;;
|
||||
$option4)
|
||||
systemctl poweroff ;;
|
||||
esac
|
||||
|
Reference in New Issue
Block a user