great improvements

This commit is contained in:
2026-01-26 14:53:10 +02:00
parent aabb3b1566
commit 03fab63ebf
9 changed files with 73 additions and 43 deletions

1
scripts/osrs/autoclicker/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
logs/

View File

@@ -26,6 +26,8 @@ LOCK_FILE="/tmp/autoclicker_lock"
LOG_DIR="/home/raga/repos/linux/sway-new-config/scripts/osrs/autoclicker/logs"
LOG_FILE="$LOG_DIR/click_timings_$(date +%Y%m%d_%H%M%S).csv"
export YDOTOOL_SOCKET="$HOME/.ydotool_socket"
# Create log directory if it doesn't exist
mkdir -p "$LOG_DIR"

View File

@@ -0,0 +1,5 @@
#!/bin/bash
sudo -b ydotoold \
--socket-path="$HOME/.ydotool_socket" \
--socket-own="$(id -u):$(id -g)"