Modify Sway windows configuration

This commit is contained in:
Fabio Scotto di Santolo
2025-07-27 16:09:27 +02:00
parent b1be4dd5f5
commit a4005d8a2b

View File

@@ -1,15 +1,66 @@
### Window configurations #-----------------------#
# Windows configuration #
gaps inner 5 # ----------------------#
gaps outer 5 bindsym $mod+shift+g exec swaymsg gaps outer all set 0 && swaymsg gaps inner all set 5
bindsym $mod+g exec swaymsg gaps outer all set 0 && swaymsg gaps inner all set 0
# No gaps when there is a single window # No gaps when there is a single window
#smart_gaps on #smart_gaps on
# Remove title bar # Activate smart borders (always)
default_border pixel 2 #smart_borders on
for_window [window_type="dialog"] floating enable default_border pixel 3
for_window [window_role="dialog"] floating enable default_floating_border pixel 3
for_window [shell="xwayland"] title_format "[XWayland] %title" gaps inner 5
gaps outer 5
#------------------------------#
# Always float certain windows #
#------------------------------#
for_window [app_id="pop-up"] floating enable
for_window [app_id="bubble"] floating enable
for_window [app_id="task_dialog"] floating enable
for_window [app_id="Preferences"] floating enable
for_window [app_id="dialog"] floating enable
for_window [app_id="menu"] floating enable
for_window [app_id="Organizer"] floating enable
for_window [app_id="About"] floating enable
for_window [app_id="toolbox"] floating enable
for_window [app_id="page-info"] floating enable
for_window [app_id="webconsole"] floating enable
for_window [app_id="Authy"] floating enable
for_window [app_id="termfloat"] floating enable
for_window [app_id="termfloat"] resize set height 540
for_window [app_id="termfloat"] resize set width 960
for_window [app_id="mpv"] floating enable
for_window [app_id="mpv"] resize set height 540
for_window [app_id="mpv"] resize set width 960
#-------------------------------------------------------#
# Sticky floating windows(sticky enable|disable|toggle) #
#-------------------------------------------------------#
for_window [app_id="danmufloat"] floating enable
for_window [app_id="danmufloat"] sticky enable
for_window [app_id="danmufloat"] resize set height 540
for_window [app_id="danmufloat"] resize set width 960
#-----------------#
# Program Opacity #
#-----------------#
for_window [app_id="telegram"] opacity 1.00
#------------------------------------------#
# Placing software in a specific workspace #
#------------------------------------------#
assign [app_id="foot"]: workspace number 1
for_window [app_id="foot"]: focus
assign [app_id="firefox"]: workspace number 2
for_window [app_id="firefox"] focus
assign [app_id="telegram"]: workspace number 5
for_window [app_id="telegram"] focus
#---------------------#
# Focus follows mouse #
#---------------------#
focus_follows_mouse no