Improve waybar widgets

This commit is contained in:
SebastianStork 2024-04-14 21:48:14 +02:00
parent 737c22d65b
commit 8f456c797d

View file

@ -4,7 +4,6 @@
... ...
}: { }: {
config = lib.mkIf config.myConfig.de.hyprland.enable { config = lib.mkIf config.myConfig.de.hyprland.enable {
programs.waybar = { programs.waybar = {
enable = true; enable = true;
systemd.enable = true; systemd.enable = true;
@ -13,7 +12,7 @@
mainBar = { mainBar = {
layer = "top"; layer = "top";
position = "top"; position = "top";
spacing = 3; spacing = 10;
modules-left = ["clock"]; modules-left = ["clock"];
modules-center = ["hyprland/workspaces"]; modules-center = ["hyprland/workspaces"];
@ -24,8 +23,36 @@
all-outputs = true; all-outputs = true;
}; };
clock = {
format = " {:%H.%M}";
tooltip-format = "{:%d.%m.%Y}";
};
wireplumber = {
format = "{icon} {volume}%";
format-muted = "󰝟";
format-icons = ["󰕿" "󰖀" "󰕾"];
scroll-step = "5";
};
tray = {
icon-size = 20;
spacing = 6;
};
backlight = { backlight = {
device = "amdgpu_bl1"; device = "amdgpu_bl1";
format = "{icon} {percent}%";
format-icons = ["󰃞" "󰃟" "󰃠"];
};
battery = {
states = {
warning = 15;
critical = 5;
};
format = "{icon} {capacity}%";
format-icons = ["󰂎" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹"];
}; };
}; };
}; };
@ -34,8 +61,8 @@
* { * {
border: none; border: none;
border-radius: 0px; border-radius: 0px;
font-family: "JetBrainsMono Nerd Font"; font-family: "Open Sans, Symbols Nerd Font Mono";
font-size: 14px; font-size: 15px;
} }
window#waybar { window#waybar {