Add wifi and iface i3block, add network.sh, moved touchscreen.sh

This commit is contained in:
Riyyi
2018-01-13 18:25:52 +01:00
parent 4092590b41
commit ebce1698eb
8 changed files with 42 additions and 9 deletions
-11
View File
@@ -1,11 +0,0 @@
#!/bin/sh
device="04F3200A:00 04F3:2373"
state=$(xinput --list-props "$device" | grep "Device Enabled" | sed -nr 's/.*:\t([0-9])/\1/p')
if [ "$state" = "0" ]; then
xinput set-prop "$device" 140 1
else
xinput set-prop "$device" 140 0
fi
+1 -1
View File
@@ -8,7 +8,7 @@ STEP="5%"
case $BLOCK_BUTTON in
1) pavucontrol ;; # left click, start sound settings
2) amixer -q -D $MIXER sset $INSTANCE 0 unmute ;; # scroll click, set 0
3) amixer -q -D $MIXER sset $INSTANCE toggle ;; # right click, mute/unmute
3) amixer -q -D $MIXER sset $INSTANCE toggle ;; # right click, mute/unmute
4) amixer -q -D $MIXER sset $INSTANCE ${STEP}+ unmute ;; # scroll up, increase
5) amixer -q -D $MIXER sset $INSTANCE ${STEP}- unmute ;; # scroll down, decrease
esac