dotfiles/.config/waybar/config

152 lines
3.7 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-02-21 20:16:32 +01:00
"modules-right": ["tray", "pulseaudio", "network", "network#wireguard", "temperature", "custom/storage", "memory", "cpu", "backlight", "keyboard-state", "sway/language", "battery", "clock#date", "clock#time"],
2020-04-29 13:33:26 +02:00
"sway/workspaces": {
"all-outputs": false,
2020-04-29 13:33:26 +02:00
"format": "{name}",
"disable-scroll": true,
"disable-markup" : false
2020-04-29 13:33:26 +02:00
},
2023-02-21 20:16:32 +01:00
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
2020-04-29 13:33:26 +02:00
"sway/mode": {
"format": "<span style=\"italic\">{}</span>", // Icon: expand-arrows-alt
"tooltip": false
},
"sway/window": {
"max-length": 120,
2020-04-29 13:33:26 +02:00
"tooltip": false
},
"clock#time": {
"interval": 1,
2021-12-26 01:57:45 +01:00
"format": "{:%H:%M:%S %z}",
2020-04-29 13:33:26 +02:00
"tooltip": false
},
"clock#date": {
"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
},
2023-02-21 20:46:11 +01:00
"on-click": "exec alacritty -e btop"
},
"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-02-21 20:48:39 +01: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": true
2020-04-29 13:33:26 +02:00
},
"network": {
2023-02-21 20:49:27 +01:00
"format-wifi": "{icon}{essid}({signalStrength}%)",
"format-ethernet": "{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": "nm-connection-editor",
"on-click-right": "exec kitty nmtui",
"rotate": true,
"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": {
2023-02-21 20:49:42 +01:00
"thermal-zone": 1,
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
"critical-threshold": 80,
"format-critical": "{icon}{temperatureC}°C",
"format": "{icon}{temperatureC}°C",
"format-icons": ["", ""]
2021-12-26 03:33:04 +01:00
},
2020-04-29 13:33:26 +02:00
"pulseaudio": {
2022-03-26 02:36:26 +01:00
"format": "{icon}{volume}% {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
2023-02-21 20:12:35 +01:00
"format-bluetooth-muted": " {icon} {format_source}",
// "format-muted": "✖ {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}%",
"format-source-muted": "",
2020-04-29 13:33:26 +02:00
"format-icons": {
2021-05-29 22:28:28 +02:00
"speaker": "💻",
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
2020-04-29 13:33:26 +02:00
"default": ["", "", ""]
},
"scroll-step": 1,
"on-click": "pavucontrol",
2021-05-29 22:28:28 +02:00
"on-click-right": "blueman-manager",
2020-04-29 13:33:26 +02:00
"tooltip": false
},
"custom/storage": {
2022-03-26 02:36:26 +01:00
"format": "{percentage}%",
"format-alt": "{}",
2020-04-29 13:33:26 +02:00
"format-alt-click": "click",
"return-type": "json",
"interval": 60,
"exec": "~/.config/waybar/modules/storage.sh"
},
"tray": {
"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
}