polybar tweaks

This commit is contained in:
Greg Leyda 2022-07-13 21:51:29 -04:00 committed by ISnortPennies
parent 0bd02073ac
commit 30fd0d4132

View file

@ -78,7 +78,7 @@
"bar/right" = { "bar/right" = {
width = "180px"; width = "180px";
offset.x = 1720; offset.x = 1720;
modules.center = "tray pulseaudio network battery powermenu"; modules.center = "tray pulseaudio network-wireless network-wired battery powermenu";
height = "20pt"; height = "20pt";
radius = 6; radius = 6;
fixed.center = false; fixed.center = false;
@ -205,7 +205,7 @@
background = "\${colors.background}"; background = "\${colors.background}";
}; };
}; };
"module/network" = { "module/network-wireless" = {
type = "internal/network"; type = "internal/network";
interface.type = "wireless"; interface.type = "wireless";
interval = "3.0"; interval = "3.0";
@ -217,10 +217,8 @@
disconnected = "\"%{A1:networkmanager_dmenu:}<label-disconnected>%{A}\""; disconnected = "\"%{A1:networkmanager_dmenu:}<label-disconnected>%{A}\"";
}; };
label.disconnected = { label.disconnected = {
text = "󰤭"; text = "";
foreground = "\${colors.alert}"; padding = 0;
background = "\${colors.background}";
padding = 1;
}; };
ramp.signal = { ramp.signal = {
text = ["󰤯" "󰤟" "󰤢" "󰤥" "󰤨"]; text = ["󰤯" "󰤟" "󰤢" "󰤥" "󰤨"];
@ -229,6 +227,27 @@
padding = 1; padding = 1;
}; };
}; };
"module/network-wired" = {
type = "internal/network";
interface.type = "wired";
interval = "3.0";
udspeed.minwidth = 5;
accumulate.stats = true;
unknown.as.up = true;
format = {
connected = "\"%{A1:networkmanager_dmenu:}<label-connected>%{A}\"";
disconnected = "\"%{A1:networkmanager_dmenu:}<label-disconnected>%{A}\"";
};
label.connected = {
text = "";
foreground = "\${colors.foreground}";
background = "\${colors.background}";
padding = 1;
};
label.disconnected = {
text = "";
};
};
"module/powermenu" = { "module/powermenu" = {
type = "custom/text"; type = "custom/text";
content = { content = {
@ -243,8 +262,8 @@
type = "internal/battery"; type = "internal/battery";
full.at = 100; full.at = 100;
low.at = 20; low.at = 20;
battery = "BAT0"; # battery = "BAT0";
adapter = "ACAD"; # adapter = "ACAD";
poll.interval = 5; poll.interval = 5;
format = { format = {
charging = "\"%{A1:xfce4-power-menu -c:}<animation-charging>%{A}\""; charging = "\"%{A1:xfce4-power-menu -c:}<animation-charging>%{A}\"";