My configurations for the software I use
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Move shellscripts out of data/shellscripts and into local/bin

yemou 757fcf3a 3c57f6b1

-41
data/shellscripts/bemenu local/bin/bemenu
data/shellscripts/bemenu-run local/bin/bemenu-run
-41
data/shellscripts/powermenu
··· 1 - #!/bin/sh 2 - 3 - # Required Commands 4 - # bemenu - allow the user to pick options 5 - # loginctl - perform actions 6 - # pkill - send sway into idle state 7 - 8 - # Needs to be edited to work with either systemctl or loginctl 9 - 10 - prompt="powermenu" 11 - options="hibernate\\nhybrid-sleep\\nlock\\npoweroff\\nreboot\\nsuspend\\nsuspend-then-hibernate" 12 - 13 - confirm() { 14 - c_prompt="Are you sure? [$action]" 15 - c_input=$(printf '%b' "yes\\nno" | bemenu -p "$c_prompt") 16 - 17 - # Prevents selecting yes instantly waking up from suspend 18 - sleep 1 19 - 20 - case $c_input in 21 - Y*|y* ) return 0 ;; 22 - N*|n* ) exit 0 ;; 23 - * ) exit 1 ;; 24 - esac 25 - } 26 - 27 - sleep_task() { 28 - pkill -USR1 swayidle 29 - } 30 - 31 - action=$(printf '%b' "$options" | bemenu -p "$prompt") 32 - case $action in 33 - hibernate ) confirm; loginctl hibernate ;; 34 - hybrid-sleep ) confirm; loginctl hybrid-sleep ;; 35 - lock ) confirm; loginctl lock-session ;; 36 - poweroff ) confirm; loginctl poweroff ;; 37 - reboot ) confirm; loginctl reboot ;; 38 - suspend ) confirm; loginctl suspend ;; 39 - suspend-then-hibernate ) confirm; loginctl suspend-then-hibernate ;; 40 - * ) exit 1 ;; 41 - esac