157 lines
4.4 KiB
JSON
157 lines
4.4 KiB
JSON
{
|
||
"layer": "top",
|
||
"position": "top",
|
||
|
||
"exclusive": true, // keep the gap reserved
|
||
"margin-top": 8, // gap from the top edge
|
||
"margin-left": 10, // gap from the left edge
|
||
"margin-right": 10, // gap from the right edge
|
||
"margin-bottom": 0,
|
||
|
||
"modules-left": ["hyprland/workspaces"],
|
||
"modules-center": ["wlr/taskbar"],
|
||
"modules-right": [ "tray", "custom/separator", "network", "bluetooth", "custom/separator", "disk", "cpu", "memory", "pulseaudio", "custom/separator", "clock"],
|
||
|
||
|
||
"hyprland/workspaces": {
|
||
"disable-scroll": true,
|
||
"all-outputs": true,
|
||
"warp-on-scroll": false,
|
||
"format": "{icon}{windows}",
|
||
"format-icons": {
|
||
"1": "1",
|
||
"2": "2",
|
||
"3": "3",
|
||
"4": "4",
|
||
"5": "5",
|
||
"6": "6",
|
||
"7": "7",
|
||
"8": "8",
|
||
"9": "9",
|
||
"10": "0"
|
||
},
|
||
"window-rewrite-default": " ",
|
||
"format-window-separator": "",
|
||
"window-rewrite": {
|
||
"class<firefox>": " ",
|
||
"class<com.mitchellh.ghostty>": " ",
|
||
"class<com.mitchellh.ghostty> title<vim.*>": " ",
|
||
"class<Spotify>": " ",
|
||
"class<QOwnNotes>": " ",
|
||
"class<thunderbird>": " ",
|
||
"class<thunar>": " ",
|
||
"class<jetbrains-webstorm>": " ",
|
||
"class<jetbrains-pycharm>": " ",
|
||
"class<steam>": " ",
|
||
"class<discord>": " "
|
||
// "": "",
|
||
// "": "",
|
||
// "": "",
|
||
// "": "",
|
||
// "": "",
|
||
// "": "",
|
||
// "": "",
|
||
// "": ""
|
||
},
|
||
"persistent-workspaces": {
|
||
"1": [],
|
||
"2": [],
|
||
"3": [],
|
||
"4": [],
|
||
"5": [],
|
||
"6": [],
|
||
"7": [],
|
||
"8": [],
|
||
"9": [],
|
||
"10": []
|
||
}
|
||
},
|
||
|
||
|
||
// "hyprland/window": { "format": "{title}", "max-length": 60 },
|
||
"wlr/taskbar": {
|
||
"format": "{icon}",
|
||
"icon-theme": "Ars-Dark-Icons",
|
||
"tooltip-format": "{title}",
|
||
"on-click": "activate",
|
||
"on-click-middle": "close"
|
||
},
|
||
"tray": { "icon-size": 16, "spacing": 10 },
|
||
|
||
"pulseaudio": {
|
||
// ——— behaviour ———
|
||
"scroll-step": 5, // ± 5 % per wheel-step
|
||
"max-volume": 150, // allow 0 – 150 %
|
||
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
|
||
"on-click-right": "pavucontrol",
|
||
|
||
// ——— appearance ———
|
||
"markup": "pango", // enable coloured markup
|
||
"format": "<span color='#e5c07b'>{icon} </span> <span color='#ffffff'>{volume}%</span>",
|
||
"format-muted": "<span color='#e5c07b'> </span> muted",
|
||
|
||
// choose the glyphs you like (Nerd Font / Font Awesome)
|
||
"format-icons": {
|
||
"default": "", // speaker
|
||
"muted": "", // muted speaker
|
||
"headphones": ""
|
||
}
|
||
},
|
||
|
||
"custom/separator": {
|
||
// emit a JSON object with field "text"
|
||
"exec": "echo '{\"text\":\"|\"}'",
|
||
// treat stdout as JSON
|
||
"return-type": "json",
|
||
// wrap the text in a colored Pango span
|
||
"format": "<span color='#555'>{text}</span>",
|
||
"markup": "pango",
|
||
// refresh only hourly
|
||
"interval": 3600
|
||
},
|
||
|
||
"cpu": {
|
||
"interval": 1, // update every second
|
||
"markup": "pango",
|
||
"format": "<span color='#E06C75'> </span> {usage}%"
|
||
},
|
||
|
||
"memory": {
|
||
"interval": 2, // fast enough, still light
|
||
"markup": "pango",
|
||
"format": "<span color='#98C379'> </span> {percentage}%"
|
||
},
|
||
|
||
"disk": {
|
||
"interval": 30, // disks change slowly
|
||
"path": "/",
|
||
"markup": "pango",
|
||
"format": "<span color='#C678DD'> </span> {percentage_used}%"
|
||
},
|
||
|
||
/* ─── CLOCK (add date) ──────────────────────────────────── */
|
||
|
||
"clock": {
|
||
"interval": 1,
|
||
"format": "{:%Y-%m-%d %H:%M:%S}",
|
||
"format-alt": "{:%Y-%m-%d %H:%M}"
|
||
},
|
||
|
||
/* ─── NETWORK ─────────────────────────────────────────────── */
|
||
"network": {
|
||
"interface": ["enp.*", "eth.*"], // wired NICs (regex—adjust if needed)
|
||
"interval": 3,
|
||
"markup": "pango",
|
||
|
||
"format-ethernet": "<span color='#61AFEF'> </span> up",
|
||
"format-wifi": "<span color='#61AFEF'> </span> {essid}",
|
||
// "format-linked": "<span color='#61AFEF'></span> link",
|
||
"format-unknown": "<span color='#61AFEF'> </span> up",
|
||
"format-disconnected":"<span color='#E06C75'> </span> down",
|
||
|
||
"on-click": "nm-connection-editor"
|
||
},
|
||
|
||
}
|
||
|