dotfiles

Alpine Linux dotfiles

git clone git://git.lin.moe/dotfiles.git

 1# from https://github.com/Madic-/Sway-DE/blob/master/config/sway/sway.d/06_floating.conf
 2
 3# Display window as floating. Find out wayland app_id with "swaymsg -t get_tree | jq '.' | grep app_id" and xorg class with xprop
 4
 5for_window [app_id="pinentry-*"] floating enable
 6
 7for_window [window_role = "pop-up"] floating enable
 8for_window [window_role = "bubble"] floating enable
 9for_window [window_role = "dialog"] floating enable
10for_window [window_type = "dialog"] floating enable
11for_window [window_role = "task_dialog"] floating enable
12for_window [window_type = "menu"] floating enable
13for_window [app_id = "floating"] floating enable
14for_window [app_id = "floating_update"] floating enable, resize set width 1000px height 600px
15for_window [class = "(?i)pinentry"] floating enable
16for_window [app_id = "virt-manager"] floating enable
17for_window [title = "About Mozilla Firefox"] floating enable
18for_window [window_role = "About"] floating enable
19
20# Kill Firefox sharing indicator. It opens as an own container. Does not kill functionality
21for_window [title = "Firefox - Sharing Indicator"] kill
22for_window [title = "Firefox — Sharing Indicator"] kill
23for_window [app_id="firefox" title="^Library$"] floating enable, border pixel 1, sticky enable
24
25for_window [title = "^Open File$"] floating enable
26for_window [title = "^Open Folder$"] floating enable
27
28for_window [window_role = "GtkFileChooserDialog"] resize set 590 340
29for_window [window_role = "GtkFiileChooserDialog"] move position center
30
31for_window [app_id = "tlp-ui"] floating enable
32for_window [title = "mpvfloat"] floating enable
33
34for_window [title = ".*Kee - Mozilla Firefox"] floating enable
35
36for_window [title="File Operation Progress"] floating enable, border pixel 1, sticky enable, resize set width 40 ppt height 30 ppt
37
38for_window [title="Save File"] floating enable
39
40for_window [app_id="floating_shell_portrait"] floating enable, border pixel 1, sticky enable, resize set width 30 ppt height 40 ppt
41for_window [app_id="floating_shell"] floating enable, border pixel 1, sticky enable
42
43for_window [app_id = "qt5ct"] floating enable
44
45for_window [window_role = "Preferences"] floating enable
46for_window [title = "Picture in picture"] floating enable, sticky enable
47for_window [title = "Picture-in-Picture"] floating enable, sticky enable
48
49for_window [app_id = "flameshot"] floating enable
50
51for_window [title = "Firefox - Choose User Profile" ] floating enable
52
53# Anki
54for_window [app_id="anki"] floating enable
55
56# Scratchpad terminal
57for_window [title="(?i)$criteria"] floating enable, move absolute position 1500px 100px, resize set 1200px 700px, move to scratchpad, mark $criteria
58
59# Waybar Tooltips don't steel focus
60no_focus [app_id="waybar"]
61for_window [app_id="waybar" floating] {
62    move position cursor
63    move down 60px # adjust if some menus still don't fit
64}
65
66# 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/4992
69for_window [title=".*"] title_format %title゜
70
71# Tag xwayland windows with [X]
72for_window [shell="xwayland"] title_format "<span>[X] %title゜</span>"
73
74# firefox extensions
75for_window [title=".*Download Panel — Mozilla Firefox"] floating enable
76for_window [title=".*Saladict - Pop-up Dictionary .*"] floating enable
77for_window [title="^$"] floating enable