Update waybar with traffic monitoring

This commit is contained in:
Salt 2024-02-17 00:21:52 -06:00
parent 9ae5d2ca36
commit 350249a6f6
2 changed files with 8 additions and 1 deletions

View File

@ -3,7 +3,7 @@
"height": 40, "height": 40,
"modules-left": ["sway/workspaces", "sway/mode"], "modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": ["clock"], "modules-center": ["clock"],
"modules-right": ["pulseaudio", "backlight", "battery", "tray", "mpris", "idle_inhibitor"], "modules-right": ["network", "pulseaudio", "backlight", "battery", "tray", "mpris", "idle_inhibitor"],
"sway/workspaces": { "sway/workspaces": {
"disable-scroll": true, "disable-scroll": true,
"persistent_workspaces": { "persistent_workspaces": {
@ -65,6 +65,10 @@
"stopped": "⏹" "stopped": "⏹"
} }
}, },
"network": {
"interval": 1,
"format": "{bandwidthUpBytes} {bandwidthDownBytes}"
},
"pulseaudio": { "pulseaudio": {
"scroll-step": 0, "scroll-step": 0,
"format": "{icon} {volume}%", "format": "{icon} {volume}%",

View File

@ -61,6 +61,9 @@ window#waybar {
background: #32302f; background: #32302f;
color: #282828; color: #282828;
} }
#network {
color: #ebdbb2;
}
#idle_inhibitor { #idle_inhibitor {
color: #282828; color: #282828;
padding: 0 1em; padding: 0 1em;