Dotfiles_ArchAP/waybar/.config/waybar/config.jsonc
grayTerminal-sh 79f56f47f2 general
2026-05-30 09:35:14 +02:00

178 lines
5.7 KiB
Text

{
"modules-left": [
"ext/workspaces",
"custom/hyprwhspr"
],
"modules-right": [
"mpris",
"bluetooth",
"network",
"wireplumber",
"backlight",
"custom/updates",
"systemd-failed-units",
"custom/tlp",
"group/hardware",
"clock",
"custom/power",
"tray"
],
"group/hardware": {
"orientation": "horizontal",
"drawer": {
"transition-duration": 200,
"children-class": "hardware-item"
},
"modules": [
"battery",
"cpu",
"memory",
"disk"
]
},
"tray": {
"icon-size": 18,
"spacing": 8
},
"custom/tlp": {
"format": "{}",
"exec": "~/.config/waybar/scripts/tlp-profile.sh",
"interval": 20,
"return-type": "json",
},
"custom/power": {
"format": "⏻",
"tooltip": false,
"on-click": "wlogout --protocol layer-shell"
},
"backlight": {
"device": "amdgpu_bl0",
"format": "{icon} {percent}%",
"format-icons": ["", ""],
"reverse-scrolling": true,
"on-scroll-up": "brightnessctl set +2%",
"on-scroll-down": "brightnessctl set 2%-"
},
"systemd-failed-units": {
"hide-on-ok": false, // Do not hide if there is zero failed units.
"format": "✗ {nr_failed}",
"format-ok": "✓",
"system": true, // Monitor failed systemwide units.
"user": false // Ignore failed user units.
},
"disk": {
"interval": 30,
"format": "Only {percentage_free}% remaining on {path}",
"path": "/"
},
"memory": {
"interval": 5,
"format": "{used:0.1f}G/{total:0.1f}G "
},
"cpu": {
"format": "{icon0} {icon1} {icon2} {icon3} {icon4} {icon5} {icon6} {icon7}",
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"]
},
"ext/workspaces": {
"format": "{icon}",
"ignore-hidden": true,
"on-click": "activate",
"on-click-right": "deactivate",
"sort-by-id": true
},
"battery": {
"bat": "BAT1",
"interval": 15,
"format": "{capacity}% {icon}",
"format-icons": {
"default": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
"charging": ["󰢟", "󰢜", "󰂆", "󰂇", "󰂈", "󰢝", "󰂉", "󰢞", "󰂊", "󰂋", "󰂅"]
}
},
"wireplumber": {
"format": "{volume}% {icon}",
"format-muted": "",
"format-icons": ["", "", ""],
"reverse-scrolling": true,
"max-volume": 100,
"scroll-step": 0.05
},
"clock": {
"interval": 60,
"format": "{:%H:%M}",
"max-length": 25
},
"mpris": {
"player": "playerctld",
"format": "{status_icon} {dynamic}",
"format-paused": "{status_icon} {dynamic}",
"format-stopped": "",
"tooltip-format": "{player}\n{title}\n{artist}",
"on-click": "playerctl play-pause",
"on-click-middle": "playerctl previous",
"on-click-right": "playerctl next",
"dynamic-order": ["title", "artist"],
"dynamic-separator": " - ",
"dynamic-len": 24,
"title-len": 20,
"artist-len": 0,
"album-len": 0,
"player-icons": {
"default": "",
"mpv": "",
"firefox": "󰈹",
"spotify": "",
"vlc": "󰕼"
},
"status-icons": {
"playing": "",
"paused": "",
"stopped": ""
}
},
"bluetooth": {
"format": " {status}",
"format-connected": " {device_alias}",
"format-connected-battery": " {device_alias} {device_battery_percentage}%",
// "format-device-preference": [ "device1", "device2" ], // preference list deciding the displayed device
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%",
"on-click": "blueman-manager"
},
"network": {
"interface": "wlp1s0",
"format": "{ifname}",
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ipaddr}/{cidr} 󰊗",
"format-disconnected": "", //An empty format will hide the module.
"tooltip-format": "{ifname} via {gwaddr} 󰊗",
"tooltip-format-wifi": "{essid} ({signalStrength}%) ",
"tooltip-format-ethernet": "{ifname} ",
"tooltip-format-disconnected": "Disconnected",
"max-length": 50
},
"custom/updates": {
"format": "{} {icon}",
"return-type": "json",
"format-icons": {
"has-updates": "󱍷",
"updated": ""
},
"exec-if": "which waybar-module-pacman-updates",
"exec": "waybar-module-pacman-updates --no-zero-output"
},
"custom/hyprwhspr": {
"format": "{}",
"exec": "/usr/lib/hyprwhspr/config/hyprland/hyprwhspr-tray.sh status",
"interval": 1,
"return-type": "json",
"exec-on-event": true,
"on-click": "/usr/lib/hyprwhspr/config/hyprland/hyprwhspr-tray.sh record",
"on-click-right": "/usr/lib/hyprwhspr/config/hyprland/hyprwhspr-tray.sh restart",
"tooltip": true
}
}