[sway] update defaults for floating windows in portrait / landscape mode

parent aaf91702
......@@ -78,7 +78,7 @@
"warning": 70,
"critical": 90
},
"on-click": "swaymsg exec \\$term_float bpytop"
"on-click": "swaymsg exec \\$term_float_landscape bpytop"
},
"memory": {
......@@ -88,7 +88,7 @@
"warning": 70,
"critical": 90
},
"on-click": "swaymsg exec \\$term_float bpytop"
"on-click": "swaymsg exec \\$term_float_landscape bpytop"
},
"network": {
......@@ -97,7 +97,7 @@
"format-ethernet": " {ifname}", // Icon: ethernet
"format-disconnected": "⚠ Disconnected",
"tooltip-format": "{ifname}: {ipaddr}",
"on-click": "swaymsg exec \\$term_float nmtui"
"on-click": "swaymsg exec \\$term_float_portrait nmtui"
},
"sway/mode": {
......
# override mode for specific applications
for_window [app_id="floating_shell"] floating enable, border pixel 1, sticky enable, resize set width 80 ppt height 60 ppt
for_window [app_id="pavucontrol"] floating enable, border pixel 1, sticky enable, resize set width 80 ppt height 60 ppt
for_window [app_id="floating_shell_portrait"] floating enable, border pixel 1, sticky enable, resize set width 60 ppt height 80 ppt
for_window [app_id="floating_shell_landscape"] floating enable, border pixel 1, sticky enable, resize set width 80 ppt height 60 ppt
for_window [app_id="pavucontrol"] floating enable, border pixel 1, sticky enable, resize set width 60 ppt height 80 ppt
for_window [app_id="pamac-manager"] floating enable, border pixel 1, sticky enable, resize set width 80 ppt height 60 ppt
for_window [app_id="blueman-manager"] floating enable, border pixel 1, sticky enable, resize set width 80 ppt height 60 ppt
for_window [app_id="powersupply"] floating enable, border pixel 1, sticky enable, resize set width 80 ppt height 60 ppt
for_window [app_id="blueman-manager"] floating enable, border pixel 1, sticky enable, resize set width 60 ppt height 80 ppt
for_window [app_id="powersupply"] floating enable, border pixel 1, sticky enable, resize set width 60 ppt height 80 ppt
for_window [instance="lxappearance"] floating enable, border pixel 1, sticky enable, resize set width 80 ppt height 60 ppt
for_window [title="File Operation Progress"] floating enable
for_window [app_id="firefox" title="Library"] floating enable
for_window [app_id="thunderbird" title=".*Reminder"] floating enable
for_window [title="File Operation Progress"] floating enable, border pixel 1, sticky enable, resize set width 80 ppt height 60 ppt
for_window [app_id="firefox" title="Library"] floating enable, border pixel 1, sticky enable, resize set width 60 ppt height 80 ppt
for_window [app_id="thunderbird" title=".*Reminder"] floating enable, border pixel 1, sticky enable, resize set width 60 ppt height 80 ppt
......@@ -14,7 +14,8 @@ set $theme /etc/sway/themes/matcha-green
# Your preferred terminal emulator
set $term termite --config=$theme/termite
set $term_float $term --name=floating_shell --exec
set $term_float_portrait $term --name=floating_shell_portrait --exec
set $term_float_landscape $term --name=floating_shell_landscape --exec
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment