summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-10 13:33:47 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-10 13:33:47 +0900
commitc001d08a418b721fd341fa6eb54625db99b88610 (patch)
treef0593fb27ea4af7e6258980bf7ec2ace4cecbf22
parent9ed458df0abbef61b1020f9bbf542dd35890253d (diff)
created bin/cwmx, created bin/xdotmouse
-rwxr-xr-xar/.local/bin/cwmx3
-rwxr-xr-xar/.local/bin/xdotmouse13
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