45 lines
895 B
Bash
Executable File
45 lines
895 B
Bash
Executable File
#!/bin/bash
|
|
|
|
option0=" Lock"
|
|
option1=" Poweroff"
|
|
option2=" Reboot"
|
|
option3=" Exit"
|
|
|
|
option4="Enable Display"
|
|
option5="Disable Display"
|
|
|
|
options="$option0\n$option1\n$option2\n$option3\n$option4\n$option5"
|
|
|
|
selected="$(echo -e "$options" | rofi -lines 4 -dmenu -P " Powermenu:")"
|
|
|
|
case $selected in
|
|
$option0)
|
|
swaylock \
|
|
--screenshots \
|
|
--clock \
|
|
--indicator \
|
|
--indicator-radius 100 \
|
|
--indicator-thickness 7 \
|
|
--effect-blur 6x5 \
|
|
--effect-vignette 0.5:0.5 \
|
|
--ring-color 1f2227 \
|
|
--key-hl-color e06c75 \
|
|
--line-color 00000000 \
|
|
--inside-color 00000088 \
|
|
--separator-color 00000000 \
|
|
--grace 2 \
|
|
--fade-in 0.2;;
|
|
$option1)
|
|
systemctl poweroff;;
|
|
$option2)
|
|
systemctl reboot;;
|
|
$option3)
|
|
swaymsg exit;;
|
|
$option4)
|
|
swaymsg output eDP-1 enable;;
|
|
$option5)
|
|
swaymsg output eDP-1 disable;;
|
|
esac
|
|
|
|
exit 0
|