waybar: switch to wlr taskbar

This commit is contained in:
2026-02-04 00:18:53 -08:00
parent b234cbec56
commit 5c3c55c582
2 changed files with 26 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
"height": 30, "height": 30,
"spacing": 4, "spacing": 4,
"modules-left": [ "modules-left": [
"hyprland/workspaces", "wlr/taskbar",
"hyprland/submap" "hyprland/submap"
], ],
"modules-center": [ "modules-center": [
@@ -81,5 +81,15 @@
"format-source": "MIC {volume}%", "format-source": "MIC {volume}%",
"format-source-muted": "MIC muted", "format-source-muted": "MIC muted",
"on-click": "pavucontrol" "on-click": "pavucontrol"
},
"wlr/taskbar": {
"format": "{icon}",
"icon-size": 16,
"tooltip-format": "{title}",
"on-click": "activate",
"on-click-middle": "close",
"ignore-list": [
"waybar"
]
} }
} }

View File

@@ -53,22 +53,27 @@ button:hover {
background-color: #a37800; background-color: #a37800;
} }
#workspaces button { #workspaces button,
#taskbar button {
padding: 0 5px; padding: 0 5px;
background-color: transparent; background-color: transparent;
color: #ffffff; color: #ffffff;
} }
#workspaces button:hover { #workspaces button:hover,
#taskbar button:hover {
background: rgba(0, 0, 0, 0.2); background: rgba(0, 0, 0, 0.2);
} }
#workspaces button.focused { #workspaces button.focused,
#taskbar button.active,
#taskbar button.focused {
background-color: #64727D; background-color: #64727D;
box-shadow: inset 0 -3px #ffffff; box-shadow: inset 0 -3px #ffffff;
} }
#workspaces button.urgent { #workspaces button.urgent,
#taskbar button.urgent {
background-color: #eb4d4b; background-color: #eb4d4b;
} }
@@ -99,17 +104,20 @@ button:hover {
} }
#window, #window,
#workspaces { #workspaces,
#taskbar {
margin: 0 4px; margin: 0 4px;
} }
/* If workspaces is the leftmost module, omit left margin */ /* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces { .modules-left > widget:first-child > #workspaces,
.modules-left > widget:first-child > #taskbar {
margin-left: 0; margin-left: 0;
} }
/* If workspaces is the rightmost module, omit right margin */ /* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces { .modules-right > widget:last-child > #workspaces,
.modules-right > widget:last-child > #taskbar {
margin-right: 0; margin-right: 0;
} }