Files
dotfiles/fedora/waybar/config.jsonc
Mikhail Kilin 8cedd606f5 fixes
2026-06-21 16:22:06 +03:00

180 lines
5.1 KiB
JSON

// -*- mode: jsonc -*-
{
"layer": "top",
"height": 32,
"spacing": 8,
"modules-left": [
"niri/workspaces"
],
"modules-center": [
"niri/window"
],
"modules-right": [
"privacy",
"custom/mail",
"custom/weather",
"pulseaudio",
"network",
"niri/language",
"power-profiles-daemon",
"cpu",
"memory",
"temperature",
"custom/gpu",
"disk",
"custom/calendar",
"tray"
],
"niri/workspaces": {
"format": "{index}"
},
"niri/window": {
"format": "{}",
"max-length": 50,
"align": 0.5,
"justify": "center"
},
"niri/language": {
"format": "{short}",
"align": 0.5,
"justify": "center"
},
"privacy": {
"icon-spacing": 4,
"icon-size": 16,
"transition-duration": 250,
"modules": [
{ "type": "screenshare" },
{ "type": "audio-in" },
{ "type": "audio-out" }
]
},
"custom/mail": {
"format": "<span font='Symbols Nerd Font Mono'>{}</span>",
"return-type": "json",
"exec": "~/.config/waybar/scripts/mail",
"interval": 60,
"tooltip": true,
"on-click": "thunderbird",
"align": 0.5,
"justify": "center"
},
"custom/weather": {
"format": "{}",
"return-type": "json",
"exec": "~/.config/waybar/scripts/weather.sh",
"interval": 900,
"tooltip": true,
"align": 0.5,
"justify": "center"
},
"custom/gpu": {
"format": "{}",
"return-type": "json",
"exec": "~/.config/waybar/scripts/gpu.sh",
"interval": 5,
"tooltip": true,
"align": 0.5,
"justify": "center"
},
"disk": {
"format": "<span font='Font Awesome 6 Free'></span> {percentage_used}%",
"path": "/",
"tooltip-format": "{used} / {total} ({percentage_used}%)",
"align": 0.5,
"justify": "center"
},
"tray": {
"spacing": 10
},
"custom/calendar": {
"format": "<span font='Font Awesome 6 Free'></span> {}",
"return-type": "json",
"exec": "~/.config/waybar/scripts/khal-calendar",
"interval": 30,
"tooltip": true,
"on-click": "alacritty --title khal-popup -e bash -c 'vdirsyncer sync 2>/dev/null; ikhal'",
"align": 0.5,
"justify": "center"
},
"cpu": {
"format": "<span font='Font Awesome 6 Free Solid'></span> {usage}%",
"tooltip": false,
"align": 0.5,
"justify": "center"
},
"memory": {
"format": "<span font='Font Awesome 6 Free Solid'></span> {}%",
"align": 0.5,
"justify": "center"
},
"temperature": {
"critical-threshold": 80,
"format": "<span font='Font Awesome 6 Free Solid'></span> {temperatureC}°C",
"align": 0.5,
"justify": "center"
},
"network": {
"format-wifi": "<span font='Symbols Nerd Font Mono'>{icon}</span>",
"format-ethernet": "",
"format-icons": ["󰤯", "󰤟", "󰤢", "󰤥", "󰤨"],
"tooltip-format-wifi": "{essid} ({signalStrength}%)\n{ipaddr}/{cidr}",
"tooltip-format-ethernet": "{ifname}\n{ipaddr}/{cidr}",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "<span font='Symbols Nerd Font Mono'>󰤭</span>",
"on-click": "",
"align": 0.5,
"justify": "center"
},
"pulseaudio": {
"format": "<span font='Font Awesome 6 Free Solid'>{icon}</span> {volume}% <span font='Font Awesome 6 Free Solid'></span> {format_source}",
"format-bluetooth": "<span font='Font Awesome 6 Free Solid'>{icon}</span> {volume}% <span font='Font Awesome 6 Brands'></span> <span font='Font Awesome 6 Free Solid'></span> {format_source}",
"format-bluetooth-muted": "<span font='Font Awesome 6 Free Solid'></span> <span font='Font Awesome 6 Brands'></span> <span font='Font Awesome 6 Free Solid'></span> {format_source}",
"format-muted": "<span font='Font Awesome 6 Free Solid'></span> <span font='Font Awesome 6 Free Solid'></span> {format_source}",
"format-source": "{volume}%",
"format-source-muted": "<span font='Font Awesome 6 Free Solid'></span>",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol",
"align": 0.5,
"justify": "center"
},
"power-profiles-daemon": {
"format": "<span font='Font Awesome 6 Free Solid'>{icon}</span>",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"align": 0.5,
"justify": "center",
"format-icons": {
"default": "",
"performance": "",
"balanced": "",
"power-saver": ""
}
}
}