Browse Source

comment volume controls

pull/1/head
captain kuromaru 3 years ago
parent
commit
7f65fda726
  1. 20
      .xbindkeysrc
  2. 8
      wallpapers/batpower.sh

20
.xbindkeysrc

@ -71,24 +71,24 @@ @@ -71,24 +71,24 @@
# m:0x8 + c:32
# Decrease volume
"pactl set-sink-volume @DEFAULT_SINK@ -1000"
m:0x0 + c:122
#"pactl set-sink-volume @DEFAULT_SINK@ -1000"
# m:0x0 + c:122
# Increase volume
"pactl set-sink-volume @DEFAULT_SINK@ +1000"
m:0x0 + c:123
#"pactl set-sink-volume @DEFAULT_SINK@ +1000"
# m:0x0 + c:123
# Mute volume
"pactl set-sink-mute @DEFAULT_SINK@ toggle"
m:0x0 + c:121
#"pactl set-sink-mute @DEFAULT_SINK@ toggle"
# m:0x0 + c:121
# Increase backlight
"brightlight --file /sys/class/backlight/radeon_bl0/ -i 5"
m:0x0 + c:158
#"brightlight --file /sys/class/backlight/radeon_bl0/ -i 5"
# m:0x0 + c:158
# Decrease backlight
"brightlight --file /sys/class/backlight/radeon_bl0/ -d 5"
m:0x0 + c:223
#"brightlight --file /sys/class/backlight/radeon_bl0/ -d 5"
# m:0x0 + c:223
# Open dmenu
"dmenu_run"

8
wallpapers/batpower.sh

@ -1,8 +0,0 @@ @@ -1,8 +0,0 @@
#!/bin/bash
# Checks the battery level and if it's less than 10% it notifies the user
batt=`grep POWER_SUPPLY_CAPACITY= /sys/class/power_supply/BAT0/uevent`
battlvl=`echo $batt | tr -d 'POWER_SUPPLY_CAPACITY='`
if (( $(($battlvl)) < 10 )); then notify-send "Battery is less than 10%" "Please charge your laptop"
elif (( $(($battlvl)) == 100 )); then notify-send "Battery is charged" "Disconnect your charger ;)"
#else echo "a"
fi
Loading…
Cancel
Save