Files
dotfiles/waybar/config.jsonc
T
2026-04-04 05:10:21 +02:00

200 lines
5.2 KiB
JSON

// ~/.config/waybar/config.jsonc
[
{
"name": "top",
"layer": "top",
"position": "top",
"height": 39,
"spacing": 4,
"margin-top": 6,
"margin-left": 10,
"margin-right": 10,
"modules-left": [
"hyprland/workspaces",
"hyprland/window"
],
"modules-center": [
"group/center"
],
"modules-right": [
"tray",
"custom/gamemode",
"custom/power_status"
],
// --- Standard Modules ---
"hyprland/workspaces": {
"format": "{icon}",
"on-click": "activate"
},
"hyprland/window": {
"format": "{}",
"max-length": 50
},
"clock": {
"format": "{:%a %d %b %H:%M}",
"tooltip": false
},
"custom/mpris": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs mpris",
"on-click": "playerctl play-pause",
"signal": 11,
"interval": 0
},
"tray": {
"icon-size": 18,
"spacing": 10
},
"group/center": {
"orientation": "horizontal",
"modules": [
"custom/mpris",
"clock"
// "custom/dnd"
]
},
"custom/gamemode": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs game",
"on-click": "~/.config/hypr/scripts/gamemode.sh",
"signal": 7,
"interval": 5
},
"custom/power_status": {
"format": "{} ",
"return-type": "json",
"exec": "fluxo-rs power",
"on-click": "~/.config/hypr/scripts/powermenu.sh & disown",
"signal": 10,
"interval": 5
}
},
{
"name": "bottom",
"layer": "top",
"position": "bottom",
"height": 35,
"spacing": 4,
"margin-bottom": 6,
"margin-left": 10,
"margin-right": 10,
"modules-left": [
"group/hardware"
],
"group/hardware": {
"orientation": "horizontal",
"modules": [
"custom/sys",
"custom/cpu",
"custom/mem",
"custom/disk-root",
"custom/network"
]
},
"modules-center": [
],
"modules-right": [
"custom/bluetooth-audio",
"custom/volume",
"custom/mic"
],
// --- Fluxo-rs System & Hardware ---
"custom/sys": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs sys",
"signal": 5,
"interval": 1
},
"custom/cpu": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs cpu",
"on-click": "zenmonitor & disown",
"signal": 2,
"interval": 1
},
"custom/mem": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs mem",
"signal": 3,
"interval": 1
},
"custom/gpu": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs gpu",
"signal": 4,
"interval": 1
},
"custom/network": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs net",
"signal": 1,
"interval": 1
},
"custom/disk-root": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs disk /",
"signal": 6,
"interval": 1
},
// --- Fluxo-rs Audio & BT ---
"custom/volume": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs vol",
"on-click": "fluxo-rs vol mute",
"on-scroll-up": "fluxo-rs vol up 5",
"on-scroll-down": "fluxo-rs vol down 5",
"on-click-right": "fluxo-rs vol cycle",
"on-click-middle": "pavucontrol",
"signal": 8,
"interval": 1
},
"custom/mic": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs mic",
"on-click": "fluxo-rs mic mute",
"on-scroll-up": "fluxo-rs mic up 5",
"on-scroll-down": "fluxo-rs mic down 5",
"on-click-right": "fluxo-rs mic cycle",
"on-click-middle": "pavucontrol",
"signal": 8,
"interval": 1
},
"custom/bluetooth-audio": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs bt",
"on-click": "fluxo-rs bt menu",
"on-click-right": "fluxo-rs bt cycle_mode",
"signal": 9,
"interval": 1,
"tooltip": true
},
"custom/dnd": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs dnd",
"on-click": "fluxo-rs dnd toggle",
"signal": 14,
"interval": 0
}
}
]