{
  "layer": "top",
  // "output": "eDP-1",
  "position": "right",
  "modules-left": [
    "hyprland/workspaces"
  ],
  "modules-center": [
    "clock#h-m",
    "custom/left-arrow-dark",
    "clock#day",
    "custom/left-arrow-dark",
    "clock#day-month"
  ],
  "modules-right": [
    "memory",
    "custom/left-arrow-dark",
    "pulseaudio",
    "custom/left-arrow-dark",
    "pulseaudio#mic",
    "custom/left-arrow-dark",
    "custom/screen-record",
    "custom/left-arrow-dark",
    "backlight",
    "custom/left-arrow-dark",
    "group/battery-power",
    "custom/refresh-rate",
    "custom/left-arrow-dark",
    "custom/osk",
    "custom/weather",
    "custom/left-arrow-dark",
    "custom/notification",
    "custom/left-arrow-dark",
    "tray",
    "custom/power"
  ],
  "custom/left-arrow-dark": {
    "format": " ",
    "tooltip": false,
    "justify": "center"
  },
  "custom/right-arrow-dark": {
    "format": " ",
    "tooltip": false
  },
  "hyprland/workspaces": {
    "format": "{}",
    "on-scroll-up": "hyprctl dispatch 'hl.dsp.focus({ workspace = \"e-1\" })'",
    "on-scroll-down": "hyprctl dispatch 'hl.dsp.focus({ workspace = \"e+1\" })'",
    "on-click": "activate",
    "disable-scroll-wraparound": true,
    "justify": "center",
    // "format-icons": { "special": "" },
    // "show-special":  true
  },
  "clock#h-m": {
    "justify": "center",
    "format": "{:%H\n%M}",
    "tooltip-format": "<tt><span size='12pt'>{calendar}</span></tt>",
    "calendar": {
      "mode": "year",
      "mode-mon-col": 4,
      "format": {
        "months": "<span foreground='#f8f8f2'><b>{}</b></span>",
        "weekdays": "<span foreground='#f8f8f2'>{}</span>",
        "days": "<span foreground='#c5c5d5'>{}</span>",
        "today": "<span foreground='#282a36' background='#f1fa8c'><b>{}</b></span>"
      }
    }
  },
  "clock#day": {
    "justify": "center",
    "format": "{:%a}",
    "tooltip": false
  },
  "clock#day-month": {
    "justify": "center",
    "format": "{:%d-%m}",
    "tooltip": false
  },
  "memory": {
    "justify": "center",
    "format": "\n{}%",
    "on-click": "btop_my.sh"
  },
  "pulseaudio": {
    "justify": "center",
    "format": "{icon}\n{volume}%",
    "format-bluetooth": "{icon}\n{volume}%",
    "format-muted": "",
    "format-icons": {
      "headphone": "",
      "hands-free": "ᛒ",
      "headset": "ᛒ",
      "phone": "",
      "portable": "",
      "car": "",
      "default": [
        "",
        "",
        ""
      ]
    },
    "on-click": "pavucontrol",
    "on-click-right": "pactl set-sink-mute 0 toggle",
    "on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +5%",
    "on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -5%",
    "smooth-scrolling-threshold": 1,
    "reverse-scrolling": 1
  },
  "pulseaudio#mic": {
    "justify": "center",
    "format": "{format_source}",
    "format-source": "\n{volume}%",
    "format-source-muted": "",
    "on-click": "pavucontrol",
    "on-click-right": "pactl set-source-mute 0 toggle",
    "on-scroll-up": "pactl set-source-volume 0 +1%",
    "on-scroll-down": "pactl set-source-volume 0 -1%",
    "reverse-scrolling": 1
  },
  "backlight": {
    "justify": "center",
    "device": "amdgpu_bl2", // cd /var/lib/systemd/backlight
    "format": "{icon}",
    "format-icons": ["", "", "", "", "", "", "", "", ""],
    "on-scroll-up": "exec brightnessctl s 5%+",
    "on-scroll-down": "exec brightnessctl s 5%-",
    "tooltip-format": "Brightness {}%",
    "reverse-scrolling": 1
  },
  "group/battery-power": {
    "orientation": "horizontal",
    "modules": ["battery", "custom/hp-power"]
  },
  "battery": {
    "align": 0.5,
    "justify": "center",
    "format": "{icon}\n{capacity}%",
    "format-icons": {
      "default": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
      "charging": ["󰢟", "󰢜", "󰂆", "󰂇", "󰂈", "󰢝", "󰂉", "󰢞", "󰂊", "󰂋", "󰂅"],
      "plugged": ""
    },
    "format-time": "{H}h{M}m",
    "format-full": "󱟢\n{capacity}%",
    "interval": 5,
    "format-plugged": "\n{capacity}%",
    "states": {
      "warning": 25,
      "critical": 10
    },
    "tooltip": true,
    "tooltip-format": "{timeTo}\nPower: {power} W\nHealth: {health}%\nCycles: {cycles}",
    "menu": "on-click",
    "menu-file": "~/.config/waybar/menu/hp-power.xml",
    "menu-actions": {
      "turbo": "hp-power turbo",
      "balanced": "hp-power balanced",
      "silent": "hp-power silent"
    },
    "on-click-right": "kitty --hold --title battery-status battery_status.py",
  },
  "custom/notification": {
    "justify": "center",
    "tooltip": false,
    "format": "{icon}",
    "format-icons": {
      "notification": "<span foreground='#ff5555'><sup></sup></span>",
      "none": "",
      "dnd-notification": "<span foreground='#ff5555'><sup></sup></span>",
      "dnd-none": "",
      "inhibited-notification": "<span foreground='#ff5555'><sup></sup></span>",
      "inhibited-none": "",
      "dnd-inhibited-notification": "<span foreground='#ff5555'><sup></sup></span>",
      "dnd-inhibited-none": ""
    },
    "return-type": "json",
    "exec-if": "which swaync-client",
    "exec": "swaync-client -swb",
    "on-click": "swaync-client -t -sw",
    "on-click-right": "swaync-client -d -sw",
    "escape": true
  },
  "tray": {
    "justify": "center",
    "icon-size": 21,
    "spacing": 5,
    "reverse-direction": true
  },
  "custom/weather": {
    "justify": "center",
    "format": "{}",
    "tooltip": true,
    "interval": 60,
    "exec": "wttrbar --location Zürich",
    "return-type": "json"
  },
  "custom/timer": {
    "justify": "center",
    "tooltip": true,
    "return-type": "json",
    "exec": "waybar_timer -r",
    "on-click": "waybar_timer -t",
    "on-click-right": "waybar_timer -m",
    "interval": 1
  },
  "custom/screen-record": {
    "justify": "center",
    "exec": "screen-record waybar",
    "return-type": "json",
    "interval": 1,
    "signal": 7,
    "format": "{}",
    "tooltip": true,
    "on-click": "screen-record toggle output",
    "on-click-right": "screen-record toggle region"
  },
  "custom/power": {
    "format": "⏻",
    "tooltip": false,
    "menu": "on-click",
    "menu-file": "~/.config/waybar/menu/power.xml",
    "menu-actions": {
      "shutdown": "gtk_applet_power_menu  --action shutdown",
      "reboot": "gtk_applet_power_menu  --action reboot",
      "suspend": "gtk_applet_power_menu  --action sleep",
      "hibernate": "gtk_applet_power_menu  --action hibernate",
      "logout": "gtk_applet_power_menu  --action logout"
    },
  },
  "custom/hp-power": {
    "justify": "center",
    "exec-if": "command -v hp-power",
    "exec": "hp-power waybar",
    "return-type": "json",
    "interval": 5,
    "format": "{}\n ",
    "tooltip": true,
    "menu": "on-click",
    "menu-file": "~/.config/waybar/menu/hp-power.xml",
    "menu-actions": {
      "turbo": "hp-power turbo",
      "balanced": "hp-power balanced",
      "silent": "hp-power silent"
    }
  },
  "custom/refresh-rate": {
    "justify": "center",
    "exec": "auto_refresh waybar",
    "return-type": "json",
    "interval": 2,
    "format": "{}",
    "tooltip": true,
    "menu": "on-click",
    "menu-file": "~/.config/waybar/menu/auto-refresh.xml",
    "menu-actions": {
      "rate-120": "auto_refresh 120",
      "rate-48": "auto_refresh 48",
      "auto": "auto_refresh auto"
    }
  },
  "custom/osk": {
    "justify": "center",
    "exec": "waybar_osk",
    "return-type": "json",
    "signal": 5,
    "format": "{}",
    "on-click": "tablet_mode_apply.sh osk-toggle"
  },
}
