{
    "position": "bottom",
    "modules-left": ["custom/launch", "sway/workspaces"],
    "modules-center": ["custom/spotify"],
    "modules-right": [
        "custom/xkblayout",
        "pulseaudio",
        "backlight",
        "custom/wgstatus",
        "network",
	"memory",
        "battery",
        "clock",
        "custom/off"
    ],
    "custom/launch": {
        "format": " ",
        "on-click": "rofi -show run"
    },
    "sway/workspaces": {
        "disable-scroll": true,
        "all-outputs": true,
        "format": " {icon} ",
        "persistent_workspaces": {
            "1": [],
            "2": [],
            "3": [],
            "4": [],
            "5": [],
            "6": []
        },
        "format-icons": {
            "1": " ",
            "2": " ",            
	    "3": " ",
            "4": " ",
            "5": " ",
            "6": " ",
            "urgent": " ",
            "focused": " ",
            "default": " "
        }
    },
    "custom/spotify": {
        "exec": "/usr/bin/python3 $XDG_CONFIG_HOME/waybar/scripts/mediaplayer.py --player spotify",
        "format": "{}",
        "return-type": "json",
        "on-click": "spotifycli --playpause",
        "on-scroll-up": "spotifycli --next",
        "on-scroll-down": "spotifycli --previous"
    },
    "custom/xkblayout": {
        "exec": "~/.config/waybar/scripts/xkblayout.py",
        "format": "   {} ",
        "tooltip": false
    },
    "pulseaudio": {
        "scroll-step": 5,
        "format": "{icon} {volume}%", "format-bluetooth": "{volume}% {icon} {format_source}",
        "format-bluetooth-muted": "婢  {icon} muted",
        "format-muted": "婢  muted",
        "format-icons": {
            "speaker": " ",
            "hands-free": "",
            "headset": "",
            "phone": "",
            "portable": "",
            "car": "",
            "headphone": [" ", " ", " "]
        },
        "on-click": "pavucontrol"
    },
    "backlight": {
        "device": "intel_backlight",
        "format": "  {percent}%",
        "on-scroll-up": "light -A 1",
        "on-scroll-down": "light -U 1"
    },
    "custom/wgstatus": {
        "interval": 1,
        "exec": "~/.config/waybar/scripts/wgstatus",
        "format": "   {} ",
        "tooltip": false,
        "on-click": "~/.config/waybar/scripts/wgstatus -toggle"
    },
    "network": {
        "format-wifi": "直  {essid}",
        "format-ethernet": "直  {ifname}: {ipaddr}/{cidr}",
        "format-linked": "直  {ifname} (No IP)",
        "format-disconnected": "睊  Disconnected",
        "format-alt": "直  {ifname}: {ipaddr}/{cidr}",
        "on-click-middle": "~/.config/waybar/scripts/wgstatus -toggle"
    },
    "memory": {
	"interval": 3,
	"format": "  {}%",
	"max-length": 10
   },
    "battery": {
        "interval": 60,
        "states": {
            "warning": 30,
            "critical": 15
        },
        "format": "{icon}  {capacity}%",
        "format-icons": [" ", " ", " ", " ", " "]
    },
    "clock": {
        "interval": 1,
        "format": "  {:%I:%M %p}",
        "format-alt": "  {:%b %d, %G}"
    },
    "custom/off": {
        "format": " ",
        "on-click": "powermenu"
    }
}i
