mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 11:45:06 +01:00
make bar cooler
This commit is contained in:
parent
571f0fb488
commit
dd025f248a
2 changed files with 36 additions and 2 deletions
|
|
@ -6,7 +6,13 @@
|
|||
builtins.toJSON {
|
||||
height = 35;
|
||||
spacing = 4;
|
||||
modules-left = [ "systemd-failed-units" ];
|
||||
|
||||
modules-left = [
|
||||
"systemd-failed-units"
|
||||
"custom/music-back"
|
||||
"mpris"
|
||||
"custom/music-next"
|
||||
];
|
||||
modules-center = [
|
||||
"clock"
|
||||
];
|
||||
|
|
@ -26,6 +32,25 @@
|
|||
system = true; # Monitor failed systemwide 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 = {
|
||||
interval = 1;
|
||||
format = "{:%a %F %H:%M:%S}";
|
||||
|
|
@ -127,15 +152,22 @@
|
|||
#custom-power {
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
font-size: 30px;
|
||||
background-color: rebeccapurple;
|
||||
}
|
||||
|
||||
|
||||
#systemd-failed-units {
|
||||
padding-left: 30px;
|
||||
padding-right: 30px;
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
#custom-music-back {
|
||||
padding: 0 10px 0 15px;
|
||||
}
|
||||
#custom-music-next {
|
||||
padding: 0 10px;
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue