{
    "layer": "top", // Waybar at top layer
    "position": "top", // Waybar position (top|bottom|left|right)
    "height": 36, // Waybar height (to be removed for auto height)
    // "width": 1280, // Waybar width
    // Choose the order of the modules
    "modules-left": ["idle_inhibitor", "sway/workspaces", "custom/media", "sway/mode"],
    "modules-center": ["clock"],
    "modules-right": ["custom/pvpn", "network", "pulseaudio", "cpu", "memory", "battery", "tray"],
    // Modules configuration
    "sway/workspaces": {
        "disable-scroll": true,
        //"all-outputs": true,
        /* "format": "{name}{icon}", */
        "format-icons": {
            "1": " \uf120", // terminal
            "2": " \uf121", // code
            "3": " \ue007", // firefox-browser
            "4": " \uf3ed", // shield-alt
            "5": " \uf0c0", // users
            "6": " \uf086", // comments
            "7": "",
            "8": "",
            "9": "",
            "10": " \uf51f", // compact-disc
        }
    },
    "sway/window": {
        "max-length": 64
    },
    "sway/mode": {
        "format": "<span style=\"italic\">{}</span>"
    },
    "idle_inhibitor": {
        "format": "{icon}",
        "format-icons": {
            "activated": "\uf06e", // eye
            "deactivated": "\uf070" // eye-slash
        },
        "tooltip": false
    },
    "tray": {
        "icon-size": 14,
        "spacing": 8
    },
    "clock": {
        "timezone": "Europe/Copenhagen",
        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
        "format": "{:\uf783  %b %d %Y  \uf017  %T}", // calendar-day, clock
        "interval": 1
    },
    "cpu": {
        "format": "\uf2db  {usage}%", // microchip
        "tooltip": true
    },
    "memory": {
        "format": "\uf538  {}%"
    },
    "temperature": {
        //"thermal-zone": 2,
        "hwmon-path": "/sys/class/hwmon/hwmon5/temp1_input",
        "critical-threshold": 90,
        "format-critical": "Critical! {temperatureC}°C {icon}",
        "format": "{icon}  {temperatureC}°C",
        "format-icons": ["\uf2cb", "\uf76b", "\uf769"], // thermometer-empty, temperature-low, temperature-high
	    "tooltip": true
    },
    "battery": {
        "states": {
            "good": 95,
            "warning": 20,
            "critical": 10
        },
        "format": "{icon} {capacity}%",
        "format-charging": "\uf5e7  {capacity}%", // charging-station
        "format-plugged": "\uf1e6  {capacity}%", // plug
        "format-alt": "{icon}  {time}",
        "format-icons": ["\uf244", "\uf243", "\uf242", "\uf241", "\uf240"] // battery-empty, battery-quarter, battery-half, battery-three-quarters, battery-full
    },
    "network": {
        // "interface": "wlp2*", // (Optional) To force the use of this interface
        "format-wifi": "  {essid} ({signalStrength}%)",
        "format-ethernet": "  {ifname}: {ipaddr}/{cidr}",
        "format-linked": "  {ifname} (No IP)",
        "format-disconnected": "\uf071  Disconnected" // exclamation-triangle
    },
    "pulseaudio": {
        "scroll-step": 2, // %, can be a float
        "format": "{icon}  {volume}%   {format_source}",
        "format-bluetooth": "{icon}  {volume}%   {format_source}",
        "format-bluetooth-muted": "{icon}     {format_source}",
        "format-muted": "  {format_source}",
        "format-source": "  {volume}%",
        "format-source-muted": "",
        "format-icons": {
            "headphone": "",
            "hands-free": "",
            "headset": "",
            "phone": "",
            "portable": "",
            "car": "",
            "default": ["", "", ""]
        },
        "on-click": "/usr/bin/pavucontrol"
    },
    "custom/media": {
        "format": "{icon} {}",
        "return-type": "json",
        "max-length": 48,
        "format-icons": {
            "chromium": "\uf1bc", // spotify (I use Spotify in my browser)
        },
        "escape": true,
        // "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
        "exec": "$HOME/.config/waybar/mediaplayer.py --player chromium 2> /dev/null" // Filter player based on name
    },
    "custom/pvpn": {  // Custom status module for ProtonVPN
        "format": "{}  ProtonVPN",
	    "exec": "$HOME/.config/waybar/pvpn.sh",
	    "return-type": "json",
	    "interval": 5,
        "on-click": "protonvpn refresh && env SUDO_USER=$USER doas protonvpn c -f"
    }
}
