change manythings

This commit is contained in:
2026-06-25 11:33:22 +07:00
parent b9e75b0ff7
commit 3ed4afab73
29 changed files with 1745 additions and 14 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
# Skip lock if a fullscreen window is active (game, video, etc.)
active=$(xprop -root _NET_ACTIVE_WINDOW 2>/dev/null | awk '{print $NF}')
if [ -n "$active" ] && [ "$active" != "0x0" ]; then
state=$(xprop -id "$active" _NET_WM_STATE 2>/dev/null)
if echo "$state" | grep -q "_NET_WM_STATE_FULLSCREEN"; then
exit 0
fi
fi
exec ~/.config/i3/scripts/lock-now