mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 19:55:08 +01:00
waybar
This commit is contained in:
parent
4c617077b2
commit
fcfb452fa2
2 changed files with 29 additions and 5 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{ config, ... }: {
|
||||
home.file."${config.xdg.configHome}/waybar/config.jsonc" = {
|
||||
text = builtins.toJSON {
|
||||
{ ... }: {
|
||||
programs.waybar.enable = true;
|
||||
programs.waybar.settings = {
|
||||
mainBar = {
|
||||
height = 35;
|
||||
spacing = 4;
|
||||
modules-left = [ ];
|
||||
|
|
@ -8,12 +9,34 @@
|
|||
"clock"
|
||||
];
|
||||
modules-right = [
|
||||
"privacy"
|
||||
"pulseaudio"
|
||||
"cpu"
|
||||
"memory"
|
||||
"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 = {
|
||||
# "scroll-step": 1, // %, can be a float
|
||||
"format" = "{volume}% {icon} {format_source}";
|
||||
|
|
@ -44,6 +67,7 @@
|
|||
tray = {
|
||||
spacing = 10;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue