first commit

This commit is contained in:
Zastian Pretorius
2021-12-08 19:57:06 +02:00
commit 3f96d7a788
821 changed files with 25657 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
#!/bin/bash
rofi_command="rofi -theme themes/powermenu.rasi"
### Options ###
power_off=""
reboot=""
lock=""
suspend="鈴"
log_out=""
# Variable passed to rofi
options="$power_off\n$reboot\n$lock\n$suspend\n$log_out"
chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 2)"
case $chosen in
$power_off)
promptmenu --yes-command "systemctl poweroff" --query "Shutdown?"
;;
$reboot)
promptmenu --yes-command "systemctl reboot" --query "Reboot?"
;;
$lock)
light-locker-command -l
;;
$suspend)
mpc -q pause
amixer set Master mute
systemctl suspend
;;
$log_out)
i3-msg exit
;;
esac