2021-03-25 02:33:49 -04:00
|
|
|
{
|
|
|
|
"layer": "bottom",
|
|
|
|
"position": "top",
|
|
|
|
"height": 20,
|
|
|
|
|
|
|
|
"modules-left": ["sway/workspaces", "sway/mode"],
|
|
|
|
"modules-center": ["sway/window"],
|
|
|
|
//"modules-right": ["tray", "custom/spotify", "custom/weather", "custom/mail", "custom/storage", "backlight", "pulseaudio", "network", "idle_inhibitor", "battery", "clock"],
|
2021-12-04 21:09:13 -05:00
|
|
|
"modules-right": ["pulseaudio", "backlight", "idle_inhibitor", "network", "battery", "clock", "tray"],
|
2021-03-25 02:33:49 -04:00
|
|
|
"sway/mode": {
|
|
|
|
"format": " {}"
|
|
|
|
},
|
|
|
|
"sway/workspaces": {
|
|
|
|
"format": "{name}",
|
|
|
|
"disable-scroll": true
|
|
|
|
},
|
|
|
|
"sway/window": {
|
|
|
|
"max-length": 80,
|
|
|
|
"tooltip": false
|
|
|
|
},
|
|
|
|
"clock": {
|
2021-07-23 16:19:27 -04:00
|
|
|
"format": "{:%a %d %b %H:%M:%S}",
|
|
|
|
"interval": 1,
|
2021-03-25 02:33:49 -04:00
|
|
|
"tooltip": false
|
|
|
|
},
|
|
|
|
"battery": {
|
2021-12-04 21:09:13 -05:00
|
|
|
"format": "{icon} {capacity}%",
|
|
|
|
//"format-alt": "{icon} {timeTo}",
|
|
|
|
|
2021-03-25 02:33:49 -04:00
|
|
|
"format-icons": ["", "", "", "", ""],
|
2021-12-04 21:09:13 -05:00
|
|
|
//"format-icons": ["", "", "", "", "", "", "", "", "", "", ""],
|
|
|
|
|
|
|
|
"format-charging": " {capacity}%",
|
|
|
|
"format-full": " {capacity}%",
|
|
|
|
|
2021-12-04 19:02:22 -05:00
|
|
|
"interval": 10,
|
2021-12-04 21:09:13 -05:00
|
|
|
|
2021-03-25 02:33:49 -04:00
|
|
|
"states": {
|
|
|
|
"warning": 25,
|
|
|
|
"critical": 10
|
|
|
|
},
|
2021-12-04 21:09:13 -05:00
|
|
|
|
|
|
|
//"format-discharging-critical": " {capacity}%",
|
|
|
|
|
2021-12-04 19:02:22 -05:00
|
|
|
"tooltip": true,
|
2021-12-04 21:09:13 -05:00
|
|
|
"tooltip-format": "Capacity: {capacity}%\n{timeTo}",
|
2021-03-25 02:33:49 -04:00
|
|
|
},
|
|
|
|
"network": {
|
|
|
|
"format": "{icon}",
|
2021-12-04 21:09:13 -05:00
|
|
|
|
|
|
|
"format-alt": "{icon} {signalStrength}%",
|
2021-03-25 02:33:49 -04:00
|
|
|
"format-alt-click": "click-right",
|
2021-12-04 21:09:13 -05:00
|
|
|
|
2021-03-25 02:33:49 -04:00
|
|
|
"format-icons": {
|
2021-12-04 21:09:13 -05:00
|
|
|
"wifi": [""],
|
|
|
|
"ethernet": [""],
|
2021-12-04 21:13:51 -05:00
|
|
|
"disconnected": [""]
|
2021-03-25 02:33:49 -04:00
|
|
|
},
|
2021-12-04 21:09:13 -05:00
|
|
|
|
|
|
|
"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}",
|
2021-12-04 21:13:51 -05:00
|
|
|
"tooltip-format-disconnected": "Disconnected",
|
2021-03-25 02:33:49 -04:00
|
|
|
},
|
|
|
|
"pulseaudio": {
|
2021-11-16 11:22:17 -05:00
|
|
|
"format": "{icon} {volume}%",
|
2021-07-23 16:19:27 -04:00
|
|
|
"format-alt": "{icon}",
|
2021-03-25 02:33:49 -04:00
|
|
|
"format-alt-click": "click-right",
|
2021-11-16 11:22:17 -05:00
|
|
|
"format-muted": "ﱝ",
|
2021-03-25 02:33:49 -04:00
|
|
|
"format-icons": {
|
2021-12-04 21:09:13 -05:00
|
|
|
//"phone": [" ", " ", " ", " "],
|
2021-11-16 11:22:17 -05:00
|
|
|
"default": ["奄", "奔", "墳"]
|
2021-03-25 02:33:49 -04:00
|
|
|
},
|
2021-12-04 21:09:13 -05:00
|
|
|
"scroll-step": 5,
|
2021-11-16 11:22:17 -05:00
|
|
|
"on-click": "pavucontrol-qt",
|
2021-03-25 02:33:49 -04:00
|
|
|
"tooltip": false
|
|
|
|
},
|
|
|
|
"custom/spotify": {
|
|
|
|
"interval": 1,
|
|
|
|
"return-type": "json",
|
|
|
|
"exec": "~/.config/waybar/modules/spotify.sh",
|
|
|
|
"exec-if": "pgrep spotify",
|
|
|
|
"escape": true
|
|
|
|
},
|
|
|
|
"custom/storage": {
|
|
|
|
"format": "{} ",
|
|
|
|
"format-alt": "{percentage}% ",
|
|
|
|
"format-alt-click": "click-right",
|
|
|
|
"return-type": "json",
|
|
|
|
"interval": 60,
|
|
|
|
"exec": "~/.config/waybar/modules/storage.sh"
|
|
|
|
},
|
|
|
|
"backlight": {
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-alt": "{percent}% {icon}",
|
|
|
|
"format-alt-click": "click-right",
|
2021-12-04 21:09:13 -05:00
|
|
|
"format-icons": ["", "", ""],
|
2021-11-16 11:22:17 -05:00
|
|
|
"on-scroll-down": "light -U 1",
|
|
|
|
"on-scroll-up": "light -A 1"
|
2021-03-25 02:33:49 -04:00
|
|
|
},
|
|
|
|
"custom/weather": {
|
|
|
|
"format": "{}",
|
|
|
|
"format-alt": "{alt}: {}",
|
|
|
|
"format-alt-click": "click-right",
|
|
|
|
"interval": 1800,
|
|
|
|
"return-type": "json",
|
|
|
|
"exec": "~/.config/waybar/modules/weather.sh",
|
|
|
|
"exec-if": "ping wttr.in -c1"
|
|
|
|
},
|
|
|
|
"idle_inhibitor": {
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
2021-07-23 16:19:27 -04:00
|
|
|
//"activated": "鬒",
|
|
|
|
"activated": "",
|
|
|
|
//"deactivated": ""
|
|
|
|
"deactivated": ""
|
2021-03-25 02:33:49 -04:00
|
|
|
},
|
|
|
|
"tooltip": false
|
|
|
|
},
|
|
|
|
"custom/mail": {
|
|
|
|
"format": "",
|
|
|
|
"format-alt": "{alt} ",
|
|
|
|
"format-alt-click": "click-right",
|
|
|
|
"interval": 60,
|
|
|
|
"return-type": "json",
|
|
|
|
"exec": "~/.config/waybar/modules/mail.py",
|
|
|
|
"tooltip": false
|
|
|
|
},
|
|
|
|
"custom/test": {
|
|
|
|
"format": "{}",
|
|
|
|
"exec": "/tmp/test blub",
|
|
|
|
"param": "blah",
|
|
|
|
"interval": 5
|
|
|
|
},
|
|
|
|
"tray": {
|
|
|
|
"icon-size": 16
|
|
|
|
}
|
|
|
|
}
|