{
  "layer": "bottom",
  "position": "top",
  "height": 35,
  "spacing": 0,
  "modules-left": ["clock", "sway/workspaces","sway/mode"],
  "modules-center": ["sway/window"],
  "modules-right": ["network", "battery", "cpu", "memory", "custom/keyboard-layout", "pulseaudio", "tray"],

"custom/keyboard-layout": {
  "interval": 1,
  "exec": "swaymsg -t get_inputs | jq -r '.[] | select(.type == \"keyboard\") | .xkb_active_layout_name'"
},


  "cpu": {
    "interval": 5,
    "format": "CPU: {usage}% {avg_frequency} GHz"
  },

  "memory": {
    "interval": 5,
    "format": "RAM: {used} GiB"
  },

  "battery": {
    "bat": "BAT0",
    "states": {
      "good": 90,
      "warning": 20,
      "critical": 7
    },
    "format": "{icon}  {capacity}%",
        "format-charging": " {capacity}%",
        "format-plugged": " {capacity}%",
        "format-alt": "{time}  {icon}",
        "format-icons": ["",  "", "" , "", ""] 
  },

  "pulseaudio": {
    "format": "{icon}   {volume}%",
    "format-muted": " Muted",
    "format-icons": ["", "", ""]
  },

  "clock": {
    "format": "{:%d.%m.%Y | %H:%M}"
  },

  "network": {
    "format-wifi": "   {essid} {signalStrength}%",
    "format-disconnected": "  No Connection"
  }


}
