108 lines
3.3 KiB
Plaintext
108 lines
3.3 KiB
Plaintext
{
|
|
"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
|
|
"modules-left": ["hyprland/workspaces"],
|
|
"modules-center": ["hyprland/window"],
|
|
"modules-right": ["pulseaudio", "custom/VPN", "network", "custom/bandwidth", "cpu", "memory", "battery", "tray", "custom/notifications", "clock"],
|
|
"hyprland/workspaces": {
|
|
"disable-scroll": true,
|
|
"all-outputs": false,
|
|
"on-click": "activate",
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"1": "",
|
|
"2": "",
|
|
"3": "",
|
|
"4": "",
|
|
"5": "5",
|
|
"6": "6",
|
|
"7": "7",
|
|
"8": "8",
|
|
"9": "9",
|
|
"0": "0",
|
|
"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,
|
|
"warning": 20,
|
|
"critical": 10
|
|
},
|
|
"format": "{capacity}% {icon}",
|
|
"format-alt": "{time} {icon}",
|
|
"format-icons": ["", "", "", "", ""]
|
|
},
|
|
"network": {
|
|
// "interface": "wlp2s0", // (Optional) To force the use of this interface
|
|
"format-wifi": "{essid} ({signalStrength}%) ",
|
|
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
|
"format-disconnected": "Disconnected ⚠"
|
|
},
|
|
"custom/bandwidth": {
|
|
"exec": "$HOME/.config/waybar/scripts/bandwidth"
|
|
},
|
|
"custom/VPN": {
|
|
"format": "{}",
|
|
"interval": 5,
|
|
"return-type": "json",
|
|
"exec": "$HOME/.config/waybar/scripts/vpn",
|
|
"on-click": "$HOME/.config/waybar/scripts/vpn-toggle"
|
|
},
|
|
"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/notification": {
|
|
"tooltip": false,
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"notification": "<span foreground='red'><sup></sup></span>",
|
|
"none": "",
|
|
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
|
"dnd-none": "",
|
|
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
|
"inhibited-none": "",
|
|
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
|
"dnd-inhibited-none": ""
|
|
},
|
|
"return-type": "json",
|
|
"exec-if": "which swaync-client",
|
|
"exec": "swaync-client -swb",
|
|
"on-click": "swaync-client -t -sw",
|
|
"on-click-right": "swaync-client -d -sw",
|
|
"escape": true
|
|
},
|
|
}
|