- Replace sway modules with niri/workspaces, niri/window, niri/language - Remove battery, backlight, mpd (desktop machine) - Add custom modules: GPU (nvidia-smi), weather (wttr.in), mail (Thunderbird) - Add disk, privacy modules - Catppuccin Latte colors with Mocha dark background - Wi-Fi signal level icon, bold 15px font - Scripts for GPU, weather, and mail monitoring Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
161 lines
3.6 KiB
JSON
161 lines
3.6 KiB
JSON
// -*- mode: jsonc -*-
|
|
{
|
|
"layer": "top",
|
|
"height": 32,
|
|
"spacing": 8,
|
|
|
|
"modules-left": [
|
|
"niri/workspaces"
|
|
],
|
|
"modules-center": [
|
|
"niri/window"
|
|
],
|
|
"modules-right": [
|
|
"privacy",
|
|
"custom/mail",
|
|
"idle_inhibitor",
|
|
"custom/weather",
|
|
"pulseaudio",
|
|
"network",
|
|
"power-profiles-daemon",
|
|
"cpu",
|
|
"memory",
|
|
"temperature",
|
|
"custom/gpu",
|
|
"disk",
|
|
"niri/language",
|
|
"clock",
|
|
"tray"
|
|
],
|
|
|
|
"niri/workspaces": {
|
|
"format": "{index}"
|
|
},
|
|
|
|
"niri/window": {
|
|
"format": "{}",
|
|
"max-length": 50
|
|
},
|
|
|
|
"niri/language": {
|
|
"format": "{short}"
|
|
},
|
|
|
|
"privacy": {
|
|
"icon-spacing": 4,
|
|
"icon-size": 16,
|
|
"transition-duration": 250,
|
|
"modules": [
|
|
{ "type": "screenshare" },
|
|
{ "type": "audio-in" },
|
|
{ "type": "audio-out" }
|
|
]
|
|
},
|
|
|
|
"custom/mail": {
|
|
"format": "{}",
|
|
"return-type": "json",
|
|
"exec": "python3 ~/.config/waybar/scripts/mail.py",
|
|
"interval": 60,
|
|
"tooltip": true,
|
|
"on-click": "flatpak run org.mozilla.Thunderbird"
|
|
},
|
|
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
}
|
|
},
|
|
|
|
"custom/weather": {
|
|
"format": "{}",
|
|
"return-type": "json",
|
|
"exec": "~/.config/waybar/scripts/weather.sh",
|
|
"interval": 900,
|
|
"tooltip": true
|
|
},
|
|
|
|
"custom/gpu": {
|
|
"format": " {}",
|
|
"return-type": "json",
|
|
"exec": "~/.config/waybar/scripts/gpu.sh",
|
|
"interval": 5,
|
|
"tooltip": true
|
|
},
|
|
|
|
"disk": {
|
|
"format": "{percentage_used}% ",
|
|
"path": "/",
|
|
"tooltip-format": "{used} / {total} ({percentage_used}%)"
|
|
},
|
|
|
|
"tray": {
|
|
"spacing": 10
|
|
},
|
|
|
|
"clock": {
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
"format": "{:%H:%M}",
|
|
"format-alt": "{:%Y-%m-%d}"
|
|
},
|
|
|
|
"cpu": {
|
|
"format": "{usage}% ",
|
|
"tooltip": false
|
|
},
|
|
|
|
"memory": {
|
|
"format": "{}% "
|
|
},
|
|
|
|
"temperature": {
|
|
"critical-threshold": 80,
|
|
"format": "{temperatureC}°C {icon}",
|
|
"format-icons": ["", "", ""]
|
|
},
|
|
|
|
"network": {
|
|
"format-wifi": "{icon}",
|
|
"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": "",
|
|
"on-click": ""
|
|
},
|
|
|
|
"pulseaudio": {
|
|
"format": "{volume}% {icon} {format_source}",
|
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
|
"format-bluetooth-muted": " {icon} {format_source}",
|
|
"format-muted": " {format_source}",
|
|
"format-source": "{volume}% ",
|
|
"format-source-muted": "",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
|
|
"power-profiles-daemon": {
|
|
"format": "{icon}",
|
|
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
|
"tooltip": true,
|
|
"format-icons": {
|
|
"default": "",
|
|
"performance": "",
|
|
"balanced": "",
|
|
"power-saver": ""
|
|
}
|
|
}
|
|
}
|