105 lines
3.6 KiB
Text
105 lines
3.6 KiB
Text
{
|
|
"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
|
|
"modules-left": ["hyprland/workspaces"], // ,"hyprland/window"
|
|
// "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": {
|
|
"format": " {usage}%",
|
|
},
|
|
"memory": {
|
|
"format": " {}%"
|
|
},
|
|
"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}%",
|
|
"format-icons": ["", "", "", "", "", "", "", "", ""]
|
|
},
|
|
"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",
|
|
"format-icons": [" ", " ", " ", " ", " "]
|
|
},
|
|
"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": "",
|
|
"default": ["", "", " "]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"custom/spotify": {
|
|
"interval": 1,
|
|
"return-type": "json",
|
|
"exec": "~/.config/waybar/modules/spotify.sh",
|
|
"exec-if": "pgrep spotify",
|
|
"escape": true
|
|
},
|
|
}
|
|
|