diff --git a/system/.config/waybar/config b/system/.config/waybar/config index 5fb2ad0..4044734 100644 --- a/system/.config/waybar/config +++ b/system/.config/waybar/config @@ -6,7 +6,7 @@ "spacing": 6, "margin": "6px", "modules-left": ["sway/workspaces", "sway/mode"], - "modules-center": [], + "modules-center": ["sway/window"], "modules-right": ["custom/update", "pulseaudio", "battery", "network", "clock", "custom/power"], "sway/workspaces": { "disable-scroll": true, @@ -24,6 +24,9 @@ "10": "ﱘ", } }, + "sway/window": { + "max-length": 50, + }, "custom/update": { "format": "累 {}", "exec": "update-count", diff --git a/system/.config/waybar/style.css b/system/.config/waybar/style.css index eeb38c3..a58703f 100644 --- a/system/.config/waybar/style.css +++ b/system/.config/waybar/style.css @@ -28,6 +28,11 @@ border-radius: 6px; } +window#waybar.empty #window { + padding: 0; + background: transparent; +} + #workspaces button:first-child { border-top-left-radius: 6px; border-bottom-left-radius: 6px;