make bar cooler

This commit is contained in:
nora 2025-06-08 16:16:18 +02:00
parent 571f0fb488
commit dd025f248a
2 changed files with 36 additions and 2 deletions

View file

@ -39,6 +39,8 @@ in
}; };
services.gnome-keyring.enable = true; services.gnome-keyring.enable = true;
services.playerctld.enable = true;
home.packages = with pkgs; [ home.packages = with pkgs; [
audacity audacity
customPkgs.cargo-bisect-rustc customPkgs.cargo-bisect-rustc

View file

@ -6,7 +6,13 @@
builtins.toJSON { builtins.toJSON {
height = 35; height = 35;
spacing = 4; spacing = 4;
modules-left = [ "systemd-failed-units" ];
modules-left = [
"systemd-failed-units"
"custom/music-back"
"mpris"
"custom/music-next"
];
modules-center = [ modules-center = [
"clock" "clock"
]; ];
@ -26,6 +32,25 @@
system = true; # Monitor failed systemwide units. system = true; # Monitor failed systemwide units.
user = false; # Ignore failed user units. user = false; # Ignore failed user units.
}; };
"custom/music-back" = {
format = "";
tooltip = true;
tooltip-format = "Play previous song";
on-click = "${lib.getExe pkgs.playerctl} previous";
};
mpris = {
format = "{status_icon} {dynamic}";
dynamic-order = [ "title" "artist" ];
status-icons = {
paused = "";
};
};
"custom/music-next" = {
format = "";
tooltip = true;
tooltip-format = "Play next song";
on-click = "${lib.getExe pkgs.playerctl} next";
};
clock = { clock = {
interval = 1; interval = 1;
format = "{:%a %F %H:%M:%S}"; format = "{:%a %F %H:%M:%S}";
@ -127,15 +152,22 @@
#custom-power { #custom-power {
padding-left: 15px; padding-left: 15px;
padding-right: 15px; padding-right: 15px;
font-size: 30px;
background-color: rebeccapurple; background-color: rebeccapurple;
} }
#systemd-failed-units { #systemd-failed-units {
padding-left: 30px; padding-left: 30px;
padding-right: 30px; padding-right: 30px;
background-color: red; background-color: red;
} }
#custom-music-back {
padding: 0 10px 0 15px;
}
#custom-music-next {
padding: 0 10px;
}
''; '';
}; };
} }