Add network disconnection thing, move network to left of bottom bar

This commit is contained in:
Salt 2024-06-07 11:43:05 -05:00
parent 0ebebaad1a
commit c296f4136a
2 changed files with 10 additions and 3 deletions

View File

@ -33,9 +33,9 @@
"layer": "top", "layer": "top",
"position": "bottom", "position": "bottom",
"height": 40, "height": 40,
"modules-left": ["idle_inhibitor", "gamemode", "cpu", "memory", "custom/backup", "battery", "mpris"], "modules-left": ["idle_inhibitor", "gamemode", "cpu", "memory", "custom/backup", "battery", "network"],
"modules-center": [], "modules-center": [],
"modules-right": ["network", "pulseaudio", "backlight", "clock"], "modules-right": ["mpris", "pulseaudio", "backlight", "clock"],
"clock": { "clock": {
"format": "{:%a %b %d %I:%M %p}", "format": "{:%a %b %d %I:%M %p}",
"format-alt": "{:%Y-%m-%d}", "format-alt": "{:%Y-%m-%d}",
@ -43,7 +43,8 @@
}, },
"network": { "network": {
"interval": 1, "interval": 1,
"format": " {bandwidthUpBytes}  {bandwidthDownBytes}" "format": " {bandwidthUpBytes}  {bandwidthDownBytes}",
"format-disconnected": ""
}, },
"battery": { "battery": {
"states": { "states": {

View File

@ -71,10 +71,15 @@ window#waybar {
#mpris.paused, #mpris.stopped { #mpris.paused, #mpris.stopped {
color: #504945; color: #504945;
} }
#network { #network {
padding: 0 1em; padding: 0 1em;
color: #504945; color: #504945;
} }
#network.disconnected {
color: #fb4934;
}
#idle_inhibitor { #idle_inhibitor {
padding: 0 1em; padding: 0 1em;
} }
@ -84,6 +89,7 @@ window#waybar {
#idle_inhibitor.activated { #idle_inhibitor.activated {
color: #fb4934; color: #fb4934;
} }
#backlight { #backlight {
padding: 0 1em; padding: 0 1em;
color: #ebdbb2; color: #ebdbb2;