dotfiles/.config/waybar/config

109 lines
2.5 KiB
Plaintext
Raw Normal View History

{
// "layer": "top", // Waybar at top layer
"position": "top",
"height": 39,
"width": 1895,
"spacing": 10,
"modules-left": ["hyprland/window","pulseaudio"],
"modules-center": ["wlr/workspaces"],
"modules-right": ["custom/cmus", "custom/weather", "tray", "battery", "custom/language", "clock"],
"wlr/workspaces": {
"format": "{icon}",
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1",
"on-click": "activate",
"all-outputs": false,
"format": "{icon}",
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"6": "",
"urgent": "",
"focused": "",
"default": ""
}
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"tray": {
"spacing": 10,
"icon-size": 15
},
"clock": {
"format": "{:%I:%M %p}",
"format-alt": "{:%Y-%m-%d %I:%M %p}"
},
"custom/cmus": {
"format": " {}",
"max-length": 45,
"interval": 10,
"exec": "cmus-remote -C \"format_print '%F'\"",
"exec-if": "pgrep cmus",
"on-click": "cmus-remote -u",
"on-scroll-up": "cmus-remote --next",
"on-scroll-down": "cmus-remote --prev",
"escape": true
},
"custom/weather": {
"format": "{}",
"exec": "~/.config/waybar/openweathermap-simple.sh",
// "exec": "curl 'https://wttr.in/?format=1'",
"interval": 3600
},
"hyprland/window": {
"format": "{}",
"separate-outputs": false,
"max-length": 20
},
"custom/language": {
"exec": "~/.config/hypr/scripts/kb_hypr",
"interval": 1,
"format": " {}",
},
"battery": {
"states": {
"good": 60,
"warning": 40,
"critical": 30
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-full": " full charged",
"format-warning": " {capacity}%",
"format-critical": " {capacity}%",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""]
},
"pulseaudio": {
"scroll-step": 1,
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon} ",
"format-bluetooth-muted": " {icon} ",
"format-muted": "",
"format-source": "",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"default": ["", "", ""]
},
"on-click": "pkill pulsemixer; foot -e pulsemixer"
}
}