Fix polybar icons
This commit is contained in:
parent
f2778f65f4
commit
bfe8556c51
1 changed files with 18 additions and 48 deletions
|
|
@ -12,7 +12,7 @@ let
|
|||
zscroll = "${pkgs.zscroll}/bin/zscroll";
|
||||
notificationStatus = pkgs.writeShellScript "notificationStatus" ''
|
||||
PATH=$PATH:"${lib.makeBinPath [ pkgs.dbus ]}"
|
||||
if [[ `${dunstctl} is-paused` == "true" ]]; then echo ; else echo ; fi
|
||||
if [[ `${dunstctl} is-paused` == "true" ]]; then echo ; else echo ; fi
|
||||
'';
|
||||
notificationToggle = pkgs.writeShellScript "notificationToggle" ''
|
||||
PATH=$PATH:"${lib.makeBinPath [ pkgs.dbus ]}"
|
||||
|
|
@ -178,14 +178,8 @@ in
|
|||
full.at = 98;
|
||||
|
||||
animation = {
|
||||
charging = {
|
||||
text = [ "" "" "" "" "" "" "" "" "" "" ];
|
||||
framerate = "750";
|
||||
};
|
||||
discharging = {
|
||||
text = [ "" "" "" "" "" "" "" "" "" "" ];
|
||||
framerate = "750";
|
||||
};
|
||||
charging = { text = [ "" "" "" "" "" ]; framerate = "750"; };
|
||||
discharging = { text = [ "" "" "" "" "" ]; framerate = "750"; };
|
||||
};
|
||||
|
||||
format = {
|
||||
|
|
@ -195,7 +189,7 @@ in
|
|||
discharging = recursiveUpdate colors.active {
|
||||
text = "<animation-discharging> <label-discharging>";
|
||||
};
|
||||
full = recursiveUpdate colors.normal { text = " <label-full>"; };
|
||||
full = recursiveUpdate colors.normal { text = " <label-full>"; };
|
||||
};
|
||||
|
||||
label.text = "%percentage%%";
|
||||
|
|
@ -221,16 +215,14 @@ in
|
|||
{
|
||||
focused = recursiveUpdate common colors.selected;
|
||||
occupied = recursiveUpdate common colors.active;
|
||||
urgent = recursiveUpdate (recursiveUpdate common colors.active) {
|
||||
background = colors.alert;
|
||||
};
|
||||
urgent = recursiveUpdate (recursiveUpdate common colors.active) { background = colors.alert; };
|
||||
empty = recursiveUpdate common colors.normal;
|
||||
};
|
||||
};
|
||||
|
||||
"module/cpu" = {
|
||||
type = "internal/cpu";
|
||||
format = recursiveUpdate colors.normal { text = " <label>"; };
|
||||
format = recursiveUpdate colors.normal { text = " <label>"; };
|
||||
interval = 2;
|
||||
label = "%percentage-sum%%";
|
||||
ramp-load = ramp;
|
||||
|
|
@ -238,22 +230,16 @@ in
|
|||
|
||||
"module/date" = {
|
||||
type = "internal/date";
|
||||
date = {
|
||||
alt = "%Y-%m-%d";
|
||||
text = "%a %d/%m/%y";
|
||||
};
|
||||
format = colors.normal;
|
||||
date = { alt = "%Y-%m-%d"; text = "%a %d/%m/%y"; };
|
||||
interval = "1";
|
||||
label = "%date% %time%";
|
||||
time = {
|
||||
alt = "%H:%M:%S";
|
||||
text = "%H:%M";
|
||||
};
|
||||
format = colors.normal;
|
||||
time = { alt = "%H:%M:%S"; text = "%H:%M"; };
|
||||
};
|
||||
|
||||
"module/memory" = {
|
||||
type = "internal/memory";
|
||||
format = recursiveUpdate colors.normal { text = " <label>"; };
|
||||
format = recursiveUpdate colors.normal { text = " <label>"; };
|
||||
interval = 2;
|
||||
label = "%percentage_used%%";
|
||||
ramp-used = ramp;
|
||||
|
|
@ -286,9 +272,9 @@ in
|
|||
text = "<ramp-volume> <label-volume>";
|
||||
};
|
||||
};
|
||||
label.muted.text = "婢 muted";
|
||||
label.muted.text = " muted";
|
||||
label.volume.text = "%percentage%%";
|
||||
ramp.volume = [ "奄" "奔" "墳" ];
|
||||
ramp.volume = [ "" "" "" ];
|
||||
type = "internal/pulseaudio";
|
||||
};
|
||||
|
||||
|
|
@ -323,36 +309,20 @@ in
|
|||
menu = [
|
||||
[
|
||||
{
|
||||
text = "";
|
||||
exec = confirm_command {
|
||||
cmd = logout;
|
||||
title = "Logout";
|
||||
text = "Do you want to logout?";
|
||||
};
|
||||
text = "";
|
||||
exec = confirm_command { cmd = logout; title = "Logout"; text = "Do you want to logout?"; };
|
||||
}
|
||||
{
|
||||
text = "";
|
||||
exec = confirm_command {
|
||||
cmd = "${systemctl} reboot";
|
||||
title = "Reboot";
|
||||
text = "Do you want to reboot?";
|
||||
};
|
||||
text = "";
|
||||
exec = confirm_command { cmd = "${systemctl} reboot"; title = "Reboot"; text = "Do you want to reboot?"; };
|
||||
}
|
||||
{
|
||||
text = "";
|
||||
exec = confirm_command {
|
||||
cmd = "${systemctl} hibernate";
|
||||
title = "Hibernate";
|
||||
text = "Do you want to hibernate?";
|
||||
};
|
||||
exec = confirm_command { cmd = "${systemctl} hibernate"; title = "Hibernate"; text = "Do you want to hibernate?"; };
|
||||
}
|
||||
{
|
||||
text = "";
|
||||
exec = confirm_command {
|
||||
cmd = "${shutdown} now";
|
||||
title = "Shutdown";
|
||||
text = "Do you want to shutdown?";
|
||||
};
|
||||
exec = confirm_command { cmd = "${shutdown} now"; title = "Shutdown"; text = "Do you want to shutdown?"; };
|
||||
}
|
||||
]
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue