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

189 lines
5.3 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",
2020-12-07 02:03:05 +01:00
"sway/window",
2019-12-13 03:25:15 +01:00
],
"modules-center": [
"clock",
2021-05-24 20:48:36 +02:00
"custom/sleep",
2020-12-07 02:03:05 +01:00
"custom/weather",
2019-12-13 03:25:15 +01:00
],
"modules-right": [
"custom/layout",
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",
2021-04-23 18:11:24 +02:00
"custom/transmissionD",
"custom/transmissionS",
"custom/delugeD",
"custom/delugeS",
2019-12-13 03:25:15 +01:00
"custom/updates",
2020-11-16 22:15:05 +01:00
"custom/caffeine",
2019-12-13 03:25:15 +01:00
"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": "",
2021-03-31 02:49:36 +02:00
"8": "",
2019-12-13 03:25:15 +01:00
"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-11-09 05:13:48 +01:00
"on-click": "mpc toggle",
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,
"format":"<b>{:%H:%M %a %d/%m}</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-12-15 18:06:29 +01:00
"on-click": "terminal 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": "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,
2021-05-21 06:27:57 +02:00
"interval": 60
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": "{} ",
2021-05-21 06:27:57 +02:00
"interval": 3600,
"exec": "checkupdates | wc -l | sed 's/^0$//'",
2020-11-19 21:09:21 +01:00
"on-click": "terminal sh -c 'ping -qc1 archlinux.org >/dev/null && pacman -Syu || pacman -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,
2021-02-13 05:40:33 +01:00
"on-click": "pkill -2 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
},
2021-04-23 18:11:24 +02:00
"custom/transmissionD":{
"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
},
2021-04-23 18:11:24 +02:00
"custom/transmissionS":{
"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
2020-11-16 22:15:05 +01:00
},
2021-04-23 18:11:24 +02:00
"custom/delugeD":{
"format":" {} ",
"exec":"deluge-console status | perl -ne 'print $1 if /Downloading: (\\d+)/'| sed 's/^0$//'",
"exec-if":"pidof -x deluged",
"interval":180
},
"custom/delugeS":{
"format":" {} ",
"exec":"deluge-console status | perl -ne 'print $1 if /Seeding: (\\d+)/'| sed 's/^0$//'",
"exec-if":"pidof -x deluged",
"interval":180
},
2020-11-16 22:15:05 +01:00
"custom/caffeine":{
"format":"{} ",
2020-12-15 18:06:29 +01:00
"exec":"pidof caffeinated > /dev/null && echo  || echo 鈴",
"on-click":"pidof caffeinated && pkill caffeinated || caffeinated -d",
"interval": 1,
"tooltip":false
2020-11-16 22:15:05 +01:00
},
"custom/layout":{
"exec":"_sway_get-layout",
"interval": 1,
"tooltip":false
2021-05-24 20:48:36 +02:00
},
"custom/sleep":{
"exec":"test $(date +%H) -lt 5 && echo 'GO TO SLEEP' | trans -b",
"interval": 60,
"tooltip":false
}
2020-11-16 22:15:05 +01:00
2019-10-16 02:28:41 +02:00
}
2021-03-11 05:58:53 +01:00
// vim:ft=jsonc