bar: Add taskbar

This commit is contained in:
Mikael 2024-09-04 22:33:02 +02:00
parent f65c4aa5f3
commit 7085000035
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -32,10 +32,6 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
font: 600 12pt sans-serif; font: 600 12pt sans-serif;
} }
window > box {
padding: 1.5mm 3mm;
}
window, tooltip { window, tooltip {
background: ${base00}; background: ${base00};
color: ${base05}; color: ${base05};
@ -45,15 +41,23 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
border-color: ${base0D}; border-color: ${base0D};
} }
label.module { #tray, #taskbar, .modules-center, .modules-right {
padding: 0 3mm; padding: 0 3mm;
min-width: 5mm;
} }
#tray > * > * { #tray image {
padding: 0 1.5mm; padding: 0 1.5mm;
} }
#taskbar button {
padding: 0 1.5mm;
}
.modules-right label.module {
padding: 1.5mm 3mm;
min-width: 5mm;
}
#battery.warning { #battery.warning {
color: ${yellow}; color: ${yellow};
} }
@ -89,8 +93,13 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
position = "bottom"; position = "bottom";
spacing = 0; spacing = 0;
modules-left = [ "tray" ]; modules-left = [
"tray"
"wlr/taskbar"
];
modules-center = [ "mpris" ]; modules-center = [ "mpris" ];
modules-right = [ modules-right = [
"idle_inhibitor" "idle_inhibitor"
"network" "network"
@ -110,6 +119,15 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
tray.spacing = 0; tray.spacing = 0;
"wlr/taskbar" = {
format = "{icon}";
icon-size = 16;
tooltip-format = "{title}";
on-click = "activate";
on-click-right = "close";
};
mpris = { mpris = {
interval = 1; interval = 1;
format = "{status_icon}{dynamic}{player_icon}"; format = "{status_icon}{dynamic}{player_icon}";