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

148 lines
2.8 KiB
Plaintext
Raw Normal View History

2024-03-24 16:15:15 +01:00
{
// generic
"exclusive": true,
"gtk-layer-shell": true,
"height": 0,
"layer": "top",
"mod": "dock",
"passthrough": false,
"position": "top",
// modules location
"modules-left": [
"hyprland/workspaces",
"hyprland/window",
],
"modules-center": [
"clock"
],
"modules-right": [
"custom/spotify",
"tray",
"cpu",
"memory",
"network",
"custom/wireguard",
"battery",
"backlight",
"pulseaudio",
],
// modules
"backlight": {
"device": "intel_backlight",
"format": "{icon} {percent}%",
"format-icons": [
"🔅",
"🔆",
"☀️"
],
"max-length": 7,
"min-length": 7,
"on-scroll-up": "brightnessctl set 5%+",
"on-scroll-down": "brightnessctl set 5%-"
},
"battery": {
"states": {
"good": 75,
"warning": 50,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-icons": [
"🪫",
"🪫",
"🪫",
"🔋",
"🔋"
],
"max-length": 7,
"min-length": 7
},
"clock": {
"format": "{:🕒 %R 🗓️ %d-%m}",
"timezones": ["Europe/Amsterdam", "Asia/Kolkata"],
"actions": { "on-click": "tz_down" },
"tooltip-format": "<tt><small>{calendar}</small></tt>"
},
"cpu": {
"interval": 5,
"max-length": 6,
"min-length": 6,
"format": "🧠 {usage:2}%"
},
"custom/wireguard": {
"interval": 2,
"format": "{}",
2024-03-24 19:56:47 +01:00
"exec": "$HOME/.dotfiles/apps/wireguard/wireguard.sh status",
"on-click": "$HOME/.dotfiles/apps/wireguard/wireguard.sh switch"
2024-03-24 16:15:15 +01:00
},
"hyprland/window": {
"format": "{}"
},
"hyprland/workspaces": {
"all-outputs": true,
"sort-by-number": true,
"format": "{icon}",
"format-icons": {
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7",
"8": "8",
"9": "9",
"10": "10"
}
},
"memory": {
"interval": 5,
"format": "🐏 {}%",
"max-length": 6,
"min-length": 6,
"tooltip-format": "{used:0.1f}GB / {total:0.1f}GB",
},
"network": {
"tooltip": true,
"format-wifi": "📡 {ipaddr}/{cidr}",
"format-ethernet": "🌐 {ipaddr}/{cidr}",
"tooltip-format-wifi": "SSID: {essid}\nSignal Strength: {signalStrength}%\nIP: {ipaddr}\nNetmask: {netmask} (/{cidr})\nGateway: {gwaddr}",
"tooltip-format-ethernet": "IP: {ipaddr}\nNetmask: {netmask} (/{cidr})\nGateway: {gwaddr}",
"on-click": "alacritty --class nmtui --command ~/.dotfiles/hyprland/nmtui.sh"
},
"pulseaudio": {
"format": "{icon} {volume:2}%",
"format-muted": "🔇",
"format-icons": {
"headphones": "🎧",
"default": [
"🔉",
"🔊"
]
},
"scroll-step": 5,
"max-length": 8,
"min-length": 8,
2024-03-25 17:37:05 +01:00
"on-click": "easyeffects"
2024-03-24 16:15:15 +01:00
},
"tray": {
"icon-size": 13,
"spacing": 10
}
}