Files
dotfiles/.config/waybar/config.jsonc
2025-05-07 19:20:06 +02:00

125 lines
3.4 KiB
JSON

{
"layer": "top",
"position": "top",
"mod": "dock",
"exclusive": true,
"passthrough": false,
"gtk-layer-shell": true,
"height": 50,
"modules-left": ["custom/launch_wofi","hyprland/workspaces","cpu","memory","disk","clock"],
"modules-center": ["wlr/taskbar"],
"modules-right": ["network","battery","backlight","pulseaudio","pulseaudio#microphone","tray"],
"hyprland/window": {
"format": "{}"
},
"custom/launch_wofi": {
"format": "",
"on-click": "sh -c '(killall wofi; wofi --show drun)' & disown",
"tooltip": false
},
"cpu": {
"interval": 10,
"format": " {usage}%",
"max-length": 10
},
"disk": {
"interval": 30,
"format": "󰋊 {percentage_used}%",
"path": "/",
"tooltip": true,
"tooltip-format": "HDD - {used} used out of {total} on {path} ({percentage_used}%)"
},
"memory": {
"interval": 30,
"format": " {}%",
"max-length": 10,
"tooltip": true,
"tooltip-format": "Memory - {used:0.1f}GB used"
},
"wlr/taskbar": {
"format": "{icon}",
"icon-size": 18,
"spacing": 0,
"on-click-middle" : "close",
"tooltip-format": "{title}",
"on-click": "activate"
},
"tray": {
"icon-size": 18,
"spacing": 10
},
"clock": {
"format": "{:%H:%M}  ",
"tooltip-format": "{:%A, %B %d, %Y}",
},
"backlight": {
"device": "intel_backlight",
"format": "{icon} {percent}%",
"format-icons": ["󰃞", "󰃟", "󰃠"],
"on-scroll-up": "~/.config/HyprV/waybar/scripts/brightness --inc",
"on-scroll-down": "~/.config/HyprV/waybar/scripts/brightness --dec",
"min-length": 6
},
"network": {
/* "format-wifi": "直", */
"format-wifi": " {icon}",
"format-ethernet": " ",
"format-disconnected": "睊",
"tooltip-format": "{essid}",
"on-click": "nm-connection-editor",
"format-icons": ["󰤯 ","󰤟 ","󰤢 ","󰤢 ","󰤨 "]
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 20
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{time} {icon}",
"format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"]
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-muted": "",
"on-click": "pavucontrol",
"on-scroll-up": "wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+",
"on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-",
"scroll-step": 5,
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
}
},
"pulseaudio#microphone": {
"format": "{format_source}",
"format-source": " {volume}%",
"format-source-muted": "",
"on-click": "pavucontrol",
"on-scroll-up": "wpctl set-volume -l 1 @DEFAULT_AUDIO_SOURCE@ 5%+",
"on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%-",
"scroll-step": 5
}
}