Remove window decorations

This commit is contained in:
Albert Armea 2025-12-28 01:06:51 -05:00
parent 336a8f7eb2
commit 5ee5d80e52

View file

@ -51,21 +51,23 @@ bindsym Mod4+Shift+Escape exit
# Shepherd HUD should always be visible on top (likely uses layer-shell protocol) # Shepherd HUD should always be visible on top (likely uses layer-shell protocol)
# Layer shell surfaces are automatically handled by sway and don't need window rules # Layer shell surfaces are automatically handled by sway and don't need window rules
# Make launcher windows fullscreen # Make launcher windows fullscreen (launcher doesn't need to respect HUD)
for_window [app_id="shepherd-launcher"] fullscreen enable for_window [app_id="shepherd-launcher"] fullscreen enable
# Make other windows fullscreen by default and remove decorations # Make other windows maximize to fill available space (respecting HUD exclusive zone)
for_window [class=".*"] fullscreen enable, border none, title_format "" # We use inhibit_idle and border none to make them behave like fullscreen visually
for_window [app_id=".*"] fullscreen enable, border none, title_format "" # but they will respect layer-shell exclusive zones
for_window [class=".*"] border none, title_format ""
for_window [app_id=".*"] border none, title_format ""
# Minecraft Launcher (Electron app) and Minecraft Java Edition (game) # Minecraft Launcher (Electron app) and Minecraft Java Edition (game)
# Launcher: class="Minecraft Launcher" instance="minecraft-launcher" # Launcher: class="Minecraft Launcher" instance="minecraft-launcher"
# Game: class="Minecraft 1.21.11" instance="Minecraft 1.21.11" (version varies) # Game: class="Minecraft 1.21.11" instance="Minecraft 1.21.11" (version varies)
# We add "focus" to ensure the window gets focus when it appears # We add "focus" to ensure the window gets focus when it appears
for_window [class="^Minecraft [0-9]"] fullscreen enable, border none, focus for_window [class="^Minecraft [0-9]"] border none, focus
for_window [instance="^Minecraft [0-9]"] fullscreen enable, border none, focus for_window [instance="^Minecraft [0-9]"] border none, focus
for_window [class="^Minecraft Launcher$"] fullscreen enable, border none for_window [class="^Minecraft Launcher$"] border none
for_window [instance="^minecraft-launcher$"] fullscreen enable, border none for_window [instance="^minecraft-launcher$"] border none
# Disable window decorations (no title bars) - for all windows # Disable window decorations (no title bars) - for all windows
default_border none default_border none
@ -87,10 +89,14 @@ titlebar_padding 0 0
gaps inner 0 gaps inner 0
gaps outer 0 gaps outer 0
# Force focus mode - only one visible window at a time # Use stacking layout - windows stack on top of each other (focused one visible)
workspace_layout tabbed # This avoids tiling side-by-side while also avoiding tabbed's window switcher
workspace_layout stacking
focus_follows_mouse no focus_follows_mouse no
# Hide any title/tab text by using minimal font size
font pango:monospace 1
# Prevent window closing via keybindings (no Alt+F4) # Prevent window closing via keybindings (no Alt+F4)
# Windows can only be closed by the application itself # Windows can only be closed by the application itself
@ -129,8 +135,9 @@ exec_always sleep 1 && $launcher
# Disable Xwayland if not needed (prevents X11 escape hatches) # Disable Xwayland if not needed (prevents X11 escape hatches)
# xwayland disable # xwayland disable
# Prevent floating windows (everything fullscreen) # Prevent floating windows from staying floating - make them tiled
for_window [floating] fullscreen enable # This ensures they respect the HUD's exclusive zone
for_window [floating] floating disable
# Lock down IPC for security (prevents external control) # Lock down IPC for security (prevents external control)
# ipc { # ipc {