nixos-config/home/waybar/config

82 lines
2.6 KiB
Text
Raw Normal View History

2024-11-21 15:56:39 -05:00
{
2024-11-22 00:58:04 -05:00
"layer": "top", // Waybar on highest layer so tooltips go over windows
"output": "eDP-1", // Set output to primary monitor
"height": 40, // Set height to avoid jumping due to active workspace indicator
2024-12-04 22:53:37 -05:00
"margin-left": 0,
"margin-right": 0,
2024-12-04 22:23:59 -05:00
"margin-top": 0,
2025-01-19 03:54:37 -05:00
"modules-left": ["niri/workspaces", "clock#time", "clock#date", "battery"], // Sets modules for the left of the bar
"modules-center": ["niri/window"], // Set modules for the center of the bar
2024-11-22 00:58:04 -05:00
"modules-right": ["tray", "temperature", "cpu", "memory", "wireplumber"], // Set modules for the right of the bar
"clock#time": {
"format": "<span color=\"#7aa2f7\"> </span>{:%H:%M:%S}",
"interval": 1,
2024-11-21 15:56:39 -05:00
},
2024-11-22 00:58:04 -05:00
"clock#date": {
"format": "<span color=\"#7aa2f7\"> </span>{:%Y/%m/%d}",
2024-11-22 00:58:04 -05:00
"tooltip-format": "<tt>{calendar}</tt>",
"interval": 360,
"calendar": {
"mode": "month",
"mode-mon-col": 4,
"weeks-pos": "right",
"on-scroll": 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#c0caf5'><b>{}</b></span>",
"days": "<span color='#c0caf5'><b>{}</b></span>",
"weeks": "<span color='#7dcfff'><b>W{}</b></span>",
"weekdays": "<span color='#ff9e64'><b>{}</b></span>",
"today": "<span color='#f7768e'><b><u>{}</u></b></span>",
},
},
2024-11-21 15:56:39 -05:00
},
"battery": {
2024-11-22 00:58:04 -05:00
"interval": 60,
2024-11-21 15:56:39 -05:00
"states": {
2024-11-22 00:58:04 -05:00
"warning": 40,
"critical": 20,
2024-11-21 15:56:39 -05:00
},
2024-11-22 00:58:04 -05:00
"format": "{icon} {capacity}%",
"format-icons": [
"<span color=\"#f7768e\"> </span>",
"<span color=\"#f7768e\"> </span>",
"<span color=\"#7aa2f7\"> </span>",
"<span color=\"#7aa2f7\"> </span>",
"<span color=\"#7aa2f7\"> </span>",
],
"format-charging": "<span color=\"#e0af68\">󱐌</span> {capacity}%",
},
"cpu": {
"format": "<span color=\"#7aa2f7\"> </span>{usage}%",
"interval": 4,
},
"memory": {
"format": "<span color=\"#7aa2f7\"> </span>{used}GiB",
"interval": 4,
},
"temperature": {
2024-12-04 23:02:16 -05:00
"hwmon-path": "/sys/class/hwmon/hwmon4/temp1_input",
2024-11-22 00:58:04 -05:00
"critical-threshold": 80,
"format": "<span color=\"#7aa2f7\"> </span>{temperatureC}°C",
"format-critical": "<span color=\"#f7768e\"> </span>{temperatureC}°C",
"interval": 4,
},
"wireplumber": {
"scroll-step": 1, // %, can be a float
"format": "<span color=\"#7aa2f7\">{icon} </span>{volume}%",
"format-muted": "<span color=\"#f7768e\">󰝟 </span>Muted",
"format-icons": ["", "", ""],
"on-click": "pavucontrol",
"interval": 4,
},
2025-01-19 03:54:37 -05:00
"niri/window": {
2024-11-22 00:58:04 -05:00
"max-length": 64,
2024-11-21 15:56:39 -05:00
},
"tray": {
2024-11-22 00:58:04 -05:00
"icon-size": 22,
"spacing": 6,
2024-11-21 15:56:39 -05:00
}
}