1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-01-31 15:03:37 +00:00
.dotfiles/nixos/home/yambar.nix
2024-12-31 08:07:39 -05:00

58 lines
2 KiB
Nix

{ ... }: {
programs.yambar = {
enable = true;
settings = {
bar = {
location = "top";
height = 18;
background = "00000088";
font = "GohuFont:style=Regular:pixelsize=11";
margin = 16;
spacing = 3;
left = [
{
# TODO: mpd <https://www.mankier.com/5/yambar-modules-mpd>
label = {
content.string.text = "god's in his heaven | all's right with the world";
};
}
];
right = [
{
pipewire = {
content.map.conditions."type == sink".string = {
text = "vol {linear_volume}% |";
on-click = {
left = "pavucontrol";
wheel-up = "amixer sset Master 1%+";
wheel-down = "amixer sset Master 1%-";
};
};
};
}
{
cpu = {
poll-interval = 2000;
content.map.conditions."id < 0".string.text = "cpu {cpu}%";
};
}
{
mem = {
poll-interval = 2000;
content.string.text = "ram {percent_used}% |";
};
}
{
clock = {
date-format = "%b %d %y";
time-format = "%I:%M %p";
content.string.text = "{date} {time}";
};
}
];
};
};
};
}