diff options
| author | Zach DeCook <zachdecook@librem.one> | 2025-02-14 12:43:23 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2025-02-14 12:43:23 -0500 |
| commit | 1e14b9bc72ed4ccd42b44bf7281fc360a8958533 (patch) | |
| tree | 19410d2bdfb62979a9967d7887a74b812ec296d8 /.local | |
| parent | 9602163a0c30e7152d637e597c305133aa5ba961 (diff) | |
| download | dotfiles-1e14b9bc72ed4ccd42b44bf7281fc360a8958533.tar.gz | |
Do some updates
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/switch.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.local/bin/switch.sh b/.local/bin/switch.sh index 89b832a..545d1fb 100755 --- a/.local/bin/switch.sh +++ b/.local/bin/switch.sh @@ -3,20 +3,20 @@ #Misc script for oneplus 6 until sway supports this device noise() { rm -f "$XDG_CONFIG_HOME"/sxmo/.noring - notify-send -t 1000 -a switch noise + notify-send -e -t 1000 -a switch noise } rumble() { rm -f "$XDG_CONFIG_HOME"/sxmo/.novibrate touch "$XDG_CONFIG_HOME"/sxmo/.noring sxmo_vibrate 50 15000 - notify-send -t 1000 -a switch rumble + notify-send -e -t 1000 -a switch rumble } silent() { touch "$XDG_CONFIG_HOME"/sxmo/.noring touch "$XDG_CONFIG_HOME"/sxmo/.novibrate - notify-send -t 1000 -a switch silent + notify-send -e -t 1000 -a switch silent } -evtest /dev/input/event1 |stdbuf -o L grep -i -o 'Value *\d' | while read -r line; do +evtest /dev/input/by-path/platform-alert-slider-event |stdbuf -o L grep -i -o 'Value *\d' | while read -r line; do if echo "$line" | grep -q '0'; then noise elif echo "$line" | grep -q '1'; then |
