From 92ca92c56e728d12bb8b9d7ce8bfd74bed81c104 Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Wed, 16 Jul 2025 14:26:58 +0200 Subject: [PATCH] Fix Waybar configuration --- waybar/.config/waybar/config.jsonc | 67 ++++-------------------------- waybar/.config/waybar/style.css | 12 ++++-- 2 files changed, 17 insertions(+), 62 deletions(-) diff --git a/waybar/.config/waybar/config.jsonc b/waybar/.config/waybar/config.jsonc index e56ff29..7cc88e3 100644 --- a/waybar/.config/waybar/config.jsonc +++ b/waybar/.config/waybar/config.jsonc @@ -1,12 +1,9 @@ { - "layer": "top", // Waybar at top layer - "position": "top", // Waybar position (top|bottom|left|right) - // "width": 1280, // Waybar width - // Choose the order of the modules + "layer": "top", // Waybar at top layer + "position": "top", // Waybar position (top|bottom|left|right) "modules-left": [ - "hyprland/workspaces", - "hyprland/window", - "sway/workspaces" + "sway/workspaces", + "sway/window" ], "modules-center": [ "clock" @@ -18,7 +15,7 @@ "battery", "custom/power" ], - "hyprland/workspaces": { + "sway/workspaces": { "disable-scroll": true, "disable-markup": false, "all-outputs": true, @@ -35,7 +32,7 @@ "active": "", "default": "" }, - "persistent-workspaces": { + "persistent-workspaces": { "1": [ "HDMI-A-1" ], @@ -68,55 +65,9 @@ ] } }, - "sway/workspaces": { - "disable-scroll": true, - "disable-markup": false, - "all-outputs": true, - "format": " {icon} ", - "on-click": "activate", - "sort-by-number": true, - "format-icons": { - "1": "", - "2": "", - "3": "", - "4": "", - "5": "", - "urgent": "", - "active": "", - "default": "" - }, - "persistent-workspaces": { - "1": [ - "HDMI-A-1" - ], - "2": [ - "HDMI-A-1" - ], - "3": [ - "HDMI-A-1" - ], - "4": [ - "HDMI-A-1" - ], - "5": [ - "HDMI-A-1" - ], - "6": [ - "HDMI-A-1" - ], - "7": [ - "HDMI-A-1" - ], - "8": [ - "HDMI-A-1" - ], - "9": [ - "HDMI-A-1" - ], - "10": [ - "eDP-1" - ] - } + "sway/window": { + "format": "{}", + "max-length": 50 }, "tray": { "icon-size": 24, diff --git a/waybar/.config/waybar/style.css b/waybar/.config/waybar/style.css index 24a20ae..89dbde8 100644 --- a/waybar/.config/waybar/style.css +++ b/waybar/.config/waybar/style.css @@ -2,14 +2,14 @@ * { font-family: FiraCode Nerd Font; - font-size: 17px; + font-size: 12px; min-height: 0; } #waybar { - background: transparent; + /*background: transparent;*/ color: @text; - margin: 5px 5px; + /*margin: 5px 5px;*/ } #workspaces { @@ -50,7 +50,6 @@ } #clock { - color: @blue; border-radius: 0px 1rem 1rem 0px; margin-right: 1rem; } @@ -101,3 +100,8 @@ margin-right: 1rem; border-radius: 1rem; } + +window#waybar { + background-color: shade(@base, 0.9); + border: 2px solid alpha(@crust, 0.3); +}