Add brightnesscontrol.sh, switch pulsemixer to pamixer, fix block interrupts

This commit is contained in:
Riyyi
2019-05-02 19:12:23 +02:00
parent 440b53bd41
commit 61cb157310
6 changed files with 69 additions and 26 deletions
+5 -3
View File
@@ -1,9 +1,11 @@
#!/bin/sh
BRIGHTNESS_CONTROL="$HOME/.scripts/brightnesscontrol.sh"
# Right click, scroll up, scroll down
R="A3:brightnessctl -q s 30%; $0:"
U="A4:brightnessctl -q s +10%; $0:"
D="A5:brightnessctl -q s 10%-; $0:"
R="A3:$BRIGHTNESS_CONTROL s 30:"
U="A4:$BRIGHTNESS_CONTROL u 10:"
D="A5:$BRIGHTNESS_CONTROL d 10:"
PERCENTAGE=$(brightnessctl \
| awk '/\([0-9]+%\)/ { print substr($4, 2, length($4) - 3) }')
+7 -7
View File
@@ -1,18 +1,18 @@
#!/bin/sh
MEDIACONTROL="$HOME/.scripts/mediacontrol.sh"
MEDIA_CONTROL="$HOME/.scripts/mediacontrol.sh"
# Left click, scroll click, right click, scroll up and scroll down
L="A1:pavucontrol:"
S="A2:$MEDIACONTROL set 0; $0:"
R="A3:$MEDIACONTROL toggle; $0:"
U="A4:$MEDIACONTROL up 5; $0:"
D="A5:$MEDIACONTROL down 5; $0:"
S="A2:$MEDIA_CONTROL set 0:"
R="A3:$MEDIA_CONTROL toggle:"
U="A4:$MEDIA_CONTROL up 5:"
D="A5:$MEDIA_CONTROL down 5:"
VOLUME="$($MEDIACONTROL getvolume)"
VOLUME="$($MEDIA_CONTROL getvolume)"
COLOR="-"
if [ "$($MEDIACONTROL getmute)" = "1" ]; then
if [ "$($MEDIA_CONTROL getmute)" = "true" ]; then
COLOR="$COLOR7"
SYMBOL=""