Skip to content

Commit

Permalink
more waybar config
Browse files Browse the repository at this point in the history
  • Loading branch information
otosky committed Apr 14, 2024
1 parent 121bf04 commit ade3779
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions homes/_modules/desktop/common/wayland-wm/waybar.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,47 @@ in {
"pulseaudio"
"battery"
"network"
"custom/hostname"
];

clock = {
interval = 1;
format = "{:%d/%m %H:%M:%S}";
format-alt = "{:%Y-%m-%d %H:%M:%S %z}";
on-click-left = "mode";
tooltip-format = ''
<big>{:%Y %B}</big>
<tt><small>{calendar}</small></tt>'';
};

cpu = {
format = " {usage}%";
};
memory = {
format = " {}%";
interval = 5;
};

pulseaudio = {
format = "{icon} {volume}%";
format-muted = " 0%";
format-icons = {
headphone = "󰋋";
headset = "󰋎";
portable = "";
default = [
""
""
""
];
};
on-click = pavucontrol;
};

"custom/hostname" = {
exec = "echo $USER@$HOSTNAME";
on-click = "${systemctl} --user restart waybar";
};
};
};
style = ''
Expand Down

0 comments on commit ade3779

Please sign in to comment.