2019-04-20 04:12:18 +00:00
|
|
|
{
|
2020-06-29 16:29:09 +00:00
|
|
|
"layer": "top",
|
|
|
|
"height": 35,
|
2019-04-20 04:12:18 +00:00
|
|
|
"modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
|
|
|
|
"modules-center": ["sway/window"],
|
2020-09-17 02:08:52 +00:00
|
|
|
"modules-right": ["pulseaudio", "custom/network","backlight", "battery", "clock", "tray", "idle_inhibitor"],
|
2020-06-29 16:29:09 +00:00
|
|
|
"sway/workspaces": {
|
|
|
|
"disable-scroll": true,
|
|
|
|
"all-outputs": true
|
|
|
|
},
|
2019-04-20 04:12:18 +00:00
|
|
|
"sway/mode": {
|
|
|
|
"format": "<span style=\"italic\">{}</span>"
|
|
|
|
},
|
|
|
|
"idle_inhibitor": {
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"activated": "",
|
|
|
|
"deactivated": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tray": {
|
|
|
|
"spacing": 10
|
|
|
|
},
|
|
|
|
"clock": {
|
|
|
|
"tooltip-format": "{:%Y-%m-%d | %H:%M}",
|
|
|
|
"format-alt": "{:%Y-%m-%d}"
|
|
|
|
},
|
|
|
|
"backlight": {
|
2020-08-25 01:09:10 +00:00
|
|
|
"format": "{icon} {percent}% ",
|
2020-08-27 04:55:38 +00:00
|
|
|
"format-icons": ["", "", "", ""]
|
2019-04-20 04:12:18 +00:00
|
|
|
},
|
|
|
|
"battery": {
|
2020-08-25 01:09:10 +00:00
|
|
|
"interval": 1,
|
2019-04-20 04:12:18 +00:00
|
|
|
"states": {
|
|
|
|
"good": 95,
|
|
|
|
"warning": 30,
|
|
|
|
"critical": 15
|
|
|
|
},
|
2020-08-25 01:09:10 +00:00
|
|
|
"format": " {capacity}%",
|
2020-09-17 02:08:52 +00:00
|
|
|
"format-discharging": "{icon} {capacity}%",
|
2019-04-20 04:12:18 +00:00
|
|
|
"format-icons": ["", "", "", "", ""]
|
|
|
|
},
|
|
|
|
"pulseaudio": {
|
2020-08-25 01:09:10 +00:00
|
|
|
"format": "{icon} {volume}%",
|
2019-04-20 04:12:18 +00:00
|
|
|
"format-bluetooth": "{volume}% {icon}",
|
|
|
|
"format-muted": "",
|
|
|
|
"format-icons": {
|
|
|
|
"headphones": "",
|
|
|
|
"handsfree": "",
|
|
|
|
"headset": "",
|
|
|
|
"phone": "",
|
|
|
|
"portable": "",
|
|
|
|
"car": "",
|
|
|
|
"default": ["", ""]
|
|
|
|
},
|
|
|
|
"on-click": "pavucontrol"
|
|
|
|
},
|
|
|
|
"custom/media": {
|
|
|
|
"format": "{icon} {}",
|
|
|
|
"return-type": "json",
|
|
|
|
"max-length": 40,
|
|
|
|
"format-icons": {
|
|
|
|
"spotify": "",
|
|
|
|
"default": "🎜"
|
|
|
|
},
|
2019-05-01 03:27:35 +00:00
|
|
|
"on-click": "playerctl play-pause",
|
2019-04-20 04:12:18 +00:00
|
|
|
"escape": true,
|
2019-05-01 03:27:35 +00:00
|
|
|
"exec": "$HOME/.config/waybar/custom_modules/mediaplayer.py 2> /dev/null"
|
2020-09-17 02:08:52 +00:00
|
|
|
},
|
|
|
|
"custom/network": {
|
|
|
|
"escape" :true,
|
|
|
|
"exec": "$HOME/.config/waybar/custom_modules/wifi.sh 2> /dev/null",
|
|
|
|
"on-click": "rofi-wifi-menu",
|
|
|
|
"restart-interval": 1,
|
|
|
|
"return-type": "json"
|
2019-04-20 04:12:18 +00:00
|
|
|
}
|
|
|
|
}
|