[{
"output": "DP-1",
"layer": "top",
"modules-left": ["hyprland/workspaces", "hyprland/mode"],
"modules-center": ["hyprland/window"],
"modules-right": ["mpris"],
"mpris": {
"format": "{player_icon} {dynamic}",
"format-paused": "{status_icon} {dynamic}",
"tooltip-format": " {artist}: {title} ( {album})",
"interval": 1,
"album-len": 0,
"player-icons": {
"default": "",
"mpv": ""
},
"status-icons": {
"paused": ""
},
// "ignored-players": ["firefox"]
},
"hyprland/window": {
"format": "{title} ",
"max-length": 60,
"icon": true,
"icon-size": 20,
"all-outputs" : true,
},
// "hyprland/workspaces": {
// "format": "{icon}",
// "on-click": "activate",
// "format-icons": {
// "1": "",
// "2": "",
// "3": "",
// "4": "",
// "5": "",
// "6": "",
// },
// "sort-by-number": true
//},
}, {
"output": "eDP-1",
"layer": "top",
"modules-left": ["hyprland/workspaces", "hyprland/mode"],
"modules-center": ["custom/gpu-usage", "cpu", "memory", "temperature", "network#wifi", "network#lan", "custom/vpn", "clock", "custom/weather", "idle_inhibitor", "custom/pacman", "battery", "battery#2", "bluetooth", "backlight", "disk", "disk#disk2", "disk#disk3", "disk#disk4"],
/* "modules-right": ["tray", "pulseaudio",], */
"modules-right": ["tray", "pulseaudio", "group/group-power"],
"hyprland/mode": {
"format": " {}"
},
"hyprland/workspaces": {
"format": "{icon}",
"on-click": "activate",
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"6": "",
"7": "",
"8": "",
},
"sort-by-number": true
},
"custom/pacman": {
"format": " {}",
"tooltip": false,
"interval": 60,
"exec": "checkupdates | wc -l",
"exec-if": "exit 0",
"signal": 8
},
"backlight": {
"device": "intel_backlight",
"format": "{icon} {percent}%",
"format-icons": ["", "", ""]
},
"battery": {
"bat": "BAT1",
"weighted-average": true,
"interval": 60,
"full-at": 84,
"states": {
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-icons": ["", "", "", "", ""],
"max-length": 25
},
"battery#2": {
"bat": "BAT0",
"weighted-average": true,
"interval": 60,
"full-at": 84,
"states": {
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-icons": ["", "", "", "", ""],
"max-length": 25
},
"group/group-power": {
"orientation": "inherit",
"drawer": {
"transition-duration": 500,
"children-class": "not-power",
"transition-left-to-right": false,
},
"modules": [
"custom/power",
"custom/lock",
"custom/reboot",
]
},
"custom/lock": {
"format": " ",
"tooltip": false,
"on-click": "hyprlock"
},
"custom/reboot": {
"format": " ",
"tooltip": false,
"on-click": "shutdown -r now"
},
"custom/power": {
"format": " ",
"tooltip": false,
"on-click": "shutdown -h now"
},
"network#lan": {
"interface": "enp0s31f6",
"format": "",
"interval": 1,
"format-ethernet": " {ifname}",
"format-disconnected": "",
"max-length": 50,
"tooltip-format": "speed: {bandwidthDownBytes} / {bandwidthUpBytes}",
"on-click": "kitty --class nmnet --single-instance -e nmtui",
"on-click-right": "nm-connection-editor"
},
"network#wifi": {
"interface": "wlp3s0",
"format": "",
"interval": 1,
"format-wifi": " {essid} ({signalStrength}%) ",
"format-disconnected": "",
"max-length": 50,
"tooltip-format": "speed: {bandwidthDownBytes} / {bandwidthUpBytes}",
"on-click": "kitty --class nmnet --single-instance -e nmtui",
"on-click-right": "nm-connection-editor"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
},
"on-click": "toggleRemote"
},
"tray": {
"icon-size": 20,
"spacing": 6
},
"clock": {
"format": " {:%I:%M:%OS}",
"interval": 1,
"tooltip-format": " {:%d/%m/%y}",
// "format-alt": "{:%Y-%m-%d}"
"on-click": "gsimplecal"
},
"cpu": {
"interval": 10,
"format": "{icon} {usage}%",
"format-icons": [""]
},
"memory": {
"format": "{icon} {percentage}%",
"format-icons": [""]
},
"temperature": {
// "thermal-zone": 2,
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
// "critical-threshold": 80,
// "format-critical": " {temperatureC}°C",
"format": " {temperatureC}°C",
"tooltip": false,
},
"disk": {
"interval": 30,
"format": " /: {percentage_used}%",
"path": "/"
},
"disk#disk2": {
"interval": 30,
"format": " ~: {percentage_used}%",
"path": "/home/peter"
},
"disk#disk3": {
"interval": 30,
"format": " SSD: {percentage_used}%",
"path": "/mnt/SSD"
},
"disk#disk4": {
"interval": 30,
"format": " Backups: {percentage_used}%",
"path": "/mnt/Backups"
},
"pulseaudio": {
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": "0% {icon}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", "", ""]
},
"on-click": "pavucontrol"
},
"bluetooth": {
"format": " {status}",
"format-connected": " connected",
"format-connected-battery": " Connected {device_battery_percentage}%",
"on-click": "blueman-manager",
// "format-device-preference": [ "device1", "device2" ], // preference list deciding the displayed device
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%"
},
"custom/vpn": {
"format": " VPN",
"tooltip": false,
"exec": "echo '{\"class\": \"connected\"}'",
"exec-if": "test -d /proc/sys/net/ipv4/conf/tun0",
"return-type": "json",
"on-click": "kitty --class nmnet --single-instance -e nmtui",
"interval": 5
},
"custom/weather": {
"exec": "python ~/.config/waybar/scripts/weather.py",
"restart-interval": 300,
"format": "{}",
"return-type": "json",
"on-click": "xdg-open https://weather.com/en-IN/weather/today/l/e42bb25a58c2e689ec85e632d82e69d7e46c82defb9ad7a5551b6c3a70fbc282"
// "format-alt": "{alt}",
},
"custom/gpu-usage": {
"exec": "cat /sys/class/hwmon/hwmon1/device/gpu_busy_percent",
"format": " {}%",
"return-type": "",
"interval": 1,
"tooltip": false
},
}]