142 lines
3.8 KiB
Plaintext
Raw Normal View History

2024-12-04 21:36:23 +04:00
{
"reload_style_on_change": true,
"layer": "top", // Waybar at top layer
"position": "top", // Waybar at the bottom of your screen
// Bar height is based on the css font size. Don't forget to change the tray icon size!
2024-12-04 21:36:23 +04:00
// "width": 1366, // Waybar width
// Choose the order of the modules
"modules-left": ["hyprland/workspaces", "tray", "hyprland/language"],
2024-12-06 00:16:46 +04:00
"modules-right": ["pulseaudio#mic", "pulseaudio", "network", "cpu", "memory", "battery", "clock", "group/power"],
2024-12-04 21:36:23 +04:00
"modules-center": ["hyprland/window"],
"hyprland/language": {
"format": "{}",
"format-en": "En",
"format-ru": "Ru",
},
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"active-only": false,
2025-02-16 22:38:25 +04:00
"show-special": false,
2024-12-05 15:22:32 +04:00
"format": "{name}"
2024-12-04 21:36:23 +04:00
},
2024-12-06 00:16:46 +04:00
"hyprland/window": {
"format": "{}",
"icon": false,
"separate-outputs": true
},
2024-12-04 21:36:23 +04:00
"tray": {
"icon-size": 17,
2024-12-04 21:36:23 +04:00
"spacing": 10
},
"clock": {
"interval": 5,
2024-12-04 21:36:23 +04:00
"format-alt": "{:%Y-%m-%d}",
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode" : "month",
"mode-mon-col" : 3,
"weeks-pos" : "right",
"on-scroll" : 1,
"format": {
"months": "<span color='#ffead3'><b>{}</b></span>",
"days": "<span color='#ecc6d9'><b>{}</b></span>",
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
}
2024-12-04 21:36:23 +04:00
}
},
"cpu": {
2025-03-04 23:51:02 +04:00
"format": "{usage}%  ",
"interval": 5,
"on-click": "hyprctl dispatch exec \"[float] foot -W 80x24 btm\""
2024-12-04 21:36:23 +04:00
},
"memory": {
2025-03-04 23:51:02 +04:00
"format": "{}%  ",
"interval": 5,
"on-click": "hyprctl dispatch exec \"[float] foot -W 80x24 btm\""
2024-12-04 21:36:23 +04:00
},
"battery": {
"interval": 5,
2024-12-04 21:36:23 +04:00
"states": {
"good": 90,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": [" ", " ", " ", " ", " "]
2024-12-04 21:36:23 +04:00
},
"network": {
// "interface": "wlp2s0", // (Optional) To force the use of this interface
"interval": 10,
"format-wifi": "{essid} ({signalStrength}%)  ",
"format-ethernet": "{ifname}  ",
"format-disconnected": "Disconnected ⚠ ",
"tooltip-format": "{ipaddr}/{cidr}",
"on-click": "hyprctl dispatch exec \"[float] foot -W 80x24 nmtui\""
2024-12-04 21:36:23 +04:00
},
"pulseaudio": {
"scroll-step": 1,
"format": "{volume}% {icon} ",
"format-bluetooth": "{volume}% {icon} ",
"format-muted": " ",
2024-12-04 21:36:23 +04:00
"format-icons": {
"headphones": " ",
"handsfree": " ",
"headset": " ",
"phone": " ",
"portable": " ",
"car": " ",
"default": [" ", " "]
2024-12-04 21:36:23 +04:00
},
"on-click": "pavucontrol"
},
2024-12-06 00:16:46 +04:00
"pulseaudio#mic": {
"scroll-step": 0,
"format": "{format_source}",
"format-source": " ",
"format-source-muted": " ",
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
},
2024-12-04 21:36:23 +04:00
"group/power": {
"orientation": "inherit",
"drawer": {
"transition-duration": 500,
"children-class": "not-power",
"transition-left-to-right": false,
},
"modules": [
"custom/power", // First element is the "group leader" and won't ever be hidden
"custom/lock",
2025-02-16 22:38:25 +04:00
"custom/exit",
2024-12-04 21:36:23 +04:00
"custom/reboot",
]
},
"custom/exit": {
"format": " 󰗼 ",
"tooltip": false,
2025-02-16 22:38:25 +04:00
"on-click": "bash ~/.config/waybar/scripts/confirm.sh \"hyprctl dispatch exit\""
2024-12-04 21:36:23 +04:00
},
"custom/lock": {
"format": " 󰍁 ",
"tooltip": false,
"on-click": "hyprlock"
},
"custom/reboot": {
"format": " 󰜉 ",
"tooltip": false,
2025-02-16 22:38:25 +04:00
"on-click": "bash ~/.config/waybar/scripts/confirm.sh \"reboot\""
2024-12-04 21:36:23 +04:00
},
"custom/power": {
"format": "  ",
2024-12-04 21:36:23 +04:00
"tooltip": false,
2025-02-16 22:38:25 +04:00
"on-click": "bash ~/.config/waybar/scripts/confirm.sh \"shutdown now\""
2024-12-04 21:36:23 +04:00
}
}