Files
dotfiles/waybar/config.jsonc
2026-02-24 21:45:17 +01:00

176 lines
4.5 KiB
JSON

{
"layer": "bottom",
"position": "top",
"height": 30,
"spacing": 2,
"exclusive": true,
"gtk-layer-shell": true,
"passthrough": false,
"fixed-center": true,
"modules-left": ["hyprland/workspaces", "hyprland/window"],
"modules-center": ["mpris"],
"modules-right": [
"cpu",
"memory",
"pulseaudio",
"clock",
"clock#simpleclock",
"custom/tailscale",
"network",
"battery",
"tray",
"custom/notification",
"custom/power"
],
"custom/spotify": {
"format": " {}",
"return-type": "json",
"on-click": "playerctl -p spotify play-pause",
"on-click-right": "spotifatius toggle-liked",
"on-click-middle": "playerctl -p spotify next",
"exec": "spotifatius monitor",
},
"mpris": {
"player": "spotify",
"dynamic-order": ["artist", "title"],
"format": "{player_icon} {dynamic}",
"format-paused": "{status_icon} <i>{dynamic}</i>",
"status-icons": {
"paused": "",
},
"player-icons": {
"default": "",
},
},
"hyprland/workspaces": {
"on-click": "activate",
"format": "{windows}",
"all-outputs": true,
"disable-scroll": false,
"active-only": false,
"window-rewrite": {
"class<*>": "󰘔 ",
"class<firefox>": "󰈹 ",
"class<app.zen_browser.zen>": " " ,
"class<Code>": "󰨞 ",
"class<Alacritty>": "󰆍 ",
"class<Spotify>": "󰓇 ",
"class<org.telegram.desktop>": "󰍡 ",
"class<kitty>": " ",
"class<com.seafile.seafile-applet>": "󰅟 ",
"class<org.gnome.Nautilus>": " ",
"class<org.gnome.Software>": " ",
}
},
"hyprland/window": {
"format": "{title}",
"icon": true,
"icon-size": 22,
"seperate-outputs": true,
"rewrite": {
"": " Empty Workspace"
}
},
"tray": {
"show-passive-items": true,
"spacing": 10,
},
"clock#simpleclock": {
"tooltip": false,
"format": " {:%H:%M}",
},
"clock": {
"format": " {:L%a %d %b}",
"calendar": {
"format": {
"days": "<span weight='normal'>{}</span>",
"months": "<span color='#cdd6f4'><b>{}</b></span>",
"today": "<span color='#f38ba8' weight='700'><u>{}</u></span>",
"weekdays": "<span color='#f9e2af'><b>{}</b></span>",
"weeks": "<span color='#a6e3a1'><b>W{}</b></span>",
},
"mode": "month",
"mode-mon-col": 1,
"on-scroll": 1,
},
"tooltip-format": "<span color='#cdd6f4' font='Lexend 16'><tt><small>{calendar}</small></tt></span>",
"on-click": "gnome-calendar"
},
"cpu": {
"format": " {usage}%",
"tooltip": true,
"interval": 1,
},
"memory": {
"format": " {used:0.1f}Gi",
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-muted": " muted",
"format-icons": {
"headphone": " ",
"default": [" ", " ", " "],
},
"on-click": "pavucontrol",
},
"battery": {
"format": "{icon} {capacity}%",
"format-charging": "󱐋{icon} {capacity}%",
"format-plugged": "󱐋{icon} {capacity}%",
"format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀"],
"states": {
"critical": 15,
"warning": 30,
},
"events": {
"on-discharging-critical": "notify-send -u critical 'Low Battery'"
}
},
"custom/sep": {
"format": "|",
"tooltip": false,
},
"custom/power": {
"tooltip": false,
"on-click": "wlogout -p layer-shell &",
"format": "⏻",
},
"custom/notification": {
"escape": true,
"exec": "swaync-client -swb",
"exec-if": "which swaync-client",
"format": "{icon}",
"format-icons": {
"none": "󰅺",
"notification": "󰡟",
"dnd-notification": "󰂛",
"": "󱏬",
"inhibited": "󰂛"
},
"on-click": "sleep 0.1 && swaync-client -t -sw",
"return-type": "json",
"tooltip": false,
},
"custom/tailscale": {
"exec": "~/.config/waybar/scripts/tailscale.sh",
"interval": 5,
"return-type": "json",
"on-click": "~/.config/waybar/scripts/tailscale-toggle.sh",
"tooltip": true
},
"network": {
"interface": "wlp1s0",
"format": "",
"format-icons": ["󰤟 ", "󰤢 ", "󰤥 ", "󰤨 "],
"format-wifi": "{icon} {essid}",
"format-ethernet": "󰈀 {essid}",
"format-disconnected": "󰤮 ",
"tooltip-format": "{ifname}",
"tooltip-format-wifi": "{essid} ({signalStrength}%)",
"tooltip-format-ethernet": "{ifname}",
"tooltip-format-disconnected": "Disconnected",
"max-length": 50
}
}