Files
dotfiles/.config/waybar/config.jsonc##hostname.cn-arch
2025-07-10 23:18:54 +02:00

128 lines
3.7 KiB
Plaintext

{
// general bar settings
"layer": "bottom",
"output": [
"DP-1",
"DP-2",
"!HDMI-A-2"
],
"position": "bottom",
"mod": "dock",
"exclusive": true,
"gtk-layer-shell": true,
"passthrough": false,
"height": 32,
// which modules to show
"modules-left": [
"hyprland/workspaces"
],
"modules-center": [
"mpris",
"privacy"
],
"modules-right": [
"cpu",
"memory",
"disk",
"network",
"pulseaudio",
"bluetooth",
"battery",
"custom/alhp",
"custom/razer-mouse-battery",
"tray",
"clock",
],
"hyprland/workspaces": {
"icon-size": 28,
"spacing": 12,
"on-scroll-up": "hyprctl dispatch workspace r+1",
"on-scroll-down": "hyprctl dispatch workspace r-1",
},
"cpu": {
"interval": 5,
"format": "<span color=\"#4F84CC\"></span> <span color=\"#CAD3E8\">{usage}%</span>",
},
"memory": {
"interval": 10,
"format": "<span color=\"#4F84CC\"></span> <span color=\"#CAD3E8\">{percentage}%</span>",
"tooltip": true,
},
"disk": {
"interval": 30,
"format": "<span color=\"#4F84CC\">󰋊</span> <span color=\"#CAD3E8\">{percentage_used}%</span>",
"tooltip": true,
},
"network": {
// only show the Wi-Fi glyph on wifi…
"format-wifi": "<span color=\"#4F84CC\"></span> <span color=\"#CAD3E8\">{essid} ({signalStrength}%)</span>",
// …and this little link-icon on Ethernet
"format-ethernet": "<span color=\"#4F84CC\"></span> <span color=\"#CAD3E8\">{ifname}</span>",
"format-disconnected": "<span color=\"#FFCC33\">󰌙 Disconnected</span>",
"tooltip": true,
"tooltip-format": "<span color=\"#CAD3E8\">{ifname} via {gwaddr}</span>",
},
"pulseaudio": {
"format": "<span color=\"#4F84CC\">{icon}</span> <span color=\"#CAD3E8\">{volume}%</span>",
"format-muted": "<span color=\"#FFCC33\"> Muted</span>",
"scroll-step": 5,
"on-click": "pavucontrol",
"interval": 30,
"format-icons": {
// match these to the sink NAMES you see in `pactl list sinks`
"alsa_output.usb-SteelSeries_Arctis_7_-00.analog-stereo": "", // SteelSeries headset
"alsa_output.pci-0000_0a_00.4.iec958-stereo": "", // speaker icon for your soundbar
"bluez_output.50_5E_5C_2D_F3_B2.1": "", // Bluetooth earbud icon
"default": [
"",
""
], // fallback (low/hi)
},
},
"bluetooth": {
"format": "<span color=\"#4F84CC\"></span> <span color=\"#CAD3E8\">{status}</span>",
"format-connected": "<span color=\"#4F84CC\"></span> <span color=\"#CAD3E8\">{device_alias} ({device_battery_percentage}%)</span>",
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 20,
},
"format": "<span color=\"#4F84CC\">{icon}</span> <span color=\"#CAD3E8\">{capacity}%</span>",
"format-charging": "<span color=\"#4F84CC\"> {capacity}%</span>",
},
"custom/alhp": {
"exec": "$HOME/.config/waybar/scripts/alhp.sh",
"return-type": "json",
"interval": 60,
"format": "{text}",
"tooltip": true,
},
"custom/razer-mouse-battery": {
"exec": "$HOME/.config/waybar/scripts/razer_basilisk_v3_pro_battery_info.sh",
"return-type": "json",
"interval": 10,
"format": "{text}",
"tooltip": true,
},
"tray": {
"icon-size": 18,
"spacing": 4,
},
"clock": {
"format": "<span color=\"#CAD3E8\">{:%R | %d.%m.%Y}</span>",
"tooltip-format": "<tt><span color=\"#CAD3E8\"><small>{calendar}</small></span></tt>",
"calendar": {
"mode": "year",
"mode-mon-col": 3,
"weeks-pos": "right",
},
"actions": {
"on-click-right": "mode",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down",
},
},
}