1# from https://github.com/Madic-/Sway-DE/blob/master/config/sway/sway.d/06_floating.conf23# Display window as floating. Find out wayland app_id with "swaymsg -t get_tree | jq '.' | grep app_id" and xorg class with xprop45for_window [app_id="pinentry-*"] floating enable67for_window [window_role = "pop-up"] floating enable8for_window [window_role = "bubble"] floating enable9for_window [window_role = "dialog"] floating enable10for_window [window_type = "dialog"] floating enable11for_window [window_role = "task_dialog"] floating enable12for_window [window_type = "menu"] floating enable13for_window [app_id = "floating"] floating enable14for_window [app_id = "floating_update"] floating enable, resize set width 1000px height 600px15for_window [class = "(?i)pinentry"] floating enable16for_window [app_id = "virt-manager"] floating enable17for_window [title = "About Mozilla Firefox"] floating enable18for_window [window_role = "About"] floating enable1920# Kill Firefox sharing indicator. It opens as an own container. Does not kill functionality21for_window [title = "Firefox - Sharing Indicator"] kill22for_window [title = "Firefox — Sharing Indicator"] kill23for_window [app_id="firefox" title="^Library$"] floating enable, border pixel 1, sticky enable2425for_window [title = "^Open File$"] floating enable26for_window [title = "^Open Folder$"] floating enable2728for_window [window_role = "GtkFileChooserDialog"] resize set 590 34029for_window [window_role = "GtkFiileChooserDialog"] move position center3031for_window [app_id = "tlp-ui"] floating enable32for_window [title = "mpvfloat"] floating enable3334for_window [title = ".*Kee - Mozilla Firefox"] floating enable3536for_window [title="File Operation Progress"] floating enable, border pixel 1, sticky enable, resize set width 40 ppt height 30 ppt3738for_window [title="Save File"] floating enable3940for_window [app_id="floating_shell_portrait"] floating enable, border pixel 1, sticky enable, resize set width 30 ppt height 40 ppt41for_window [app_id="floating_shell"] floating enable, border pixel 1, sticky enable4243for_window [app_id = "qt5ct"] floating enable4445for_window [window_role = "Preferences"] floating enable46for_window [title = "Picture in picture"] floating enable, sticky enable47for_window [title = "Picture-in-Picture"] floating enable, sticky enable4849for_window [app_id = "flameshot"] floating enable5051for_window [title = "Firefox - Choose User Profile" ] floating enable5253# Anki54for_window [app_id="anki"] floating enable5556# Scratchpad terminal57for_window [title="(?i)$criteria"] floating enable, move absolute position 1500px 100px, resize set 1200px 700px, move to scratchpad, mark $criteria5859# Waybar Tooltips don't steel focus60no_focus [app_id="waybar"]61for_window [app_id="waybar" floating] {62 move position cursor63 move down 60px # adjust if some menus still don't fit64}6566# Titlebars get resized when text with a different height gets picked up.67# This includes emoji and Hangul. This neat hack makes all titlebars higher.68# See https://github.com/swaywm/sway/issues/499269for_window [title=".*"] title_format %title゜7071# Tag xwayland windows with [X]72for_window [shell="xwayland"] title_format "<span>[X] %title゜</span>"7374# firefox extensions75for_window [title=".*Download Panel — Mozilla Firefox"] floating enable76for_window [title=".*Saladict - Pop-up Dictionary .*"] floating enable77for_window [title="^$"] floating enable