zenUtils/wyrm.sh

29 lines
1.3 KiB
Bash
Raw Normal View History

2024-09-26 04:15:43 +00:00
#!/bin/sh
if [ -z "$1" ]; then
echo "all things come to nothing"
exit 2
fi
case "$1" in
exe) dmenu_exe ;;
lock) slock ;;
logout) sudo logout.sh -p ;;
battery) notify-send -c power battery [$(cat /sys/class/power_supply/BAT0/capacity)%] ;;
grey) grey.sh toggle ;;
composite_toggle) if pgrep picom; then kill $(pgrep picom); else picom & fi ;;
time) notify-send -c time time "$(dynacal.sh)" ;;
time_mode) dynacal.sh -t; notify-send -c time time "[$(cat /home/nilix/.time_mode)]" ;;
fetch) sirius.sh -s ;;
volume_toggle) amixer set Master toggle ;;
volume_up) amixer set Master 5%+; notify-send -u low -c volume volume $(amixer get Master | grep % | head -n 1 | awk '{print $5}') ;;
volume_down) amixer set Master 5%-; notify-send -u low -c volume volume $(amixer get Master | grep % | head -n 1 | awk '{print $5}') ;;
mic_toggle) amixer set Capture toggle ;;
brite_up) xbacklight -inc 5; notify-send -u low -c brightness brightness [$(xbacklight -get)%] ;;
brite_down) xbacklight -dec 5; notify-send -u low -c brightness brightness [$(xbacklight -get)%] ;;
redshift_cold) redshift -x; redshift -O 4500K; notify-send -u low -c brightness color [4500K] ;;
redshift_warm) redshift -x; redshift -O 6000K; notify-send -u low -c brightness color [6000K] ;;
*) echo "i am nothing more than a stain"
esac