diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-10 13:33:47 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-10 13:33:47 +0900 |
| commit | c001d08a418b721fd341fa6eb54625db99b88610 (patch) | |
| tree | f0593fb27ea4af7e6258980bf7ec2ace4cecbf22 | |
| parent | 9ed458df0abbef61b1020f9bbf542dd35890253d (diff) | |
created bin/cwmx, created bin/xdotmouse
| -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 |
