2019-10-16 02:28:41 +02:00
|
|
|
{
|
2020-04-23 23:58:49 +02:00
|
|
|
"layer":"top",
|
2019-12-13 03:25:15 +01:00
|
|
|
"modules-left": [
|
|
|
|
"sway/workspaces",
|
|
|
|
"sway/window"
|
|
|
|
],
|
|
|
|
"modules-center": [
|
|
|
|
"clock",
|
|
|
|
"custom/weather"
|
|
|
|
],
|
|
|
|
"modules-right": [
|
|
|
|
"mpd",
|
|
|
|
"custom/recording",
|
2019-12-23 01:36:47 +01:00
|
|
|
"custom/spigot",
|
2019-12-13 05:20:24 +01:00
|
|
|
"tray",
|
2019-12-13 03:25:15 +01:00
|
|
|
"custom/mail",
|
2020-04-23 23:58:49 +02:00
|
|
|
"custom/torrentD",
|
|
|
|
"custom/torrentS",
|
2019-12-13 03:25:15 +01:00
|
|
|
"custom/updates",
|
|
|
|
"pulseaudio",
|
|
|
|
"network",
|
2019-12-13 05:20:24 +01:00
|
|
|
"battery"
|
2019-12-13 03:25:15 +01:00
|
|
|
],
|
|
|
|
"sway/workspaces": {
|
|
|
|
"enable-bar-scroll":true,
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"1": "",
|
|
|
|
"2": "",
|
|
|
|
"3": "",
|
|
|
|
"9": "",
|
|
|
|
"10": "",
|
|
|
|
"urgent": "",
|
|
|
|
"focused": "",
|
|
|
|
"default": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sway/window":{
|
|
|
|
"max-length":40
|
|
|
|
},
|
2019-10-16 02:28:41 +02:00
|
|
|
"mpd": {
|
2019-12-09 19:25:42 +01:00
|
|
|
"tooltip":false,
|
2020-04-17 06:54:35 +02:00
|
|
|
"format": " {stateIcon} {title} - {artist}",
|
|
|
|
"format-disconnected": " Disconnected",
|
|
|
|
"format-stopped": "",
|
2019-12-13 03:25:15 +01:00
|
|
|
"timeout":60,
|
2019-10-16 02:28:41 +02:00
|
|
|
"unknown-tag": " N/A ",
|
|
|
|
"interval": 2,
|
2019-12-14 23:54:01 +01:00
|
|
|
"max-length":40,
|
2019-10-16 02:28:41 +02:00
|
|
|
"state-icons": {
|
|
|
|
"paused": "",
|
|
|
|
"playing": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tray": {
|
2019-12-14 23:54:01 +01:00
|
|
|
"spacing": 7,
|
|
|
|
"icon-size":19
|
2019-10-16 02:28:41 +02:00
|
|
|
},
|
|
|
|
"clock": {
|
2019-12-13 03:25:15 +01:00
|
|
|
"interval":60,
|
2020-01-10 04:16:50 +01:00
|
|
|
"format":"<b>{:%H:%M %a %d}</b>",
|
2019-12-13 03:25:15 +01:00
|
|
|
"tooltip":false
|
2019-10-16 02:28:41 +02:00
|
|
|
},
|
|
|
|
"battery": {
|
2020-06-16 21:58:16 +02:00
|
|
|
"tooltip":true,
|
2019-10-16 02:28:41 +02:00
|
|
|
"states": {
|
2019-12-01 17:36:00 +01:00
|
|
|
"full":100,
|
2019-11-23 02:23:15 +01:00
|
|
|
"good": 95,
|
2020-05-03 02:26:47 +02:00
|
|
|
"warning": 25
|
2019-10-16 02:28:41 +02:00
|
|
|
},
|
2020-04-17 06:54:35 +02:00
|
|
|
"format": "{icon}",
|
2020-06-16 21:58:16 +02:00
|
|
|
"format-charging": "",
|
2020-04-17 06:54:35 +02:00
|
|
|
"format-plugged": "",
|
2019-10-16 02:28:41 +02:00
|
|
|
"format-full": "",
|
2020-05-03 02:26:47 +02:00
|
|
|
"format-warning":"{icon} {time}",
|
2020-04-20 04:27:35 +02:00
|
|
|
"format-icons": ["", "", "", "", "", ""]
|
2019-10-16 02:28:41 +02:00
|
|
|
},
|
|
|
|
"network": {
|
|
|
|
"tooltip":false,
|
2020-06-16 21:58:16 +02:00
|
|
|
"on-click": "terminal nmtui",
|
2020-04-17 06:54:35 +02:00
|
|
|
"format-wifi": "{icon}",
|
2020-04-20 04:27:35 +02:00
|
|
|
"format-icons":[ "", "", "", "", "" ],
|
2020-06-16 21:58:16 +02:00
|
|
|
"format-ethernet": "",
|
|
|
|
"format-linked": "",
|
|
|
|
"format-disconnected": ""
|
2019-10-16 02:28:41 +02:00
|
|
|
},
|
|
|
|
"pulseaudio": {
|
2019-12-09 19:25:42 +01:00
|
|
|
"tooltip":false,
|
2019-10-16 02:28:41 +02:00
|
|
|
"scroll-step": 10,
|
2019-12-09 19:25:42 +01:00
|
|
|
"format": "{icon}",
|
|
|
|
"format-bluetooth": "",
|
|
|
|
"format-bluetooth-muted": "",
|
|
|
|
"format-muted": "",
|
2019-10-16 02:28:41 +02:00
|
|
|
"format-icons": {
|
|
|
|
"headphones": "",
|
|
|
|
"handsfree": "",
|
|
|
|
"headset": "",
|
|
|
|
"phone": "",
|
|
|
|
"portable": "",
|
|
|
|
"car": "",
|
|
|
|
"default": ["", "", ""]
|
|
|
|
},
|
|
|
|
"on-click": "pavucontrol"
|
|
|
|
},
|
|
|
|
"custom/weather": {
|
2019-12-09 19:25:42 +01:00
|
|
|
"tooltip":false,
|
2020-04-17 06:54:35 +02:00
|
|
|
"format": "<b>{}</b>",
|
|
|
|
"exec": "jq -r '.temp +\"°C \"+ .weather' .forecast.json",
|
|
|
|
"interval": 30,
|
2020-04-22 19:34:34 +02:00
|
|
|
"on-click": "terminal --class weather sh -c 'forecast full;read -n1 -p\"Press Any key to quit \"'",
|
2019-12-09 19:25:42 +01:00
|
|
|
"on-click-right": "xdg-open https://openweathermap.org"
|
2019-11-23 02:23:15 +01:00
|
|
|
},
|
|
|
|
"custom/mail": {
|
|
|
|
"tooltip":false,
|
2020-04-17 06:54:35 +02:00
|
|
|
"format":"{} <b></b>",
|
2019-12-13 03:25:15 +01:00
|
|
|
"exec-if":"sleep 30s",
|
|
|
|
"exec": "checkmail",
|
2020-04-22 19:34:34 +02:00
|
|
|
"on-click": "terminal neomutt; pkill -SIGRTMIN+4 waybar",
|
2019-12-03 04:38:10 +01:00
|
|
|
"signal": 4,
|
2020-04-17 06:54:35 +02:00
|
|
|
"interval": 30
|
2019-12-02 19:57:45 +01:00
|
|
|
},
|
|
|
|
"custom/updates": {
|
2019-12-09 19:25:42 +01:00
|
|
|
"tooltip":false,
|
2019-12-02 19:57:45 +01:00
|
|
|
"format": "{} ",
|
2020-04-19 21:17:46 +02:00
|
|
|
"interval": 60,
|
2019-12-13 03:25:15 +01:00
|
|
|
"exec-if":"sleep 60s",
|
2020-04-19 21:17:46 +02:00
|
|
|
"exec": "yay -Qqu | wc -l | sed 's/^0$//'",
|
2020-04-22 19:34:34 +02:00
|
|
|
"on-click": "terminal sh -c 'ping -qc1 archlinux.org >/dev/null && yay -Syu || yay -Su; pkill -SIGRTMIN+8 waybar; read'",
|
2019-12-02 19:57:45 +01:00
|
|
|
"signal": 8
|
2019-12-05 15:28:02 +01:00
|
|
|
},
|
|
|
|
"custom/recording": {
|
2019-12-09 19:25:42 +01:00
|
|
|
"tooltip":false,
|
2019-12-05 20:48:20 +01:00
|
|
|
"exec": "pgrep wf-recorder > /dev/null && echo || echo",
|
2019-12-14 23:54:01 +01:00
|
|
|
"interval": 5,
|
2019-12-09 19:25:42 +01:00
|
|
|
"on-click": "pkill wf-recorder; pkill -SIGRTMIN+5 waybar",
|
2019-12-05 20:48:20 +01:00
|
|
|
"signal": 5
|
2019-12-23 01:36:47 +01:00
|
|
|
},
|
|
|
|
"custom/spigot":{
|
|
|
|
"format":"{}",
|
|
|
|
"exec":"pgrep -f spigot.jar>/dev/null && spigot command list | awk '/There are/ {if ($6) print $6}'",
|
|
|
|
"interval":30,
|
2020-04-22 19:34:34 +02:00
|
|
|
"on-click":"terminal spigot console"
|
2020-04-22 00:36:45 +02:00
|
|
|
},
|
2020-04-23 23:58:49 +02:00
|
|
|
"custom/torrentD":{
|
|
|
|
"format":" {} ",
|
|
|
|
"exec":"transmission-remote -l | tail -n+2 | grep Down | wc -l | sed 's/^0$//'",
|
2020-04-22 00:36:45 +02:00
|
|
|
"interval":180
|
|
|
|
},
|
2020-04-23 23:58:49 +02:00
|
|
|
"custom/torrentS":{
|
|
|
|
"format":" {} ",
|
|
|
|
"exec":"transmission-remote -l | grep Seeding| wc -l | sed 's/^0$//'",
|
2020-04-22 00:36:45 +02:00
|
|
|
"interval":180
|
2019-10-16 02:28:41 +02:00
|
|
|
}
|
|
|
|
|
2020-04-22 00:36:45 +02:00
|
|
|
|
2019-10-16 02:28:41 +02:00
|
|
|
}
|
2019-11-23 02:23:15 +01:00
|
|
|
# vim:ft=json
|