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