fix(waybar): Fix bar settings and apps list
This commit is contained in:
1 parent
bbcf7c1f44
commit
5b031f8a54
1 file changed
+13
-20
@@ -32,9 +32,8 @@
|
|||||||
|
|
||||||
pinnedApps = [
|
pinnedApps = [
|
||||||
{ id = "browser"; icon = ""; command = "vivaldi"; }
|
{ id = "browser"; icon = ""; command = "vivaldi"; }
|
||||||
{ id = "terminal"; icon = ""; command = "ghostty"; }
|
{ id = "telegram"; icon = ""; command = "AyuGram"; }
|
||||||
{ id = "telegram"; icon = ""; command = "ayugram-desktop"; }
|
{ id = "notes"; icon = ""; command = "clash-verge"; }
|
||||||
{ id = "notes"; icon = ""; command = "obsidian"; }
|
|
||||||
];
|
];
|
||||||
|
|
||||||
pinnedModules = lib.listToAttrs (map (a: lib.nameValuePair "custom/pin-${a.id}" {
|
pinnedModules = lib.listToAttrs (map (a: lib.nameValuePair "custom/pin-${a.id}" {
|
||||||
@@ -69,23 +68,19 @@
|
|||||||
spacing = 0;
|
spacing = 0;
|
||||||
modules-left = [ "custom/network-speed" ];
|
modules-left = [ "custom/network-speed" ];
|
||||||
modules-center = map (a: "custom/pin-${a.id}") pinnedApps;
|
modules-center = map (a: "custom/pin-${a.id}") pinnedApps;
|
||||||
modules-right = [ "custom/restart" "custom/power" ];
|
modules-right = [ "disk" ];
|
||||||
"custom/power" = {
|
|
||||||
format = "";
|
|
||||||
on-click = "systemctl poweroff";
|
|
||||||
tooltip = false;
|
|
||||||
};
|
|
||||||
"custom/restart" = {
|
|
||||||
format = "";
|
|
||||||
on-click = "systemctl reboot";
|
|
||||||
tooltip = false;
|
|
||||||
};
|
|
||||||
"custom/network-speed" = {
|
"custom/network-speed" = {
|
||||||
exec = "${lib.getExe networkSpeed}";
|
exec = "${lib.getExe networkSpeed}";
|
||||||
interval = 2;
|
interval = 2;
|
||||||
rotate = 90;
|
rotate = 90;
|
||||||
tooltip = false;
|
tooltip = false;
|
||||||
};
|
};
|
||||||
|
disk = {
|
||||||
|
interval = 30;
|
||||||
|
rotate = 90;
|
||||||
|
format = "{used}/{free}";
|
||||||
|
paths = [ "/" ];
|
||||||
|
};
|
||||||
} // pinnedModules));
|
} // pinnedModules));
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -106,9 +101,8 @@
|
|||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-power,
|
#custom-network-speed,
|
||||||
#custom-restart,
|
#disk {
|
||||||
#custom-network-speed {
|
|
||||||
background: ${c.base00};
|
background: ${c.base00};
|
||||||
color: ${c.base05};
|
color: ${c.base05};
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
@@ -116,9 +110,8 @@
|
|||||||
margin: 4px;
|
margin: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-power:hover,
|
#custom-network-speed:hover,
|
||||||
#custom-restart:hover,
|
#disk:hover {
|
||||||
#custom-network-speed:hover {
|
|
||||||
background: ${c.base0B};
|
background: ${c.base0B};
|
||||||
color: ${c.base00};
|
color: ${c.base00};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user