150 lines
4.0 KiB
JSON
150 lines
4.0 KiB
JSON
// ~/.config/waybar/config.jsonc
|
|
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
"height": 35,
|
|
"modules-left": [
|
|
"hyprland/workspaces"
|
|
],
|
|
"modules-center": [],
|
|
"modules-right": [
|
|
"wireplumber",
|
|
"custom/audio-output",
|
|
"custom/pixelbuds_pro",
|
|
"network",
|
|
"cpu",
|
|
"memory",
|
|
"custom/gpu-usage",
|
|
"custom/gpu-screen-recorder",
|
|
"custom/gamemode",
|
|
"tray",
|
|
"clock"
|
|
// "custom/power"
|
|
],
|
|
|
|
"hyprland/workspaces": {
|
|
"format": "{icon}",
|
|
"on-click": "activate"
|
|
},
|
|
"hyprland/window": {
|
|
"format": "{}",
|
|
"max-length": 35
|
|
},
|
|
"clock": {
|
|
"format": "{:%a %d %b %H:%M}",
|
|
"format-alt": false,
|
|
"on-click-right": "xdg-open https://calendar.proton.me/u/0/month &> /dev/null & disown",
|
|
"tooltip": false,
|
|
},
|
|
"custom/gpu": {
|
|
"format": "GPU: {}%",
|
|
"exec": "~/.config/waybar/scripts/gpu_usage.sh",
|
|
"interval": 1,
|
|
"tooltip": true
|
|
},
|
|
"cpu": {
|
|
"format": "CPU: {usage}%",
|
|
"tooltip": true
|
|
},
|
|
"memory": {
|
|
"format": "MEM: {used}/{total}GB"
|
|
},
|
|
"network": {
|
|
"format-wifi": "{essid} ({signalStrength}%): {ipaddr}",
|
|
"format-ethernet": "{ifname}: {ipaddr}",
|
|
"format-disconnected": "Disconnected",
|
|
"tooltip-format": "{ifname} via {gwaddr}"
|
|
},
|
|
"wireplumber": {
|
|
"format": "{volume}% {icon}",
|
|
"format-muted": "Muted ",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"default": ["", ""]
|
|
},
|
|
"on-click": "pavucontrol",
|
|
"scroll-step": 1
|
|
},
|
|
|
|
"pulseaudio": {
|
|
"format": "{icon} {volume}%",
|
|
"format-muted": " Muted",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", ""]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"tray": {
|
|
"icon-size": 18,
|
|
"spacing": 10
|
|
},
|
|
"custom/power": {
|
|
"format": "",
|
|
"tooltip": false,
|
|
"on-click": "~/.config/hypr/scripts/powermenu.sh"
|
|
},
|
|
"custom/tlp": {
|
|
"format": "{}",
|
|
"exec": "~/.config/waybar/scripts/tlp-profile.sh",
|
|
"return-type": "json",
|
|
"interval": 5
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{capacity}%",
|
|
"format-charging": "{capacity}%",
|
|
"format-plugged": "{capacity}%",
|
|
"format-alt": "{time} {icon}",
|
|
"format-full": "{capacity}%",
|
|
"format-icons": ["", "", "", "", ""]
|
|
},
|
|
"custom/pixelbuds_pro": {
|
|
"format": "{}",
|
|
"return-type": "json",
|
|
"exec": "~/.config/waybar/scripts/pixelbuds_pro_control.sh",
|
|
"interval": 5,
|
|
"on-click": "~/.config/waybar/scripts/pixelbuds_pro_control.sh connect",
|
|
"on-click-right": "~/.config/waybar/scripts/pixelbuds_pro_control.sh disconnect",
|
|
"on-click-middle": "~/.config/waybar/scripts/pixelbuds_pro_control.sh cycle_anc"
|
|
},
|
|
"custom/audio-output": {
|
|
"format": "{}",
|
|
"return-type": "json",
|
|
"exec": "/home/narl/.config/waybar/scripts/get_audio_output.sh",
|
|
"on-click": "/home/narl/.config/waybar/scripts/cycle_audio_output.sh",
|
|
"interval": 1
|
|
},
|
|
"custom/gamemode": {
|
|
"format": "{}",
|
|
"return-type": "json",
|
|
"exec": "~/.config/waybar/scripts/gamemode_status.sh",
|
|
"on-click": "~/.config/hypr/scripts/gamemode.sh",
|
|
"interval": 1
|
|
},
|
|
"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",
|
|
"on-click": "~/.config/hypr/scripts/replay-ctrl.sh toggle",
|
|
"interval": 1
|
|
},
|
|
"custom/gpu-usage": {
|
|
"format": "{}",
|
|
"return-type": "json",
|
|
"exec": "~/.config/waybar/scripts/gpu_usage.sh",
|
|
"on-click": "lact gui",
|
|
"interval": 5
|
|
}
|
|
}
|