Nixos-Config/configs/waybar/config
2026-04-21 22:49:55 -03:00

198 lines
6.1 KiB
Text

{
"layer": "top",
"position": "top",
"fixed-center": true,
"height": 48,
"margin-top": 20,
"margin-bottom": 0,
"output": ["DP-5", "DP-3"],
"modules-left": ["hyprland/workspaces", "cava"],
"modules-center": ["custom/ac", "clock"],
"modules-right": [
"custom/spotify",
"network",
"bluetooth",
"pulseaudio",
"backlight",
"battery",
"custom/poweroff"
],
"group/power": {
"orientation": "inherit",
"drawer": {
"transition-duration": 500,
"transition-left-to-right": false
},
"modules": [
"custom/poweroff",
"custom/restart",
"custom/exit",
"custom/sleep",
"custom/lock"
]
},
"custom/poweroff": {
"format": "",
"on-click": "poweroff"
},
"custom/restart": {
"format": "󰑐",
"on-click": "reboot"
},
"custom/exit": {
"format": "󰗼",
"on-click": "hyprctl dispatch exit"
},
"custom/sleep": {
"format": "󰤄",
"on-click": "systemctl suspend"
},
"custom/lock": {
"format": "",
"on-click": "hyprlock"
},
"custom/kde": {
"format": "",
"on-click": "hyprlock"
},
"hyprland/workspaces": {
"all-outputs": false,
"active-only": false,
"persistent-workspaces": {
"DP-3": [1, 2, 3, 4, 5, 6, 7, 8, 9],
"DP-5": [1, 2, 3, 4, 5, 6, 7, 8, 9],
"HDMI-A-1": [10]
},
"format": "{icon}",
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "󰯉",
"5": "󰭹",
"6": "",
"7": "",
"8": "",
"9": "",
"10": ""
},
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1"
},
"clock": {
"format": "{:%d/%m/%Y - %H:%M}",
"tooltip": false,
"locale": "pt_BR.utf8"
},
"cpu": {
"interval": 5,
"format": "︁ {}%",
"max-length": 10
},
"cava": {
"framerate": 60,
"hide_on_silence": true,
"bars": 10,
"source": "auto",
"method": "pipewire",
"stereo": true,
"bar_delimiter": 0,
"monstercat": false,
"waves": true,
"noise_reduction": 0.2,
"sleep_timer": 1,
"input_delay": 0,
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
"actions": {
"on-click-right": "mode"
}
},
"memory": {
"interval": 15,
"format": "︁ {used:0.1f}G/{total:0.1f}G",
"tooltip": false
},
"pulseaudio": {
"format": "{icon}",
"format-bluetooth": "{icon}",
"format-muted": "",
"format-icons": {
"alsa_output.pci-0000_05_00.6.analog-stereo": "󰋋",
"analog-output-lineout": "󰋋",
"analog-output-headphones": "󰋋",
"Ryzen HD Audio Controller": "󰋋",
// "headphone": "󰋋",
// "hands-free": "󰋋",
// "headset": "󱡒",
// "phone": "",
// "portable": "",
// "car": "",
"default": ["󰕿", "󰖀", "󰖀", "󰕾", "󰕾", "󰕾"]
},
"scroll-step": 10,
"on-click": "pavucontrol",
"on-click-right": "~/.config/waybar/switch_sink.sh",
"ignored-sinks": ["Easy Effects Sink"],
"tooltip-format": "{icon} {volume}"
},
"bluetooth": {
"format": "󰂯",
"format-connected": "󰂱",
"format-connected-battery": "󰂱",
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
"tooltip-format-connected": "{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": "bluetoothctl disconnect",
"on-click-right": "bluetoothctl connect B6:97:1A:3D:6A:B2"
},
"backlight": {
"device": "intel_backlight",
"format": "{icon}",
"scroll-step": 5,
"format-icons": ["󰃛", "󰃜", "󰃝", "󰃞", "󰃟", "󰃠"]
},
"custom/spotify": {
"exec": "~/.config/waybar/spotify_status.sh",
"interval": 2,
"format": "{}",
"return-type": "text",
"on-click": "playerctl -p $(playerctl -l | rg '^spotifyd\\.instance' -m1) play-pause",
"on-click-middle": "playerctl -p $(playerctl -l | rg '^spotifyd\\.instance' -m1) previous",
"on-click-right": "playerctl -p $(playerctl -l | rg '^spotifyd\\.instance' -m1) next",
"on-scroll-up": "playerctl -p $(playerctl -l | rg '^spotifyd\\.instance' -m1) volume 0.1+",
"on-scroll-down": "playerctl -p $(playerctl -l | rg '^spotifyd\\.instance' -m1) volume 0.1-"
},
"battery": {
"format": "{icon} ",
"format-icons": ["", "", "", "", ""],
"format-charging": "{icon}",
"format-full": "{icon}",
"interval": 15,
"states": {
"warning": 25,
"critical": 10
},
"tooltip": false
},
"network": {
"format": "{icon}",
"format-alt": "󰲝 {ipaddr}",
"format-alt-click": "click-left",
"format-wifi": " ",
"format-ethernet": "󰲝",
"format-disconnected": "⚠",
"tooltip": false
},
"custom/ac": {
"exec": "~/.config/waybar/air_control.py",
"interval": 3,
"return-type": "json",
"markup": "true",
"on-click": "~/.config/waybar/air_control.py toggle",
"on-click-right": "~/.config/waybar/air_control.py cycle-mode",
"on-click-middle": "~/.config/waybar/air_control.py cycle-fan",
"on-scroll-up": "~/.config/waybar/air_control.py up",
"on-scroll-down": "~/.config/waybar/air_control.py down"
}
}