add scripts and config
This commit is contained in:
Executable
+44
@@ -0,0 +1,44 @@
|
||||
#!/bin/bash
|
||||
|
||||
option0=" Lock"
|
||||
option1=" Poweroff"
|
||||
option2=" Reboot"
|
||||
option3=" Exit"
|
||||
|
||||
option4=" Monitor toggle"
|
||||
option5=" VPN Toggle"
|
||||
|
||||
options="$option0\n$option1\n$option2\n$option3\n$option4\n$option5"
|
||||
|
||||
selected="$(echo -e "$options" | wofi --show dmenu --location top_right --xoffset -32 --yoffset 14 --width 256 --height 228 -p "Powermenu:" || exit 0)"
|
||||
|
||||
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)
|
||||
exec exit;;
|
||||
$option4)
|
||||
monitor-toggle;;
|
||||
$option5)
|
||||
exec $HOME/.config/waybar/scripts/wgstatus -toggle;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user