Cleaned up waybar config, added network indicator

This commit is contained in:
Logan G 2021-12-04 19:09:13 -07:00
parent 8798d7f507
commit 0694585fc7
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -6,7 +6,7 @@
"modules-left": ["sway/workspaces", "sway/mode"], "modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": ["sway/window"], "modules-center": ["sway/window"],
//"modules-right": ["tray", "custom/spotify", "custom/weather", "custom/mail", "custom/storage", "backlight", "pulseaudio", "network", "idle_inhibitor", "battery", "clock"], //"modules-right": ["tray", "custom/spotify", "custom/weather", "custom/mail", "custom/storage", "backlight", "pulseaudio", "network", "idle_inhibitor", "battery", "clock"],
"modules-right": ["pulseaudio", "backlight", "idle_inhibitor", "battery", "clock", "tray"], "modules-right": ["pulseaudio", "backlight", "idle_inhibitor", "network", "battery", "clock", "tray"],
"sway/mode": { "sway/mode": {
"format": " {}" "format": " {}"
}, },
@ -24,30 +24,46 @@
"tooltip": false "tooltip": false
}, },
"battery": { "battery": {
"format": "{icon} {capacity}%", "format": "{icon} {capacity}%",
"format-alt": "{icon} {timeTo}", //"format-alt": "{icon} {timeTo}",
"format-icons": ["", "", "", "", ""], "format-icons": ["", "", "", "", ""],
"format-charging": " {capacity}%", //"format-icons": ["", "", "", "", "", "", "", "", "", "", ""],
"format-charging-alt": " {timeTo}%",
"format-charging": " {capacity}%",
"format-full": " {capacity}%",
"interval": 10, "interval": 10,
"states": { "states": {
"warning": 25, "warning": 25,
"critical": 10 "critical": 10
}, },
//"format-discharging-critical": " {capacity}%",
"tooltip": true, "tooltip": true,
"tooltip-format": "{capacity} {timeTo}" "tooltip-format": "Capacity: {capacity}%\n{timeTo}",
}, },
"network": { "network": {
"format": "{icon}", "format": "{icon}",
"format-alt": "{ipaddr}/{cidr} {icon}",
"format-alt": "{icon} {signalStrength}%",
"format-alt-click": "click-right", "format-alt-click": "click-right",
"format-icons": { "format-icons": {
"wifi": ["", "" ,""], "wifi": [""],
"ethernet": [""], "ethernet": [""],
"disconnected": [""] "disconnected": [""]
}, },
"on-click": "termite -e nmtui",
"tooltip": false "interval": 10,
"on-click": "alacritty -e nmtui",
"tooltip": true,
"tooltip-format": "Connected via {ifname}\nIP: {ipaddr}/{cidr}\nBandwidth: {bandwidthDownBits} | {bandwidthUpBits}",
"tooltip-format-wifi": "Connected to {essid} on {ifname}\nSignal Strength: {signalStrength}% ({signaldBm}dBm)\nIP: {ipaddr}/{cidr}\nBandwidth: {bandwidthDownBits} | {bandwidthUpBits}",
}, },
"pulseaudio": { "pulseaudio": {
"format": "{icon} {volume}%", "format": "{icon} {volume}%",
@ -55,10 +71,10 @@
"format-alt-click": "click-right", "format-alt-click": "click-right",
"format-muted": "ﱝ", "format-muted": "ﱝ",
"format-icons": { "format-icons": {
"phone": [" ", " ", " ", " "], //"phone": [" ", " ", " ", " "],
"default": ["奄", "奔", "墳"] "default": ["奄", "奔", "墳"]
}, },
"scroll-step": 10, "scroll-step": 5,
"on-click": "pavucontrol-qt", "on-click": "pavucontrol-qt",
"tooltip": false "tooltip": false
}, },
@ -81,7 +97,7 @@
"format": "{icon}", "format": "{icon}",
"format-alt": "{percent}% {icon}", "format-alt": "{percent}% {icon}",
"format-alt-click": "click-right", "format-alt-click": "click-right",
"format-icons": ["", ""], "format-icons": ["", "", ""],
"on-scroll-down": "light -U 1", "on-scroll-down": "light -U 1",
"on-scroll-up": "light -A 1" "on-scroll-up": "light -A 1"
}, },