ironbar: more customization

This commit is contained in:
notohh 2023-06-06 19:52:34 -04:00
parent 6e29c56559
commit c63eb30657
Signed by: notohh
GPG key ID: BD47506D475EE86D
2 changed files with 17 additions and 6 deletions

View file

@ -37,10 +37,6 @@ in {
}
];
};
uptime = {
type = "sys_info";
format = ["{uptime}"];
};
music = {
type = "music";
player_type = "mpris";
@ -61,7 +57,7 @@ in {
{
type = "image";
class = name + "-img";
src = ''{{poll:5000:playerctl metadata mpris:artUrl}}'';
src = ''{{poll:2000:playerctl metadata mpris:artUrl}}'';
}
];
};
@ -78,6 +74,12 @@ in {
max_length = 24;
};
};
uptime = rec {
type = "sys_info";
name = "uptime";
class = name;
format = [" {uptime}"];
};
sys-info = {
type = "sys_info";
format = [
@ -94,7 +96,7 @@ in {
position = "top";
anchor_to_edges = true;
start = [nixlogo];
center = [music_img music spacer focused];
center = [music spacer focused spacer uptime];
end = [sys-info clock];
};
};

View file

@ -112,6 +112,11 @@ $crust: #11111b;
.title {
padding-top: 0.8rem;
}
.volume * {
border-radius: 0;
background-color: transparent;
color: $base;
}
.controls {
.btn-prev {
padding: 0.3rem;
@ -136,4 +141,8 @@ $crust: #11111b;
.focused {
padding-left: 0.8rem;
padding-right: 0.8rem;
}
.uptime {
padding-left: 0.8rem;
}