{
"layer": "top",
"position": "top",
"height": 44,
"modules-left": ["sway/workspaces"],
"modules-center": ["clock","custom/padd","custom/weather"],
"modules-right": ["custom/l_end","custom/music","custom/padd","pulseaudio","custom/padd","network", "custom/padd","battery","custom/padd", "tray","custom/power","custom/padd"],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"format": "{name}",
},
"sway/mode": {
"format": "{}"
},
"tray": {
"icon-size": 18,
"spacing": 8
},
"clock": {
"format": " {:%H:%M %D}",
"tooltip-format": "{calendar}"
},
"custom/music": {
"exec": "~/.config/waybar/scripts/music.scm",
"interval": 3,
"tooltip": false
},
"custom/weather": {
"exec": "~/.config/waybar/scripts/weather.py",
"interval": 600,
"tooltip": false
},
"battery": {
"interval": 15,
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"full-at": "99",
"format": "{icon} {capacity}%",
"format-icons": [" ","", "","", ""],
"format-good": " %", // An empty format will hide the module
"format-full": "",
"format-charging": " {capacity}% "
},
"custom/wlsunset": {
"format": "{icon}",
"format-icons": [""],
"on-click": "wlsunset -l 47.6 -L -122.3 -t 3000 -T 3100"
},
"network": {
"interval": 5,
"format-wifi": "",
"format-ethernet": "",
"format-disconnected": " ",
"tooltip-format-wifi": "{essid}:{signalStrength}\nSpeed:{bandwidthDownBits} \n{ipaddr}",
"on-click": "alacritty -e nmtui"
},
"pulseaudio": {
"scroll-step": 1,
"on-scroll-up": "amixer set Master 3%+",
"on-click": "pavucontrol",
"on-scroll-down": "amixer set Master 3%-",
"format": "",
"format": "{icon} {volume}%",
"format-muted": "",
"format-icons": {
"headset": "",
"headphone": "",
"default": ["", "", ""]
},
},
"custom/power": {
"format": "",
//"exec": "echo ; echo logout",
"on-click": "wlogout -p layer-shell",
"interval" : 86400, // once every day
"tooltip": true
},
"custom/l_end": {
"format": " ",
"interval" : "once",
"tooltip": false
},
"custom/r_end": {
"format": " ",
"interval" : "once",
"tooltip": false
},
"custom/sl_end": {
"format": " ",
"interval" : "once",
"tooltip": false
},
"custom/sr_end": {
"format": " ",
"interval" : "once",
"tooltip": false
},
"custom/rl_end": {
"format": " ",
"interval" : "once",
"tooltip": false
},
"custom/rr_end": {
"format": " ",
"interval" : "once",
"tooltip": false
},
"custom/padd": {
"format": " ",
"interval" : "once",
"tooltip": false
}
}