Adjust waybar layout and sizes

Change colour of MPRIS module to distinguish from sway/window module
This commit is contained in:
Evie Litherland-Smith 2024-09-12 07:32:13 +01:00
parent 887b54a6d8
commit 1829bd267c

View file

@ -19,12 +19,11 @@
position = "top"; position = "top";
# Layout # Layout
"modules-left" = [ "modules-left" = [
"sway/workspaces"
"sway/window" "sway/window"
];
"modules-center" = [ ];
"modules-right" = [
"mpris" "mpris"
];
"modules-center" = [ "sway/workspaces" ];
"modules-right" = [
"custom/notification" "custom/notification"
"pulseaudio" "pulseaudio"
"network" "network"
@ -276,7 +275,7 @@
return-type = "json"; return-type = "json";
}; };
tray = { tray = {
icon-size = builtins.floor fonts.sizes.popups; icon-size = 20;
show-passive-items = true; show-passive-items = true;
spacing = 5; spacing = 5;
}; };
@ -289,13 +288,14 @@
'' ''
* { * {
all: unset; all: unset;
font-size: ${toString fonts.sizes.popups}px; font-size: 1em;
font-family: ${fonts.monospace.name}; font-family: ${fonts.monospace.name};
} }
window { window {
background: transparent; background: transparent;
box-shadow: none; box-shadow: none;
border: none;
} }
window > box { window > box {
@ -339,7 +339,6 @@
#workspaces, #workspaces,
#window, #window,
#mpris,
#tray, #tray,
#backlight, #backlight,
#battery, #battery,
@ -363,6 +362,10 @@
color: ${sc.base09}; color: ${sc.base09};
} }
#mpris {
color: ${sc.base04};
}
#custom-notification { #custom-notification {
color: ${sc.base08}; color: ${sc.base08};
} }