This commit is contained in:
nora 2025-04-07 19:01:32 +02:00
parent fcfb452fa2
commit 1235ffe614
2 changed files with 66 additions and 65 deletions

View file

@ -1,73 +1,73 @@
{ ... }: { { config, ... }: {
programs.waybar.enable = true; home.file."${config.xdg.configHome}/waybar/config.jsonc" = {
programs.waybar.settings = { text =
mainBar = { builtins.toJSON {
height = 35; height = 35;
spacing = 4; spacing = 4;
modules-left = [ ]; modules-left = [ ];
modules-center = [ modules-center = [
"clock" "clock"
]; ];
modules-right = [ modules-right = [
"privacy" "privacy"
"pulseaudio" "pulseaudio"
"cpu" "cpu"
"memory" "memory"
"tray" "tray"
]; ];
clock = { clock = {
format = "{:%a %F %H:%M}"; format = "{:%a %F %H:%M}";
"tooltip-format" = "<tt><small>{calendar}</small></tt>"; "tooltip-format" = "<tt><small>{calendar}</small></tt>";
"calendar" = { "calendar" = {
"mode" = "year"; "mode" = "year";
"mode-mon-col" = 3; "mode-mon-col" = 3;
"weeks-pos" = "right"; "weeks-pos" = "right";
"on-scroll" = 1; "on-scroll" = 1;
"format" = { "format" = {
"months" = "<span color='#ffead3'><b>{}</b></span>"; "months" = "<span color='#ffead3'><b>{}</b></span>";
"days" = "<span color='#ecc6d9'><b>{}</b></span>"; "days" = "<span color='#ecc6d9'><b>{}</b></span>";
"weeks" = "<span color='#99ffdd'><b>W{}</b></span>"; "weeks" = "<span color='#99ffdd'><b>W{}</b></span>";
"weekdays" = "<span color='#ffcc66'><b>{}</b></span>"; "weekdays" = "<span color='#ffcc66'><b>{}</b></span>";
"today" = "<span color='#ff6699'><b><u>{}</u></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";
}; };
}; };
"actions" = { pulseaudio = {
"on-click-right" = "mode"; # "scroll-step": 1, // %, can be a float
"on-scroll-up" = "shift_up"; "format" = "{volume}% {icon} {format_source}";
"on-scroll-down" = "shift_down"; "format-bluetooth" = "{volume}% {icon} {format_source}";
"format-bluetooth-muted" = " {icon} {format_source}";
"format-muted" = " {format_source}";
"format-source" = "{volume}% ";
"format-source-muted" = "";
"format-icons" = {
"headphone" = "";
"hands-free" = "";
"headset" = "";
"phone" = "";
"portable" = "";
"car" = "";
"default" = [ "" "" "" ];
};
"on-click" = "pavucontrol";
}; };
};
pulseaudio = { cpu = {
# "scroll-step": 1, // %, can be a float format = "{usage}% ";
"format" = "{volume}% {icon} {format_source}"; tooltip = false;
"format-bluetooth" = "{volume}% {icon} {format_source}"; };
"format-bluetooth-muted" = " {icon} {format_source}"; memory = {
"format-muted" = " {format_source}"; format = "{}% ";
"format-source" = "{volume}% "; };
"format-source-muted" = ""; tray = {
"format-icons" = { spacing = 10;
"headphone" = "";
"hands-free" = "";
"headset" = "";
"phone" = "";
"portable" = "";
"car" = "";
"default" = [ "" "" "" ];
}; };
"on-click" = "pavucontrol";
};
cpu = {
format = "{usage}% ";
tooltip = false;
}; };
memory = {
format = "{}% ";
};
tray = {
spacing = 10;
};
};
}; };
} }

View file

@ -179,6 +179,7 @@ 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;