This commit is contained in:
nora 2025-04-06 21:30:22 +02:00
parent 4c617077b2
commit fcfb452fa2
2 changed files with 29 additions and 5 deletions

View file

@ -1,6 +1,7 @@
{ config, ... }: { { ... }: {
home.file."${config.xdg.configHome}/waybar/config.jsonc" = { programs.waybar.enable = true;
text = builtins.toJSON { programs.waybar.settings = {
mainBar = {
height = 35; height = 35;
spacing = 4; spacing = 4;
modules-left = [ ]; modules-left = [ ];
@ -8,12 +9,34 @@
"clock" "clock"
]; ];
modules-right = [ modules-right = [
"privacy"
"pulseaudio" "pulseaudio"
"cpu" "cpu"
"memory" "memory"
"tray" "tray"
]; ];
clock = {
format = "{:%a %F %H:%M}";
"tooltip-format" = "<tt><small>{calendar}</small></tt>";
"calendar" = {
"mode" = "year";
"mode-mon-col" = 3;
"weeks-pos" = "right";
"on-scroll" = 1;
"format" = {
"months" = "<span color='#ffead3'><b>{}</b></span>";
"days" = "<span color='#ecc6d9'><b>{}</b></span>";
"weeks" = "<span color='#99ffdd'><b>W{}</b></span>";
"weekdays" = "<span color='#ffcc66'><b>{}</b></span>";
"today" = "<span color='#ff6699'><b><u>{}</u></b></span>";
};
};
"actions" = {
"on-click-right" = "mode";
"on-scroll-up" = "shift_up";
"on-scroll-down" = "shift_down";
};
};
pulseaudio = { pulseaudio = {
# "scroll-step": 1, // %, can be a float # "scroll-step": 1, // %, can be a float
"format" = "{volume}% {icon} {format_source}"; "format" = "{volume}% {icon} {format_source}";
@ -44,6 +67,7 @@
tray = { tray = {
spacing = 10; spacing = 10;
}; };
}; };
}; };
} }

View file

@ -179,7 +179,6 @@ in
}; };
services.displayManager.enable = true; services.displayManager.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-gnome pkgs.gnome-keyring ]; xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-gnome pkgs.gnome-keyring ];
programs.waybar.enable = true;
# TODO: Create a fancontrol config # TODO: Create a fancontrol config
hardware.fancontrol.enable = false; hardware.fancontrol.enable = false;
@ -317,6 +316,7 @@ in
alacritty alacritty
fuzzel fuzzel
xwayland-satellite xwayland-satellite
font-awesome
]; ];
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are