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 = {
|
2024-12-31 13:07:39 +00:00
|
|
|
text = "vol {linear_volume}% |";
|
2024-12-31 08:41:03 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|