2023-11-11 13:00:22 +00:00
|
|
|
{
|
|
|
|
"layer": "top", // Waybar at top layer
|
|
|
|
"position": "top", // Waybar position (top|bottom|left|right)
|
|
|
|
"height": 20, // Waybar height (to be removed for auto height)
|
|
|
|
//"spacing": 4, // Gaps between modules (4px)
|
|
|
|
// Choose the order of the modules
|
2023-11-28 07:34:18 +00:00
|
|
|
"modules-left": ["hyprland/workspaces"], // ,"hyprland/window"
|
2023-11-11 13:00:22 +00:00
|
|
|
// "modules-center": ["cava"],
|
|
|
|
"modules-right": ["custom/spotify", "network", "cpu", "memory", "temperature", "backlight", "pulseaudio", "battery", "tray", "clock"],
|
|
|
|
// Modules configuration
|
|
|
|
"hyprland/workspaces": {
|
|
|
|
"format": "{name}",
|
|
|
|
"on-scroll-up": "hyprctl dispatch workspace e+1",
|
|
|
|
"on-scroll-down": "hyprctl dispatch workspace e-1",
|
|
|
|
"on-click": "activate"
|
|
|
|
},
|
|
|
|
"keyboard-state": {
|
|
|
|
"numlock": true,
|
|
|
|
"capslock": false,
|
|
|
|
"format": "{name} {icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"locked": "",
|
|
|
|
"unlocked": " "
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tray": {
|
|
|
|
// "icon-size": 21,
|
|
|
|
"spacing": 10
|
|
|
|
},
|
|
|
|
"clock": {
|
|
|
|
"timezone": "Europe/Berlin",
|
|
|
|
"tooltip-format": "<big>{:%Y %B %d}</big>\n<tt><small>{calendar}</small></tt>",
|
|
|
|
"format-alt": "{:%F %R}",
|
|
|
|
"format": "{:%I:%M %p}",
|
|
|
|
},
|
|
|
|
"cpu": {
|
2024-06-12 01:34:17 +00:00
|
|
|
"format": " {usage}%",
|
2023-11-11 13:00:22 +00:00
|
|
|
},
|
|
|
|
"memory": {
|
2024-06-12 01:34:17 +00:00
|
|
|
"format": " {}%"
|
2023-11-11 13:00:22 +00:00
|
|
|
},
|
|
|
|
"temperature": {
|
|
|
|
"thermal-zone": 2,
|
|
|
|
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
|
|
|
|
"critical-threshold": 80,
|
|
|
|
"format-critical": "{icon} {temperatureC}°C",
|
|
|
|
"format": "{icon} {temperatureC}°C",
|
|
|
|
"format-icons": ["", "", ""]
|
|
|
|
},
|
|
|
|
"backlight": {
|
|
|
|
// "device": "acpi_video1",
|
|
|
|
"format": "{icon} {percent}%",
|
2024-06-12 01:34:17 +00:00
|
|
|
"format-icons": [" ", " ", " ", " ", " ", " ", " ", " ", " "]
|
2023-11-11 13:00:22 +00:00
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"states": {
|
|
|
|
// "good": 95,
|
|
|
|
"warning": 20,
|
|
|
|
"critical": 5
|
|
|
|
},
|
|
|
|
"format": "{icon} {capacity}%",
|
|
|
|
"format-charging": " {capacity}%",
|
|
|
|
"format-plugged": " {capacity}%",
|
|
|
|
"format-alt": "{icon} {time}",
|
|
|
|
// "format-good": "", // An empty format will hide the module
|
|
|
|
"format-full": "Full",
|
2024-04-03 15:23:16 +00:00
|
|
|
"format-icons": [" ", " ", " ", " ", " "]
|
2023-11-11 13:00:22 +00:00
|
|
|
},
|
|
|
|
"network": {
|
|
|
|
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
|
|
|
"format-wifi": "{signalStrength}% ", // "{essid} ({signalStrength}%) "
|
|
|
|
"format-ethernet": "LAN ", // "{ipaddr}/{cidr} "
|
|
|
|
"tooltip-format": "{ifname} in {essid} via {gwaddr} as {ipaddr}/{cidr} ", // "{ifname} via {gwaddr} "
|
|
|
|
"format-linked": "No IP ", // "{ifname} (No IP) "
|
|
|
|
"format-disconnected": "D/C ⚠", // "Disconnected ⚠"
|
|
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}" // "{ifname}: {ipaddr}/{cidr}"
|
|
|
|
},
|
|
|
|
"pulseaudio": {
|
|
|
|
// "scroll-step": 1, // %, can be a float
|
|
|
|
"format": "{icon} {volume}%",
|
|
|
|
"format-bluetooth": " {icon} {volume}%",
|
|
|
|
"format-bluetooth-muted": " {icon}",
|
|
|
|
"format-muted": " ",
|
|
|
|
"format-source": " {volume}%",
|
|
|
|
"format-source-muted": "",
|
|
|
|
"format-icons": {
|
|
|
|
// "headphone": "",
|
|
|
|
// "hands-free": "",
|
|
|
|
// "headset": "",
|
|
|
|
// "phone": "",
|
|
|
|
// "portable": "",
|
|
|
|
// "car": "",
|
2024-06-12 01:34:17 +00:00
|
|
|
"default": [" ", " ", " "]
|
2023-11-11 13:00:22 +00:00
|
|
|
},
|
|
|
|
"on-click": "pavucontrol"
|
|
|
|
},
|
|
|
|
"custom/spotify": {
|
|
|
|
"interval": 1,
|
|
|
|
"return-type": "json",
|
|
|
|
"exec": "~/.config/waybar/modules/spotify.sh",
|
|
|
|
"exec-if": "pgrep spotify",
|
|
|
|
"escape": true
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|