diff --git a/.config/sway/conf.d/windows-rules b/.config/sway/conf.d/windows-rules index fa287cf..7a4ddca 100644 --- a/.config/sway/conf.d/windows-rules +++ b/.config/sway/conf.d/windows-rules @@ -1,15 +1,14 @@ # vim: ft=swayconfig -# TODO: Clean this up -#set the variables set { - $popup floating enable; sticky enable; + $sticky floating enable; sticky enable; $float floating enable; } for_window { - [app_id="librewolf" title="^Picture-in-Picture$"] $popup + [app_id="librewolf" title="^Picture-in-Picture$"] $sticky [app_id="exe$"] $float # Wayland wine app [class="exe$"] $float # XWayland wine app + [instance="java-lang-Thread"] $float [instance="steamwebhelper"] $float [title="Extension:*"] $float # Bitwarden passkey etc. [window_role="pop-up,task_dialog,About"] $float diff --git a/.config/sway/scripts/logout.sh b/.config/sway/scripts/logout.sh index 9fd1bff..6701466 100755 --- a/.config/sway/scripts/logout.sh +++ b/.config/sway/scripts/logout.sh @@ -12,12 +12,6 @@ choices=("suspend" "poweroff" "reboot" "lock") choice=$(printf "%s\n" "${choices[@]}" | fuzzel -d --prompt "🔌: ") if test "$choice" = lock; then - # sleep less when power on - if acpi -a | grep -q on; then - sleep_time=3600 - else - sleep_time=10 - fi sleep 0.3 # playerctl stop