From 74401fd1a5f53cc4b77de6e998a96e158ad2033f Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Thu, 9 Jan 2025 19:29:21 +0300 Subject: [PATCH] Sway: Move Thunderbird popups to scratchpad. --- home/file/sway/module/ScratchPad.conf | 48 ++++++--------------------- 1 file changed, 10 insertions(+), 38 deletions(-) diff --git a/home/file/sway/module/ScratchPad.conf b/home/file/sway/module/ScratchPad.conf index 73eb4af..6b7a512 100644 --- a/home/file/sway/module/ScratchPad.conf +++ b/home/file/sway/module/ScratchPad.conf @@ -8,41 +8,13 @@ bindsym --to-code $mod+c scratchpad show bindsym --to-code $mod+shift+C move scratchpad bindsym --to-code $mod+shift+X exec swayscript scratchpad_kill -# Fix for a goddamn Firefox WebRTC indicator. -for_window [app_id="firefox" title="Firefox — Sharing Indicator"] { - kill -} - -# NetworkManager. -for_window [app_id="nm-connection-editor"] { - move scratchpad - scratchpad show -} - -# Bluetooth. -for_window [app_id=".blueman-manager-wrapped"] { - move scratchpad - scratchpad show -} - -# Sound. -for_window [app_id="pavucontrol"] { - move scratchpad - scratchpad show -} - -# Android emulator controls. -for_window [title="Emulator" window_type="utility"] { - move scratchpad -} - -# Calculator. -for_window [app_id="org.gnome.Calculator"] { - move scratchpad - scratchpad show -} - -# JamesDsp. -for_window [title="JamesDSP for Linux"] { - move scratchpad -} +for_window [app_id=".blueman-manager-wrapped"] move scratchpad, scratchpad show +for_window [app_id="firefox" title="Firefox — Sharing Indicator"] kill +for_window [app_id="nm-connection-editor"] move scratchpad, scratchpad show +for_window [app_id="org.gnome.Calculator"] move scratchpad, scratchpad show +for_window [app_id="pavucontrol"] move scratchpad, scratchpad show +for_window [app_id="thunderbird" title=".*Reminder"] move scratchpad, scratchpad show +for_window [app_id="thunderbird" title="New Event:.*"] move scratchpad, scratchpad show +for_window [app_id="thunderbird" title="Edit Event:.*"] move scratchpad, scratchpad show +for_window [title="Emulator" window_type="utility"] move scratchpad +for_window [title="JamesDSP for Linux"] move scratchpad