dotfiles/.config/waybar/config

162 lines
3.8 KiB
Plaintext
Raw Normal View History

2020-04-29 13:33:26 +02:00
{
"layer": "top",
2020-04-29 13:33:26 +02:00
"position": "top",
"height": 28,
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": ["sway/window"],
2023-09-05 17:04:58 +02:00
"modules-right": [
"tray",
"custom/himalaya",
"pulseaudio",
"network",
"network#wireguard",
"temperature",
"custom/storage",
"memory",
"cpu",
"backlight",
"sway/language",
"battery",
"clock#date",
"clock#time"
],
2020-04-29 13:33:26 +02:00
"sway/workspaces": {
2023-09-05 17:04:58 +02:00
"all-outputs": false,
"format": "{name}",
"disable-scroll": true,
"disable-markup" : false
2020-04-29 13:33:26 +02:00
},
"sway/mode": {
2023-09-05 17:04:58 +02:00
"format": "<span style=\"italic\">{}</span>",
"tooltip": false
2020-04-29 13:33:26 +02:00
},
"sway/window": {
2023-09-05 17:04:58 +02:00
"max-length": 120,
"tooltip": false
2020-04-29 13:33:26 +02:00
},
"clock#time": {
2023-09-05 17:04:58 +02:00
"interval": 1,
"format": "{:%H:%M:%S %z }",
"tooltip": false
2020-04-29 13:33:26 +02:00
},
"clock#date": {
2023-09-05 17:04:58 +02:00
"interval": 10,
"format": " {:%a %d %b} ",
"tooltip": true,
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
2020-04-29 13:33:26 +02:00
},
2021-12-26 03:19:05 +01:00
"sway/language": {
"format": "{short}",
"tooltip": false
},
"memory": {
"interval": 5,
2022-03-26 02:36:26 +01:00
"format": "{}%",
"states": {
"warning": 70,
"critical": 90
},
2020-05-27 12:14:20 +02:00
"on-click": "exec alacritty -e ytop"
},
"cpu": {
"interval": 5,
"format": "{usage:2}%",
"states": {
"warning": 70,
"critical": 90
}
},
2021-05-29 22:22:05 +02:00
"backlight": {
"interval": 10,
"device": "acpi_video1",
2022-03-26 02:36:26 +01:00
"format": "{percent}%{icon}",
"format-icons": ["☁️", "🌥️", "⛅", "☀️"]
2021-05-29 22:22:05 +02:00
},
2020-04-29 13:33:26 +02:00
"battery": {
2023-09-05 17:04:58 +02:00
"format": "{capacity}% {icon}",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""],
"format-charging": "~{capacity}%",
"format-plugged": "🔌{capacity}%",
"interval": 30,
"states": {
"good": 85,
"warning": 30,
"critical": 15
},
"tooltip": false
2020-04-29 13:33:26 +02:00
},
"network": {
2023-09-05 17:04:58 +02:00
"format": "",
"format-wifi": "{icon}{essid} ({signalStrength}%)",
"format-ethernet": "{icon}<span foreground='#929292'>{ifname}</span>",
"format-alt": "{icon}<span foreground='#929292'>{ifname}:</span>{ipaddr}(/{cidr})",
"format-linked": "<span foreground='#ffbf00'>{ifname}</span> (No IP)",
"format-icons": {
"wifi": [""],
"ethernet": ["🖧"],
"disconnected": ["disconnected"]
},
"on-click-right": "nm-connection-editor",
"tooltip": false
2020-04-29 13:33:26 +02:00
},
2021-12-26 03:37:57 +01:00
"network#wireguard": {
"interface": "*wg*",
"format": "",
"format-wifi": "🐉",
2021-12-26 03:37:57 +01:00
"format-ethernet": "🐉",
"format-linked": "<span foreground='#ffbf00'>{ifname}:</span> (No IP)🐉",
"format-disconnected": "",
"format-alt": "<span foreground='#929292'>{ifname}:</span>{ipaddr}/{cidr}🐉",
2021-12-26 03:37:57 +01:00
"tooltip": false
},
2021-12-26 03:33:04 +01:00
"temperature": {
"format": "<span foreground='#929292'></span>{temperatureC}°C",
"thermal-zone": 2,
"critical-threshold": 53,
"format-critical": "<span foreground='#ff5c57'></span>{temperatureC}°C",
"interval": 10
},
2020-04-29 13:33:26 +02:00
"pulseaudio": {
2023-09-05 17:04:58 +02:00
"format": "{icon}{volume}% {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": "🔇 {icon} {format_source}",
"format-muted": "✖ {format_source}",
"format-source": "🎙{volume}%",
"format-source-muted": "",
"format-icons": {
"speaker": "💻",
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"scroll-step": 1,
"on-click": "pavucontrol",
"on-click-right": "blueman-manager",
"tooltip": false
2020-04-29 13:33:26 +02:00
},
"custom/storage": {
2023-09-05 17:04:58 +02:00
"format": "{percentage}%",
"format-alt": "{}",
"format-alt-click": "click",
"return-type": "json",
"interval": 40,
"exec": "~/.config/waybar/modules/storage.sh"
2020-04-29 13:33:26 +02:00
},
2023-09-05 16:59:24 +02:00
"custom/himalaya": {
"exec": "tail -fn 1 /tmp/himalaya-counter-am | xargs -I {} sh -c 'if [ {} -gt 0 ]; then echo 📫; else echo; fi'",
"format": "{}",
"on-click": "kitty -1 --hold himalaya -a a_mirre",
"tooltip": false
},
2020-04-29 13:33:26 +02:00
"tray": {
2023-09-05 17:04:58 +02:00
"icon-size": 18
2022-03-26 02:37:08 +01:00
},
// vim: ft=json ff=unix noexpandtab
2020-04-29 13:33:26 +02:00
}