{
  "position": "top",
  "modules-left": ["sway/workspaces", "sway/mode"],
  "modules-right": [
    "tray",
    "custom/weather",
    "custom/dnd",
    "pulseaudio",
    "sway/language",
    "network",
    "clock",
    "custom/power-menu"
  ],

  "sway/workspaces": {
    "all-output": true,
    "format": "{index}"
  },
  "custom/player": {
    "exec": "playerctl metadata -f '{{emoji(status)}} {{title}} by {{artist}}'",
    "on-click": "playerctl play-pause",
    "on-click-right": "pamixer -t",
    "restart-interval": 0,
    "tooltip": false,
    "max-length": 40
  },
  "sway/mode": {
    "format": "--{}--",
    "tooltip": false
  },

  "custom/weather": {
    "exec": "curl 'https://wttr.in/?format=1'",
    "interval": 60,
    "on-click": "xdg-open https://wttr.in",
    "tooltip": false
  },
  "custom/dnd": {
    "exec": "$HOME/dotfiles/bin/dnd",
    "on-click": "dunstctl set-paused toggle",
    "restart-interval": 0,
    "tooltip": false
  },
  "pulseaudio": {
    "tooltip": false,
    "format-muted": "MUTE",
    "on-click": "pavucontrol"
  },
  "sway/language": {
    "tooltip": false
  },
  "network": {
    "format": "{icon}",
    "format-icons": [""],
    "format-disconnected": "No network",
    "tooltip": false
  },
  "clock": {
    "format": "{:%d %b %H:%M, %A}",
    "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
  },
  "tray": {
    "icon-size": 16,
    "spacing": 10
  },
  "custom/power-menu": {
    "format": "{icon}",
    "format-icons": [""],
    "on-click": "wlogout -b 4 -m 450 -c 30",
    "tooltip": false
  }
}
