diff --git a/my_home/.config/openbox/rc.xml b/my_home/.config/openbox/rc.xml index e39a8a5..f189460 100644 --- a/my_home/.config/openbox/rc.xml +++ b/my_home/.config/openbox/rc.xml @@ -389,6 +389,16 @@ dmenu_run + + + volume_up.sh + + + + + volume_down.sh + + 1 diff --git a/my_home/bin/show_battery.sh b/my_home/bin/show_battery.sh new file mode 100755 index 0000000..9cd8cf5 --- /dev/null +++ b/my_home/bin/show_battery.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +envstat -s "acpibat0:charge,acpibat1:charge" diff --git a/my_home/bin/sleep_laptop.sh b/my_home/bin/sleep_laptop.sh new file mode 100755 index 0000000..24a7165 --- /dev/null +++ b/my_home/bin/sleep_laptop.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +sysctl -w hw.acpi.sleep.state=3 diff --git a/my_home/bin/volume_down.sh b/my_home/bin/volume_down.sh new file mode 100755 index 0000000..31454ab --- /dev/null +++ b/my_home/bin/volume_down.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env sh + +volume_level=`mixerctl -n outputs.master | cut -d ',' -f 1` + +mixerctl -w outputs.master=`expr $volume_level - 10` diff --git a/my_home/bin/volume_up.sh b/my_home/bin/volume_up.sh new file mode 100755 index 0000000..89e1797 --- /dev/null +++ b/my_home/bin/volume_up.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env sh + +volume_level=`mixerctl -n outputs.master | cut -d ',' -f 1` + +mixerctl -w outputs.master=`expr $volume_level + 10` diff --git a/my_home/bin/watch_battery.sh b/my_home/bin/watch_battery.sh new file mode 100755 index 0000000..8a76991 --- /dev/null +++ b/my_home/bin/watch_battery.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +envstat -s "acpibat0:charge,acpibat1:charge" -i 60