1
0
Fork 0
mirror of https://github.com/eoli3n/dotfiles synced 2024-06-02 04:46:08 +02:00
eoli3n-dotfiles/roles/waybar/files/waybar/config

131 lines
4.7 KiB
Plaintext
Raw Normal View History

[{
2019-12-12 21:41:28 +01:00
"layer": "bottom",
"position": "top",
2019-12-12 22:54:20 +01:00
"modules-left": ["sway/workspaces", "sway/mode", "sway/window"],
"modules-center": [],
2020-05-08 10:24:55 +02:00
"modules-right": ["pulseaudio", "backlight", "network", "custom/vpn", "custom/pkg", "battery", "clock"],
2019-12-12 21:41:28 +01:00
"sway/mode": {
"format": " {}"
},
"sway/workspaces": {
"format": "{name}",
"disable-scroll": true
},
"sway/window": {
"max-length": 80,
"tooltip": false
},
"clock": {
2019-12-28 15:41:58 +01:00
"interval": 1,
2020-05-07 18:36:05 +02:00
"format": "{:%d<span foreground='#929292'>%m</span><span foreground='#606060'>%y</span> %H<span foreground='#929292'>%M</span><span foreground='#606060'>%S</span>}",
2019-12-12 21:41:28 +01:00
"tooltip": false
},
"battery": {
"format-icons": ["", "", "", "", ""],
2019-12-28 15:41:58 +01:00
"format": "<span foreground='#929292'>{icon}</span> {capacity}%",
"format-charging": "<span foreground='#929292'>{icon}</span> {capacity}%",
"format-discharging": "<span foreground='#929292'>{icon}</span> {time}",
"format-full": "<span foreground='#929292'>{icon}</span> {capacity}%",
2019-12-12 21:41:28 +01:00
"interval": 30,
"states": {
"warning": 25,
"critical": 10
},
"tooltip": false
},
2020-05-07 18:23:38 +02:00
"custom/pkg": {
"format": "{}",
"interval": 3600,
2020-05-07 18:26:51 +02:00
"exec": "~/.config/waybar/modules/pkg.sh"
2020-05-07 18:23:38 +02:00
},
2019-12-12 21:41:28 +01:00
"network": {
2019-12-28 15:41:58 +01:00
"format-wifi": "<span foreground='#929292'></span> {essid} <span foreground='#929292'>{signalStrength}%</span>",
2020-01-02 12:28:40 +01:00
"format-ethernet": "<span foreground='#929292'></span> {ifname}",
2020-01-02 20:58:32 +01:00
"format-disconnected": "",
2019-12-28 15:41:58 +01:00
"tooltip": false
2019-12-12 21:41:28 +01:00
},
"pulseaudio": {
2020-01-02 12:54:37 +01:00
"format": "{icon} {volume}%",
"format-muted": "<span foreground='#929292'></span>",
2019-12-12 21:41:28 +01:00
"format-icons": {
2020-01-02 21:03:53 +01:00
"default": ["<span foreground='#929292'></span>"],
"headphones": ["<span foreground='#929292'></span>"]
2019-12-12 21:41:28 +01:00
},
"on-scroll-up": "pamixer -ui 1 && pamixer --get-volume > $SWAYSOCK.wob",
"on-scroll-down": "pamixer -ud 1 && pamixer --get-volume > $SWAYSOCK.wob",
2019-12-12 21:41:28 +01:00
"tooltip": false
},
2020-01-05 19:07:37 +01:00
"custom/vpn": {
2020-01-05 19:13:25 +01:00
"format": "<span foreground='#929292'></span> vpn",
2020-01-05 19:07:37 +01:00
"interval": 5,
2020-05-14 20:12:12 +02:00
"exec" : "echo a",
"exec-if" : "systemctl is-active --quiet vpn"
2020-01-05 19:07:37 +01:00
},
2019-12-12 21:41:28 +01:00
"backlight": {
2020-05-07 18:37:25 +02:00
"format": "<span foreground='#929292'>{icon}</span> {percent}%",
2020-05-07 18:41:24 +02:00
"format-icons": [""],
"on-scroll-up": "light -A 2 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob",
"on-scroll-down": "light -U 2 && light -G | cut -d'.' -f1 > $SWAYSOCK.wob"
}
}, {
"layer": "bottom",
"position": "bottom",
2020-05-08 10:24:55 +02:00
"modules-left": ["tray", "custom/spotify"],
"modules-center": ["network#speed"],
"modules-right": ["custom/backup", "custom/zfs-trim", "custom/zfs-scrub", "temperature", "custom/storage", "cpu", "memory" ],
"custom/spotify": {
2020-05-11 20:49:40 +02:00
"format": "<span foreground='#929292'></span> {}",
"interval": 1,
"exec": "~/.config/waybar/modules/spotify.sh",
2020-05-11 20:49:40 +02:00
"exec-if": "pgrep spotify"
},
"network#speed": {
"format-wifi": "<span foreground='#929292'></span> {bandwidthDownOctets} <span foreground='#929292'></span> {bandwidthUpOctets}",
2020-05-08 16:40:58 +02:00
"format-ethernet": "<span foreground='#929292'></span> {bandwidthDownOctets} <span foreground='#929292'></span> {bandwidthUpOctets}",
"interval": 1
},
"temperature": {
2020-05-07 18:34:01 +02:00
"format": "<span foreground='#929292'></span> {temperatureC}°C",
"thermal-zone": 1,
"critical-threshold": 60,
"format-critical": "<span foreground='#ff5c57'></span> {temperatureC}°C"
},
2020-04-27 12:02:54 +02:00
"custom/storage": {
"format": "<span foreground='#929292'></span> {}%",
"return-type": "json",
"interval": 60,
2020-04-27 12:02:54 +02:00
"exec": "~/.config/waybar/modules/storage.sh /"
},
2020-05-12 15:10:08 +02:00
"custom/zfs-trim": {
"format": "<span foreground='#ff5c57'></span> trimming...",
"interval": 5,
"exec": "echo a",
2020-05-12 15:10:08 +02:00
"exec-if" : "systemctl is-active --quiet zfs-trim"
},
"custom/zfs-scrub": {
"format": "<span foreground='#ff5c57'></span> scrubbing...",
"interval": 5,
"exec": "echo a",
2020-05-12 15:10:08 +02:00
"exec-if" : "systemctl is-active --quiet zfs-scrub"
},
"custom/backup": {
"format": "<span foreground='#ff5c57'></span> backup...",
"interval": 5,
"exec": "echo a",
"exec-if" : "systemctl is-active --quiet backup"
},
"cpu": {
"interval": 3,
"format": "<span foreground='#929292'></span> {usage}%"
},
"memory": {
"interval": 3,
"format": "<span foreground='#929292'></span> {percentage}%"
2019-12-12 21:41:28 +01:00
},
"tray": {
"icon-size": 18
}
}]