2024-02-16 23:50:01 +01:00
|
|
|
{
|
|
|
|
"layer": "top", // Waybar at top layer
|
|
|
|
"position": "top", // Waybar at the bottom of your screen
|
|
|
|
"height": 24, // Waybar height
|
|
|
|
// "width": 1366, // Waybar width
|
|
|
|
// Choose the order of the modules
|
2024-02-17 13:36:06 +01:00
|
|
|
"modules-left": ["hyprland/workspaces"],
|
2024-02-16 23:50:01 +01:00
|
|
|
"modules-center": ["hyprland/window"],
|
2024-02-17 14:31:00 +01:00
|
|
|
"modules-right": ["pulseaudio", "custom/VPN", "network", "custom/bandwidth", "cpu", "memory", "battery", "tray", "clock"],
|
2024-02-16 23:50:01 +01:00
|
|
|
"hyprland/workspaces": {
|
|
|
|
"disable-scroll": true,
|
|
|
|
"all-outputs": false,
|
2024-02-17 22:11:38 +01:00
|
|
|
"on-click": "activate",
|
2024-02-16 23:50:01 +01:00
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
2024-02-17 22:11:38 +01:00
|
|
|
"1": "",
|
|
|
|
"2": "",
|
|
|
|
"3": "",
|
|
|
|
"4": "4",
|
|
|
|
"5": "5",
|
|
|
|
"6": "6",
|
|
|
|
"7": "7",
|
|
|
|
"8": "8",
|
|
|
|
"9": "9",
|
|
|
|
"0": "0",
|
2024-02-16 23:50:01 +01:00
|
|
|
"urgent": "",
|
|
|
|
"focused": "",
|
|
|
|
"default": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tray": {
|
|
|
|
// "icon-size": 21,
|
|
|
|
"spacing": 10
|
|
|
|
},
|
|
|
|
"clock": {
|
|
|
|
"format-alt": "{:%Y-%m-%d}"
|
|
|
|
},
|
|
|
|
"cpu": {
|
|
|
|
"format": "{usage}% "
|
|
|
|
},
|
|
|
|
"memory": {
|
|
|
|
"format": "{}% "
|
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
// "bat": "BAT0",
|
|
|
|
"states": {
|
|
|
|
// "good": 95,
|
2024-02-17 22:11:38 +01:00
|
|
|
"warning": 20,
|
|
|
|
"critical": 10
|
2024-02-16 23:50:01 +01:00
|
|
|
},
|
|
|
|
"format": "{capacity}% {icon}",
|
|
|
|
"format-alt": "{time} {icon}",
|
|
|
|
"format-icons": ["", "", "", "", ""]
|
|
|
|
},
|
|
|
|
"network": {
|
|
|
|
// "interface": "wlp2s0", // (Optional) To force the use of this interface
|
2024-02-17 13:36:06 +01:00
|
|
|
"format-wifi": "{essid} ({signalStrength}) ",
|
2024-02-16 23:50:01 +01:00
|
|
|
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
|
|
|
"format-disconnected": "Disconnected ⚠"
|
|
|
|
},
|
2024-02-17 13:36:06 +01:00
|
|
|
"custom/bandwidth": {
|
|
|
|
"exec": "$HOME/.config/waybar/scripts/bandwidth"
|
|
|
|
},
|
2024-02-17 14:31:00 +01:00
|
|
|
"custom/VPN": {
|
|
|
|
"format": "{}",
|
|
|
|
"interval": 5,
|
|
|
|
"max-length": 20,
|
|
|
|
"exec": "$HOME/.config/waybar/scripts/vpn"
|
|
|
|
},
|
2024-02-16 23:50:01 +01:00
|
|
|
"pulseaudio": {
|
|
|
|
//"scroll-step": 1,
|
|
|
|
"format": "{volume}% {icon}",
|
|
|
|
"format-bluetooth": "{volume}% {icon}",
|
|
|
|
"format-muted": "",
|
|
|
|
"format-icons": {
|
|
|
|
"headphones": "",
|
|
|
|
"handsfree": "",
|
|
|
|
"headset": "",
|
|
|
|
"phone": "",
|
|
|
|
"portable": "",
|
|
|
|
"car": "",
|
|
|
|
"default": ["", ""]
|
|
|
|
},
|
|
|
|
"on-click": "pavucontrol"
|
|
|
|
},
|
|
|
|
"custom/spotify": {
|
|
|
|
"format": " {}",
|
|
|
|
"max-length": 40,
|
|
|
|
"interval": 30, // Remove this if your script is endless and write in loop
|
|
|
|
"exec": "$HOME/.config/waybar/mediaplayer.sh 2> /dev/null", // Script in resources folder
|
|
|
|
"exec-if": "pgrep spotify"
|
|
|
|
}
|
|
|
|
}
|