{
    "height": 30,
    "spacing": 4,
    "modules-left": [
        "custom/swaync",
        "custom/media"
    ],
    "modules-center": [
        "custom/workspace1",
        "custom/workspace2",
        "custom/workspace3",
        "custom/workspace4",
        "custom/workspace5",
        "custom/workspace6",
        "custom/workspace7",
        "custom/workspace8",
        "custom/workspace9",
        "custom/workspace10"
        // "hyprland/workspaces"
    ],
    "modules-right": [
        "keyboard-state",
        "tray",
        "custom/separator",
        "network",
        "custom/tailscale",
        "custom/separator",
        "battery",
        "custom/separator",
        "custom/bluetooth",
        "clock"
    ],
    // Modules configuration
    "custom/swaync": {
        "on-click": "swaync-client -t -sw",
        "tooltip": false,
        "format": "   {} | ",
        "interval": 1,
        "exec": "~/.config/hypr/scripts/get-volume.sh"
    },
    "custom/separator": {
        "format": "|"
    },
    "custom/media": {
        "interval": 1,
        "exec": "/home/nathan/scripts/music.sh waybar",
        "tooltip": false
    },
    "custom/tailscale": {
        "interval": 10,
        "exec": "sleep 2 && /home/nathan/scripts/ts.sh short waybar",
        "on-click": "/home/nathan/scripts/ts.sh en toggle",
        "exec-on-event": true,
        "tooltip": false
    },
    "custom/bluetooth": {
        "interval": 10,
        "exec": "/home/nathan/scripts/bt.sh waybar",
        "on-click": "alacritty --class float -e bluetuith",
        "exec-on-event": true,
        "tooltip": false
    },
    "disk": {
        "interval": 30,
        "format": "{path} {percentage_used}%",
        "path": "/",
        "on-click": "/home/nathan/scripts/zellij.sh --cwd / zsh"
    },
    "keyboard-state": {
        "numlock": false,
        "capslock": true,
        "format": "{icon}",
        "format-icons": {
            "locked": "Caps ",
            "unlocked": ""
        }
    },
    "clock": {
        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
        "format": "{:%Y-%m-%d %r}",
        "interval": 1
    },
    "cpu": {
        "format": "{usage}% ",
        "tooltip": true,
        "on-click": "/home/nathan/scripts/zellij.sh htop --sort-key=PERCENT_CPU"
    },
    "memory": {
        "format": "{}% ",
        "tooltip": true,
        "on-click": "/home/nathan/scripts/zellij.sh htop --sort-key=PERCENT_MEM"
    },
    "temperature": {
        "critical-threshold": 80,
        // "format-critical": "{temperatureC}°C {icon}",
        "format": "{temperatureC}°C {icon}",
        "format-icons": [
            "<span foreground='#60d090'></span>",
            "<span foreground='#60d090'></span>",
            "<span foreground='#ffff00'></span>",
            "<span foreground='#ffff00'></span>",
            "<span foreground='#ff0000'></span>"
        ]
    },
    "battery": {
        "states": {
            // "good": 95,
            "warning": 30,
            "critical": 15
        },
        "format": "{icon} {capacity}%",
        "format-charging": "󱊥 {capacity}% ",
        "format-plugged": " {capacity}%",
        // "format-good": "", // An empty format will hide the module
        // "format-full": "",
        "format-icons": [
            "<span foreground='#ff0000'></span>",
            "<span foreground='#ffff00'></span>",
            "<span foreground='#60d090'></span>",
            "<span foreground='#60d090'></span>",
            "<span foreground='#60d090'></span>"
        ]
    },
    "network": {
        "format-wifi": "{essid} ", //({signalStrength}%)
        "format-ethernet": "{ipaddr}/{cidr} ",
        "tooltip-format": "{ifname} via {gwaddr} ",
        "format-linked": "{ifname} (No IP) ",
        "format-disconnected": "Disconnected ⚠",
        // "format-alt": "{ifname}: {ipaddr}/{cidr}",
        "on-click": "alacritty --class float -e iwctl"
    },
    "tray": {
        "icon-size": 21,
        "spacing": 10
    },
    "hyprland/submap": {
        "format": "✌️ {}",
        "max-length": 8,
        "tooltip": false
    },
    "hyprland/workspaces": {
        "format": "{name}: {icon}",
        "format-icons": {
            "1": "",
            "2": "",
            "3": "",
            "4": "",
            "5": "",
            "active": "",
            "default": ""
        }
    },
    "custom/workspace1": {
        "interval": 1,
        "exec": "~/.config/hypr/scripts/desk.py -w -d 1",
        "on-click": "~/.config/hypr/scripts/desk.py -d 1",
        "exec-on-event": true,
        "tooltip": false
    },
    "custom/workspace2": {
        "interval": 1,
        "exec": "~/.config/hypr/scripts/desk.py -w -d 2",
        "on-click": "~/.config/hypr/scripts/desk.py -d 2",
        "exec-on-event": true,
        "tooltip": false
    },
    "custom/workspace3": {
        "interval": 1,
        "exec": "~/.config/hypr/scripts/desk.py -w -d 3",
        "on-click": "~/.config/hypr/scripts/desk.py -d 3",
        "exec-on-event": true,
        "tooltip": false
    },
    "custom/workspace4": {
        "interval": 1,
        "exec": "~/.config/hypr/scripts/desk.py -w -d 4",
        "on-click": "~/.config/hypr/scripts/desk.py -d 4",
        "exec-on-event": true,
        "tooltip": false
    },
    "custom/workspace5": {
        "interval": 1,
        "exec": "~/.config/hypr/scripts/desk.py -w -d 5",
        "on-click": "~/.config/hypr/scripts/desk.py -d 5",
        "exec-on-event": true,
        "tooltip": false
    },
    "custom/workspace6": {
        "interval": 1,
        "exec": "~/.config/hypr/scripts/desk.py -w -d 6",
        "on-click": "~/.config/hypr/scripts/desk.py -d 6",
        "exec-on-event": true,
        "tooltip": false
    },
    "custom/workspace7": {
        "interval": 1,
        "exec": "~/.config/hypr/scripts/desk.py -w -d 7",
        "on-click": "~/.config/hypr/scripts/desk.py -d 7",
        "exec-on-event": true,
        "tooltip": false
    },
    "custom/workspace8": {
        "interval": 1,
        "exec": "~/.config/hypr/scripts/desk.py -w -d 8",
        "on-click": "~/.config/hypr/scripts/desk.py -d 8",
        "exec-on-event": true,
        "tooltip": false
    },
    "custom/workspace9": {
        "interval": 1,
        "exec": "~/.config/hypr/scripts/desk.py -w -d 9",
        "on-click": "~/.config/hypr/scripts/desk.py -d 9",
        "exec-on-event": true,
        "tooltip": false
    },
    "custom/workspace10": {
        "interval": 1,
        "exec": "~/.config/hypr/scripts/desk.py -w -d 10",
        "on-click": "~/.config/hypr/scripts/desk.py -d 10",
        "exec-on-event": true,
        "tooltip": false
    }
}