This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/dotfiles/waybar/config

156 lines
4.2 KiB
Plaintext
Raw Normal View History

2020-06-21 00:07:53 +02:00
// {{@@ header() @@}}
2019-10-16 02:28:41 +02:00
{
2020-06-20 18:58:49 +02:00
"position":"{{@@ bar_pos @@}}",
"layer":"top",
2019-12-13 03:25:15 +01:00
"modules-left": [
"sway/workspaces",
2020-06-20 18:58:49 +02:00
"sway/mode",
2019-12-13 03:25:15 +01:00
"sway/window"
],
"modules-center": [
"clock",
"custom/weather"
],
"modules-right": [
2020-07-22 19:25:05 +02:00
"custom/mpd",
2019-12-13 03:25:15 +01:00
"custom/recording",
2019-12-13 05:20:24 +01:00
"tray",
2019-12-13 03:25:15 +01:00
"custom/mail",
"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": {
2020-11-03 05:53:13 +01:00
"enable-bar-scroll":true,
2019-12-13 03:25:15 +01:00
"format": "{icon}",
"format-icons": {
"1": "",
"2": "",
"3": "",
"9": "",
"10": "",
"urgent": "",
"focused": "",
"default": ""
}
},
"sway/window":{
"max-length":40
},
2020-07-22 19:25:05 +02:00
"custom/mpd": {
2019-12-09 19:25:42 +01:00
"tooltip":false,
2020-07-22 19:25:05 +02:00
"exec": "mpd-status",
2020-10-06 09:08:16 +02:00
"exec-if": "pidof mpd",
2020-10-25 18:29:02 +01:00
"on-scroll-up": "mpc vol +10",
"on-scroll-down": "mpc vol -10",
2020-07-22 19:25:05 +02:00
"interval": 2
2019-10-16 02:28:41 +02:00
},
"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-06-22 22:27:42 +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-06-22 22:27:42 +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": "",
2020-06-22 01:28:39 +02:00
"format-bluetooth-muted": "",
2020-08-04 17:11:53 +02:00
"format-muted": "ﱝ",
2019-10-16 02:28:41 +02:00
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
2020-08-04 17:11:53 +02:00
"default": ["奄", "奔", "墳"]
2019-10-16 02:28:41 +02:00
},
"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>",
2020-06-22 01:28:39 +02:00
"exec": "jq -r '.temp +\"°C \"+ .weather' ~/.forecast.json",
2020-04-17 06:54:35 +02:00
"interval": 30,
2020-10-10 07:43:28 +02:00
"on-click": "terminal --class weather 'forecast interactive'",
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-10-29 18:45:23 +01:00
"interval": 10
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,
2020-10-06 09:08:16 +02:00
"exec": "pidof 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
},
"custom/torrentD":{
"format":" {} ",
"exec":"transmission-remote -l | tail -n+2 | grep Down | wc -l | sed 's/^0$//'",
2020-10-06 09:08:16 +02:00
"exec-if":"pidof transmission-daemon",
2020-04-22 00:36:45 +02:00
"interval":180
},
"custom/torrentS":{
"format":" {} ",
"exec":"transmission-remote -l | grep Seeding| wc -l | sed 's/^0$//'",
2020-10-06 09:08:16 +02:00
"exec-if":"pidof transmission-daemon",
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
}
2020-06-21 00:07:53 +02:00
// vim:ft=json