Files
dotfilesv2/waybar/config.jsonc
2026-03-28 16:48:16 +00:00

124 lines
3.3 KiB
JSON

{
"position": "bottom",
"modules-left": ["custom/arch", "hyprland/workspaces", "hyprland/window"],
"modules-center": ["clock"],
"modules-right": ["group/tray-drawer", "hyprland/language", "battery", "temperature"],
"group/tray-drawer": {
"orientation": "horizontal",
"drawer": {
"transition-duration": 500,
"children-class": "tray-child",
"transition-left-to-right": false, // Поменяйте на true, если панель слева
},
"modules": [
"custom/tray-arrow", // Иконка-стрелочка (первый элемент всегда виден)
"tray" // Сам трей (будет скрыт)
]
},
"custom/tray-arrow": {
"format": " ", //Иконка стрелочки (нужен шрифт Nerd Fonts)
"tooltip": false
},
"tray": {
"spacing": 10
},
"hyprland/language": {
"tooltip": false,
"format-ru": " RU",
"format-en": " US",
},
"custom/music": {
"format": "{icon} {text}",
"return-type": "json",
"max-length": 40,
"exec": "playerctl -a metadata --format '{\"text\": \"{{artist}} - {{title}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(artist)}} - {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
"on-click": "~/.config/eww/music/toggle_music.sh",
"format-icons": {
"Playing": "",
"Paused": ""
}
},
"custom/minimized": {
"format": "  ",
"tooltip": true,
"tooltip-format": "Открыть скрытые приложения",
"on-click": "~/.config/hypr/scripts/restore_window.sh"
},
"cava": {
"framerate": 60,
"sleep_timer": 1,
"format_silent" : "",
"autosens": 0,
"sensitivity": 1000,
"bars": 12,
"lower_cutoff_freq": 50,
"higher_cutoff_freq": 10000,
// "hide_on_silence": true,
"method": "pulse",
"source": "auto",
"stereo": true,
"reverse": false,
"bar_delimiter": 0,
"monstercat": false,
"noise_reduction": 0.37,
"input_delay": 0,
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
"actions": {
"on-click-right": "mode",
},
},
"battery": {
"states": {
"warning": 30,
"critical": 15,
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-icons": ["", "", "", "", ""],
},
"temperature": {
"interval": 1,
"critical-threshold": 80,
"warning-threshold": 65,
"format": "{icon} {temperatureC}°C",
"format-warning": " {temperatureC}°C",
"format-critical": " {temperatureC}°C",
"format-icons": ["", "", ""],
},
"clock": {
"interval": 1,
"format": "{:%H:%M:%S}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}",
},
"hyprland/workspaces": {
"format": "{id}",
"on-click": "activate",
"all-outputs": false,
"persistent_workspaces": {
"*": 5,
},
},
"custom/arch": {
"format": "",
"tooltip": "Arch Linux",
"on-click": "hyprctl dispatch exec \"[float; center] missioncenter\"",
},
}