This commit is contained in:
2026-01-02 18:21:59 +02:00
parent 97e6fdca0e
commit aabb3b1566
4 changed files with 18 additions and 11 deletions

View File

@@ -153,6 +153,10 @@ input type:pointer {
floating_maximum_size -1 x -1
for_window [app_id="floating_window"] floating enable
for_window [app_id="pavucontrol"] floating enable
for_window [class="steam" instance="steamwebhelper"] floating enable
for_window [class="steam" title="Steam"] floating disable
for_window [app_id="net.davidotek.pupgui2"] floating enable
for_window [app_id="blueman-manager"] floating enable
# Border configuration
default_floating_border pixel 1

View File

@@ -1,14 +1,14 @@
# Advanced i3status-rust configuration
# Based on the i3xrocks blocks from your i3 setup
[[block]]
block = "custom"
command = "~/.config/sway/scripts/osrs/osrs-mode-status.sh"
format = " $text "
interval = 1
click = [
{button = "left", cmd = "~/.config/sway/scripts/osrs/osrs-mode-toggle.sh", update = true}
]
#[[block]]
#block = "custom"
#command = "~/.config/sway/scripts/osrs/osrs-mode-status.sh"
#format = " $text "
#interval = 1
#click = [
# {button = "left", cmd = "~/.config/sway/scripts/osrs/osrs-mode-toggle.sh", update = true}
#]
[[block]]
block = "custom"

View File

@@ -1,5 +1,7 @@
#!/bin/bash
FOCUSED=$(swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused==true) | .name')
#FOCUSED=$(swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused==true) | .name')
#FOCUSED=$(swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused==true)')
FOCUSED=$(swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused==true) | .app_id')
echo "$FOCUSED"

View File

@@ -22,7 +22,8 @@ PATTERN_BREAK_CHANCE=0.05 # 5% chance to break pattern
# File paths
STATE_FILE="/tmp/autoclicker_running"
LOCK_FILE="/tmp/autoclicker_lock"
LOG_DIR="/tmp/autoclicker_logs"
#LOG_DIR="/tmp/autoclicker_logs"
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"
# Create log directory if it doesn't exist
@@ -232,4 +233,4 @@ while true; do
fi
done
echo "Click timings saved to: $LOG_FILE"
echo "Click timings saved to: $LOG_FILE"