diff options
| -rwxr-xr-x | ar/.local/bin/cwmx | 3 | ||||
| -rwxr-xr-x | ar/.local/bin/xdotmouse | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/ar/.local/bin/cwmx b/ar/.local/bin/cwmx new file mode 100755 index 0000000..5ab496e --- /dev/null +++ b/ar/.local/bin/cwmx @@ -0,0 +1,3 @@ +#!/bin/sh + +bluetoothctl devices | grep 'WH-1000XM3' | awk '{print $2}' | xargs -I {} bluetoothctl connect "{}" diff --git a/ar/.local/bin/xdotmouse b/ar/.local/bin/xdotmouse new file mode 100755 index 0000000..08c8226 --- /dev/null +++ b/ar/.local/bin/xdotmouse @@ -0,0 +1,13 @@ +#!/bin/sh + +speed="5" + +case "$1" in +h) xdotool mousemove_relative -- -$speed 0 ;; +j) xdotool mousemove_relative 0 $speed ;; +k) xdotool mousemove_relative -- 0 -$speed ;; +l) xdotool mousemove_relative $speed 0 ;; +c) xdotool click 1 ;; +C) xdotool click --repeat 1 ;; +r) xdotool click 2 ;; +esac |
