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

139 lines
2.7 KiB
Plaintext

{
// 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",
"custom/hypridle",
"custom/wireguard",
"network",
"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>"
},
"custom/hypridle": {
"interval": 2,
"format": "{}",
"exec": "$HOME/.dotfiles/apps/hyprland/hypridle.sh",
"on-click": "$HOME/.dotfiles/apps/hyprland/hypridle.sh toggle"
},
"custom/wireguard": {
"interval": 2,
"format": "{}",
"exec": "$HOME/.dotfiles/apps/wireguard/wireguard.sh status",
"on-click": "$HOME/.dotfiles/apps/wireguard/wireguard.sh switch"
},
"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"
}
},
"network": {
"tooltip": true,
"format-wifi": "📡",
"format-ethernet": "🌐",
"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/apps/hyprland/nmtui.sh"
},
"pulseaudio": {
"format": "{icon} {volume:2}%",
"format-muted": "🔇",
"format-icons": {
"headphones": "🎧",
"default": [
"🔉",
"🔊"
]
},
"scroll-step": 5,
"max-length": 8,
"min-length": 8,
"on-click": "easyeffects"
},
"tray": {
"icon-size": 13,
"spacing": 10
}
}