Add wifi and iface i3block, add network.sh, moved touchscreen.sh
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user