dots/.config/waybar/config
2023-10-31 23:19:24 +03:00

125 lines
3.5 KiB
Plaintext

{
"height": 30, // Waybar height (to be removed for auto height)
"layer": "top", // Waybar at top layer
"margin-top": 6,
"margin-left": 10,
"margin-bottom": 0,
"margin-right": 10,
"spacing": 5, // Gaps between modules (4px)
"modules-left": ["custom/launcher", "cpu", "memory"],
"modules-center": ["hyprland/workspaces"],
"modules-right": ["hyprland/language", "tray", "backlight", "pulseaudio", "network", "battery", "clock", "custom/power-menu"],
"hyprland/workspaces": {
"format": "{icon}",
"on-click": "activate",
"format-icons": {
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7",
"8": "8",
"9": "9",
"10": "10",
"urgent": "",
"active": "",
"default": ""
}
},
"hyprland/window": {
"format": "{}"
},
"hyprland/language": {
"format": "{}",
"format-en": "en",
"format-ru": "ru",
},
"tray": {
"spacing": 10
},
"clock": {
"format-alt": "<span color='#bf616a'> </span>{:%a %b %d}",
"format": "<span color='#bf616a'> </span>{:%I:%M %p}",
"tooltip-format": "<big>{:%B %Y}</big>\n<tt><small>{calendar}</small></tt>",
},
"cpu": {
"interval": 10,
"format": " {}%",
"max-length": 10,
"on-click": "",
},
"memory": {
"interval": 30,
"format": " {}%",
"format-alt":" {used:0.1f}G",
"max-length": 10,
},
"backlight": {
"device": "DP-1",
"format": "{icon} {percent}%",
"format-icons": ["", "", "", "", "", "", "", "", ""],
"on-click": "",
},
"network": {
"format-wifi": "直 {signalStrength}%",
"format-ethernet": " wired",
"format-disconnected": "睊",
"on-click": "bash ~/.config/waybar/scripts/rofi-wifi-menu.sh",
"format-disconnected": "Disconnected  ",
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-bluetooth": "  {volume}%",
"format-bluetooth-muted": " ",
"format-muted": "婢",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
"bluetooth": {
"on-click": "~/.config/waybar/scripts/rofi-bluetooth &",
"format": " {status}",
},
"battery": {
"bat": "BAT0",
"adapter": "ADP0",
"interval": 60,
"states": {
"warning": 30,
"critical": 15
},
"max-length": 20,
"format": "{icon} {capacity}%",
"format-warning": "{icon} {capacity}%",
"format-critical": "{icon} {capacity}%",
"format-charging": "<span font-family='Font Awesome 6 Free'></span> {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{icon} {time}",
"format-full": " {capacity}%",
"format-icons": [" ", " ", " ", " ", " "],
},
"custom/power-menu": {
"format": " <span color='#6a92d7'>⏻ </span>",
"on-click": "bash ~/.config/waybar/scripts/power-menu/powermenu.sh",
},
"custom/launcher": {
"format": " <span color='#6a92d7'> </span>",
"on-click": "rofi -show drun",
},
}