From 5ee5d80e52ed4f28e165fe89eb0d15c8a9423da1 Mon Sep 17 00:00:00 2001 From: Albert Armea Date: Sun, 28 Dec 2025 01:06:51 -0500 Subject: [PATCH] Remove window decorations --- sway.conf | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/sway.conf b/sway.conf index e18681e..e2352be 100644 --- a/sway.conf +++ b/sway.conf @@ -51,21 +51,23 @@ bindsym Mod4+Shift+Escape exit # 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 -# Make launcher windows fullscreen +# Make launcher windows fullscreen (launcher doesn't need to respect HUD) for_window [app_id="shepherd-launcher"] fullscreen enable -# Make other windows fullscreen by default and remove decorations -for_window [class=".*"] fullscreen enable, border none, title_format "" -for_window [app_id=".*"] fullscreen enable, border none, title_format "" +# Make other windows maximize to fill available space (respecting HUD exclusive zone) +# We use inhibit_idle and border none to make them behave like fullscreen visually +# 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) # Launcher: class="Minecraft Launcher" instance="minecraft-launcher" # 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 -for_window [class="^Minecraft [0-9]"] fullscreen enable, border none, focus -for_window [instance="^Minecraft [0-9]"] fullscreen enable, border none, focus -for_window [class="^Minecraft Launcher$"] fullscreen enable, border none -for_window [instance="^minecraft-launcher$"] fullscreen enable, border none +for_window [class="^Minecraft [0-9]"] border none, focus +for_window [instance="^Minecraft [0-9]"] border none, focus +for_window [class="^Minecraft Launcher$"] border none +for_window [instance="^minecraft-launcher$"] border none # Disable window decorations (no title bars) - for all windows default_border none @@ -87,10 +89,14 @@ titlebar_padding 0 0 gaps inner 0 gaps outer 0 -# Force focus mode - only one visible window at a time -workspace_layout tabbed +# Use stacking layout - windows stack on top of each other (focused one visible) +# This avoids tiling side-by-side while also avoiding tabbed's window switcher +workspace_layout stacking 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) # 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) # xwayland disable -# Prevent floating windows (everything fullscreen) -for_window [floating] fullscreen enable +# Prevent floating windows from staying floating - make them tiled +# This ensures they respect the HUD's exclusive zone +for_window [floating] floating disable # Lock down IPC for security (prevents external control) # ipc {