From fa03bde81b88271b883f19ccecc9ed6463a2d907 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Wed, 13 Dec 2023 00:16:13 +0100 Subject: [PATCH] Switch to taskbar on waybar --- waybar/config | 7 ++++++- waybar/style.css | 12 ++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/waybar/config b/waybar/config index c9972c3..b3ad258 100644 --- a/waybar/config +++ b/waybar/config @@ -3,9 +3,14 @@ "height": 28, // Waybar height (to be removed for auto height) "spacing": 4, // Gaps between modules (4px) "output": "eDP-1", - "modules-left": ["hyprland/window"], + "modules-left": ["wlr/taskbar"], "modules-center": ["hyprland/workspaces"], "modules-right": ["tray", "wireplumber", "cpu#cpu2", "cpu", "memory", "custom/updates", "temperature", "battery", "clock"], + "wlr/taskbar": { + "on-click": "activate", + "on-click-right": "close", + "format": "{icon} {title:.15}" + }, "wireplumber": { "format": "{icon} {volume}%", "format-muted": "", diff --git a/waybar/style.css b/waybar/style.css index 27321bc..e993246 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -70,6 +70,18 @@ button:hover { margin-right:2px; } +#taskbar button { + padding: 0 12px; + border-radius: 5px; + color: #ffffff; + background-color: #1f2430; + margin-left:2px; + margin-right:2px; +} +#taskbar button.active { + background-color: #002F5F; +} + #window { font-weight:400; margin-left:0;