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-18 12:45:44 +01:00
|
|
|
"modules-right": ["pulseaudio", "custom/VPN", "network", "custom/bandwidth", "cpu", "memory", "battery", "tray", "custom/notifications", "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": "",
|
|
|
|
"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-18 12:45:44 +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,
|
2024-02-18 12:45:44 +01:00
|
|
|
"return-type": "json",
|
|
|
|
"exec": "$HOME/.config/waybar/scripts/vpn",
|
|
|
|
"on-click": "$HOME/.config/waybar/scripts/vpn-toggle"
|
2024-02-17 14:31:00 +01:00
|
|
|
},
|
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"
|
|
|
|
},
|
2024-02-18 12:45:44 +01:00
|
|
|
"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
|
|
|
|
},
|
2024-02-16 23:50:01 +01:00
|
|
|
}
|