Files
dotfiles/waybar/config.jsonc
T

200 lines
6.1 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": [
"clock"
],
"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}",
"on-click-right": "xdg-open https://calendar.proton.me/u/0/month &> /dev/null & disown",
"tooltip": false
},
"tray": {
"icon-size": 18,
"spacing": 10
},
"custom/gamemode": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs game",
"on-click": "~/.config/hypr/scripts/gamemode.sh && pkill -RTMIN+1 waybar & disown",
"signal": 1,
"interval": 5
},
// --- Fluxo-rs Power ---
"custom/power_status": {
"format": "{} ",
"return-type": "json",
"exec": "fluxo-rs power",
"on-click": "~/.config/hypr/scripts/powermenu.sh & disown",
"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" // Replaced individual modules with a group
],
// Add the group definition anywhere in the bottom bar block:
"group/hardware": {
"orientation": "horizontal",
"modules": [
"custom/sys",
"custom/cpu",
"custom/gpu",
"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",
"interval": 1
},
"custom/cpu": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs cpu",
"on-click": "zenmonitor & disown",
"interval": 1
},
"custom/mem": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs mem",
"interval": 1
},
"custom/gpu": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs gpu",
"interval": 1
},
"custom/network": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs net",
"interval": 1
},
// --- Fluxo-rs Utilities ---
"custom/disk-root": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs disk /",
"interval": 30
},
// --- Fluxo-rs Audio & BT ---
"custom/volume": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs vol",
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && pkill -RTMIN+8 waybar",
"on-scroll-up": "wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+ && pkill -RTMIN+8 waybar",
"on-scroll-down": "wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%- && pkill -RTMIN+8 waybar",
"on-click-right": "fluxo-rs vol --cycle && pkill -RTMIN+8 waybar",
"on-click-middle": "pavucontrol",
"signal": 8,
"interval": 1
},
"custom/mic": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs mic",
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle && pkill -RTMIN+9 waybar",
"on-scroll-up": "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%+ && pkill -RTMIN+9 waybar",
"on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%- && pkill -RTMIN+9 waybar",
"on-click-right": "fluxo-rs mic --cycle && pkill -RTMIN+9 waybar",
"on-click-middle": "pavucontrol",
"signal": 9,
"interval": 1
},
"custom/bluetooth-audio": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs bt",
"on-click": "fluxo-rs bt menu && pkill -RTMIN+10 waybar",
"on-click-right": "fluxo-rs bt cycle_mode && pkill -RTMIN+10 waybar",
"signal": 10,
"interval": 1,
"tooltip": true
}
// --- Commented Out Modules ---
/*
"custom/btrfs": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs pool",
"interval": 30
},
"custom/buds": {
"format": "{}",
"return-type": "json",
"exec": "fluxo-rs buds",
"on-click": "fluxo-rs buds connect & disown",
"on-click-right": "fluxo-rs buds cycle_anc & disown",
"interval": 5
},
"custom/gpu-screen-recorder": {
"format": "{}",
"return-type": "json",
"exec": "~/.config/waybar/scripts/gpu-screen-recorder-status.sh",
"on-click-right": "~/.config/hypr/scripts/replay-ctrl.sh save & disown",
"on-click-middle": "nautilus ~/Videos/replay & disown",
"on-click": "~/.config/waybar/scripts/toggle-replay.sh & disown",
"interval": 1
}
*/
}
]