[{ 
    "output": "DP-2", 
    "layer": "top",
    "modules-left": ["hyprland/workspaces"],
    "modules-center": ["hyprland/mode", ],
    "modules-right": ["group/taskbar", "group/group-power"],

    "group/taskbar": {
            "orientation": "inherit",
            "modules": [
                    "tray",
                    "pulseaudio"
             ]
         },
    "tray": {
        "icon-size": 20,
        "spacing": 6
    },
    "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"
    },
    "hyprland/workspaces": {
        "format": "{icon}",
        "all-outputs": true,
        "on-click": "activate",
        "format-icons": {
            "1": "󰈹",
            "2": "󰷈",
            "3": "󱇤",
            "4": "",
            "5": "",
            "6": "",
            "7": "󰟀",
            "8": "",
            "9": "󰒋",
            "10": "󱀁",
            "11": "󰇮",
            "12": "󰭹",
         },
         "sort-by-number": true
    },
   }, {
    "output": "DP-1",
    "layer": "top",  
    "modules-left": ["hyprland/mode", "hyprland/window"],
    "modules-center": ["group/statistics", "group/status", "temperature", "custom/pacman", "group/networks", "bluetooth"],
    "modules-right": ["group/audio-player"],
    /* "modules-right": ["tray", "custom/scratchpad-indicator", "pulseaudio",], */
    "hyprland/mode": {
        "format": "  󰹶  {}"
    },
    "hyprland/window": {
       "format": "<span color=\"#f8f8f2\">{title}</span>  ",
       "max-length": 60,
       "icon": true,
       "icon-size": 20,
       "all-outputs" : true,  
    },

    "group/audio-player": {
            "orientation": "inherit",
            "modules": [
                    "group/playing",
             ]
         }, 
    "group/playing": {
            "orientation": "inherit",
    "drawer": {
        "transition-duration": 500,
        "children-class": "not-power",
        "transition-left-to-right": true,
    },
            "modules": [
                    "mpris",
                    "mpris#2"
             ]
         },
"mpris": {
	"format": "<span color=\"#bd93f9\">{player_icon}</span> <span color=\"#f8f8f2\">Playing now</span>  ",
	"format-paused": "<span color=\"#bd93f9\">{status_icon}</span> <span color=\"#f8f8f2\">Paused </span>  ",
        "tooltip-format": "󰠃 {artist}:  {title} (󰀥 {album})",
        "interval": 1,
        "album-len": 0,
        "on-click": "exec ~/.bin/sh/dunstaudio.sh play_pause",
        "on-click-right": "exec ~/.bin/sh/dunstaudio.sh next_track",
        "on-click-middle": "exec ~/.bin/sh/dunstaudio.sh prev_track",
	"player-icons": {
		"default": "",
		"mpv": ""
	},
	"status-icons": {
		"paused": "",
	},
//	"ignored-players": ["firefox"] 
    },
"mpris#2": {
	"format": "<span color=\"#8be9fd\"> </span><span color=\"#f8f8f2\">{title} </span><span color=\"#ff79c6\">󰠃 </span><span color=\"#f8f8f2\">{artist} <small>({position}/{length}) </small></span>",
	"format-paused": "<span color=\"#8be9fd\"> </span><span color=\"#f8f8f2\">{title} </span><span color=\"#ff79c6\">󰠃 </span><span color=\"#f8f8f2\">{artist} <small>({position}/{length}) </small></span>",
        "tooltip-format": "󰠃 {artist}:  {title} (󰀥 {album})",
        "interval": 1,
        "album-len": 0,
        "on-click": "exec ~/.bin/sh/dunstaudio.sh play_pause",
        "on-click-right": "exec ~/.bin/sh/dunstaudio.sh next_track",
        "on-click-middle": "exec ~/.bin/sh/dunstaudio.sh prev_track",
//	"ignored-players": ["firefox"] 
    },
    "group/statistics": {
            "orientation": "inherit",
            "modules": [
                    "custom/gpu-usage",
                    "cpu",
                    "memory",
                    "group/disks"
             ]
         },
    "custom/pacman": {
        "format": "<span color=\"#8BE9FD\"> </span>{}",
        "tooltip": true,
        "tooltip-format": "Available updates",
        "interval": 60,             
        "exec": "checkupdates | wc -l",      
        "exec-if": "exit 0",
        "signal": 8
    },

    "group/networks": {
            "orientation": "inherit",
            "modules": [
                    "network",
                    "custom/vpn",
             ]
         },
    "network": {
        "interface": "eno1",
        "format": "{ifname}",
        "interval": 1,
        "format-wifi": "{essid} ({signalStrength}%)  ",
        "format-ethernet": "<span color=\"#50fa7b\"> </span>{ifname}",
        "format-disconnected": "<span color=\"#FF5555\">󱄁 </span>{ifname}", 
        "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": "<span color=\"#50fa7b\"></span>",
            "deactivated": "<span color=\"#f8f8f2\"></span>"
        },
		"on-click": "toggleRemote"
    },

    "group/status": {
            "orientation": "inherit",
            "modules": [
                    "clock",
                    "custom/weather",
                    "idle_inhibitor"
             ]
         },
    "clock": {
        "format": "<span color=\"#FF92DF\">󱑏</span> {:%I:%M:%OS} ",
        "interval": 1,  
        "tooltip-format": "<big> {:%d/%m/%y}</big>",
        // "format-alt": "{:%Y-%m-%d}"
		"on-click": "gsimplecal"
    },
    "cpu": {
        "interval": 10,
        "format": "<span color=\"#cf7cac\">{icon}</span> {usage}%",
        "format-icons": [""]  
    },
    "memory": {
        "format": "<span color=\"#8BE9FD\">{icon}</span> {percentage}%",
        "format-icons": [""]
    },
    "temperature": {
    // "thermal-zone": 2,
    "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
    "critical-threshold": 80,
    "format-critical": " <span color=\"#ff5555\"></span> {temperatureC}°C",
    "format": " <span color=\"#f1fa8c\"></span> {temperatureC}°C",
    "tooltip": false,
    },
    "group/disks": {
            "orientation": "inherit",
    "drawer": {
        "transition-duration": 500,
        "transition-left-to-right": true,
        "click-to-reveal": true,
    },
            "modules": [
                    "disk",
                    "disk#disk2",
                    "disk#disk3",
                    "disk#disk4",
             ]
         },
    "disk": {
    "interval": 30,
    "format": " <span color=\"#8694c0\"></span><span color=\"#50FA7B\">󰋊 </span>/: {percentage_used}%",
    "path": "/"
    },
    "disk#disk2": {
    "interval": 30,
    "format": " <span color=\"#ff79c6\">󰋊 </span>SSD: {percentage_used}%",
    "path": "/mnt/SSD"
    }, 
    "disk#disk3": {
    "interval": 30,
    "format": " <span color=\"#8BE9FD\">󰋊 </span>Games: {percentage_used}%",
    "path": "/media/Games"
    }, 
    "disk#disk4": {
    "interval": 30,
    "format": " <span color=\"#ffb86c\">󰋊 </span>Backups: {percentage_used}%",
    "path": "/mnt/Backups"
    },"pulseaudio": {
        "format": "{volume}% {icon}",
        "format-bluetooth": "{volume}% {icon} ",
        "format-bluetooth-muted": "{icon} ",
        "format-muted": "0% {icon}",
        "format-source": "{volume}% ",
        "format-source-muted": "",
        "format-icons": {
            "headphone": "󰋋",
            "headphone-muted": "󰟎",
            "hands-free": "",
            "headset": "󰋋",
            "headset-muted": "󰟎",
            "phone": "",
            "portable": "",
            "car": "",
            "default": ["", "󰖀", "󰕾", ""]
        },
        "on-click": "pavucontrol",
        "on-scroll-up": "exec ~/.bin/sh/dunstaudio.sh volume_up",
        "on-scroll-down": "exec ~/.bin/sh/dunstaudio.sh volume_down"
    },
     "bluetooth": {
	"format": " <span color=\"#6272a4\"></span> {status}",
	"format-connected": " <span color=\"#6272a4\"></span> on",
	"format-connected-battery": " <span color=\"#6272a4\"></span> on",
        "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": "<span color=\"#ff5555\">  </span>",
    "tooltip": true,
    "tooltip-format": "Connected to VPN",
    "exec": "echo '{\"class\": \"connected\"}'",
    "exec-if": "test -d /proc/sys/net/ipv4/conf/tun0",
    "return-type": "json",
    "on-click": "exec 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": "<span color=\"#8694c0\"></span><span color=\"#bd93f9\">󰍹 </span>{}% ",
        "return-type": "",
        "interval": 1,
        "tooltip": false
        },
}]
