Add some better idle setup for sway

main
Ensar Sarajčić 2025-01-24 10:45:32 +01:00
parent de58407231
commit 14bf4411ce
3 changed files with 6 additions and 6 deletions

View File

@ -14,6 +14,8 @@ assign [app_id="eclipse"] $ide_workspace
assign [class="octave-gui"] $ide_workspace
assign [instance="vim"] $editor_workspace
assign [instance="download"] $ongoing_operations
assign [class="steam"] $ongoing_operations
assign [class="steam_app_*"] $ongoing_operations
assign [class="Godot"] $ide_workspace
assign [class="FreeTube"] $music_workspace

View File

@ -2,9 +2,4 @@
bindsym $alt+L exec 'swaylock'
# IDLE CONFIG
exec swayidle -w \
timeout 300 'swaylock' \
timeout 330 'swaymsg "output * power off"' \
resume 'swaymsg "output * power on"; openrgb -p ~/.config/OpenRGB/full_cyan.orp' \
timeout 600 'openrgb -b 0 -m off; systemctl suspend' \
before-sleep 'swaylock; playerctl pause'
exec swayidle -w

View File

@ -0,0 +1,3 @@
for_window [title="Steam Big Picture Mode"] inhibit_idle fullscreen
for_window [app_id="firefox"] inhibit_idle fullscreen
for_window [class="steam_app_*"] inhibit_idle fullscreen