1
0
forked from extern/nix-config

waybar: Make the bar look nicer

This commit is contained in:
Donovan Glover 2023-05-13 22:32:35 -04:00
parent 281a3a9198
commit a607c099ea
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -525,18 +525,40 @@
mainBar = { mainBar = {
layer = "top"; layer = "top";
position = "left"; position = "left";
width = 30; width = 45;
spacing = 8;
modules-left = [ "wlr/workspaces" ]; modules-left = [ "wlr/workspaces" ];
modules-center = [ "hyprland/window" ]; modules-center = [ "hyprland/window" ];
modules-right = modules-right =
[ "tray" "wireplumber" "backlight" "battery" "clock" ]; [ "tray" "wireplumber" "backlight" "battery" "clock" ];
"tray" = {
"icon-size" = 24;
};
"hyprland/window" = { "hyprland/window" = {
"rotate" = 90; "rotate" = 90;
}; };
"wlr/workspaces" = {
on-click = "activate";
};
wireplumber = {
format = "{icon}";
tooltip-format = "{volume}% {node_name}";
format-muted = "";
format-icons = ["" ""];
};
battery = { battery = {
"format" = "{icon}"; "format" = "{icon}";
"tooltip-format" = "{capacity}% {timeTo}";
"format-icons" = ["" "" "" "" ""]; "format-icons" = ["" "" "" "" ""];
}; };
clock = {
"format" = "{:%H\n%M}";
"tooltip-format" = "<tt>{calendar}</tt>";
};
backlight = {
"format" = "{icon}";
"format-icons" = ["" ""];
};
}; };
}; };
style = lib.mkForce '' style = lib.mkForce ''
@ -576,6 +598,16 @@
background: alpha(@base02, 0.67); background: alpha(@base02, 0.67);
} }
#window {
padding-top: 8px;
padding-bottom: 12px;
}
#tray * {
padding-top: 8px;
padding-bottom: 8px;
}
tooltip, #tray menu { tooltip, #tray menu {
background: @base00; background: @base00;
border: 1px solid alpha(@base09, 0.93); border: 1px solid alpha(@base09, 0.93);
@ -586,6 +618,12 @@
font-family: "Font Awesome 6 Free Solid"; font-family: "Font Awesome 6 Free Solid";
font-size: 24px; font-size: 24px;
} }
#clock {
font-size: 18px;
font-weight: bold;
padding-bottom: 8px;
}
''; '';
}; };
programs.zathura = { programs.zathura = {