1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-01-31 07:03:36 +00:00
.dotfiles/nixos/home/yambar.nix

59 lines
2 KiB
Nix
Raw Normal View History

2024-12-31 07:37:57 +00:00
{ ... }: {
programs.yambar = {
enable = true;
settings = {
bar = {
location = "top";
2024-12-31 08:41:03 +00:00
height = 18;
background = "00000088";
font = "GohuFont:style=Regular:pixelsize=11";
margin = 16;
spacing = 3;
left = [
{
2024-12-31 09:36:24 +00:00
# TODO: mpd <https://www.mankier.com/5/yambar-modules-mpd>
2024-12-31 08:41:03 +00:00
label = {
content.string.text = "god's in his heaven | all's right with the world";
};
}
];
2024-12-31 07:37:57 +00:00
right = [
2024-12-31 08:41:03 +00:00
{
pipewire = {
content.map.conditions."type == sink".string = {
text = "vol {cubic_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}% |";
};
}
2024-12-31 07:37:57 +00:00
{
clock = {
date-format = "%b %d %y";
time-format = "%I:%M %p";
2024-12-31 08:41:03 +00:00
content.string.text = "{date} {time}";
2024-12-31 07:37:57 +00:00
};
}
];
};
};
};
}