/* ---- 💫 https://github.com/JaKooLit 💫 ---- */

// ### TOP and Right PANEL ## //

[{
"include": "~/.config/waybar/modules",
"layer": "top",
//"mode": "dock",
"width": 1200,
"exclusive": true,
"passthrough": false,
"position": "top",
"spacing": 3,
"fixed-center": true,
"ipc": true,
"margin-top": 2,
"margin-left": 8,
"margin-right": 8,
    
"modules-left": [
    "custom/menu",
	"custom/separator#blank_2",
	"group/motherboard",
    ],
    
"modules-center": [
    //"hyprland/window",
    "hyprland/workspaces#pacman",
	],
    
"modules-right": [
    "network",
    "bluetooth",
	"custom/weather",
	"custom/separator#blank_2",
	"group/audio",
	"custom/separator#blank_2",
    "keyboard-state",
    "custom/power",
    ],
},

{
"include": "~/.config/waybar/modules",
"layer": "top",
"position": "right",
"height": 650,
"margin-top": 8,
"margin-bottom": 8,
//"margin-left": 3,
"margin-right": 3,
"spacing": 3,
"fixed-center": true,
"ipc": true,
//"gtk-layer-shell": true,
   
"modules-left": [
    "custom/lock",
    "idle_inhibitor",   
    ],
    
"modules-center": [
    "clock#vertical",
    ],
    
"modules-right": [
	"mpris",
	"custom/swaync",
    "tray",
    "custom/light_dark",
    ],
    
}]











{
    "layer": "top", 
    "position": "top",
    "modules-left": ["custom/logo", "clock", "custom/weather", "disk", "memory", "cpu", "temperature", "custom/powerDraw", "hyprland/window"],
    "modules-center": ["hyprland/workspaces"],
    "modules-right": ["tray", "custom/clipboard", "backlight", "idle_inhibitor", "custom/colorpicker", "bluetooth", "pulseaudio", "network", "battery"],
    "reload_style_on_change": true,
  
    "custom/logo": {
      "format": "",
      "tooltip": false
    },
  
    "hyprland/workspaces": {
      "format": "{icon}",
      "format-icons": {
        "1": "",
        "2": "",
        "3": "",
        "4": "",
        "5": "",
        "6": "",
        "active": "",
        "default": ""
      },
      "persistent-workspaces": {
        "*": [2, 3, 4, 5, 6]
      }
    },
  
    "idle_inhibitor": {
      "format": "<span font='12'>{icon} </span>",
      "format-icons": {
        "activated": "󰈈",
        "deactivated": "󰈉"
      }
    },
  
    "custom/weather": {
      "format": "{}",
      "return-type": "json",
      "exec": "~/.config/waybar/scripts/weather.sh",
      "interval": 10,
      "on-click": "firefox https://wttr.in"
    },
  
    "custom/clipboard": {
      "format": "",
      "on-click": "cliphist list | rofi -dmenu | cliphist decode | wl-copy",
      "interval": 86400
    },
  
    "clock": {
      "format": "{:%I:%M:%S %p}",
      "interval": 1,
      "tooltip-format": "\n<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
      "calendar-weeks-pos": "right",
      "today-format": "<span color='#7645AD'><b><u>{}</u></b></span>",
      "format-calendar": "<span color='#aeaeae'><b>{}</b></span>",
      "format-calendar-weeks": "<span color='#aeaeae'><b>W{:%V}</b></span>",
      "format-calendar-weekdays": "<span color='#aeaeae'><b>{}</b></span>"
    },
  
    "bluetooth": {
      "format-on": "",
      "format-off": "",
      "format-disabled": "󰂲",
      "format-connected": "󰂴",
      "format-connected-battery": "{device_battery_percentage}% 󰂴",
      "tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
      "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
      "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
      "tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%",
      "on-click": "rofi-bluetooth"
    },
  
    "network": {
      "format-wifi": " ",
      "format-ethernet": " ",
      "format-disconnected": "",
      "tooltip-format": "{ipaddr}",
      "tooltip-format-wifi": "{essid} ({signalStrength}%)  | {ipaddr}",
      "tooltip-format-ethernet": "{ifname} 🖧 | {ipaddr}",
      "on-click": "networkmanager_dmenu"
    },
  
    "battery": {
      "interval": 1,
      "states": {
        "good": 95,
        "warning": 30,
        "critical": 20
      },
      "format": "{capacity}% {icon} ",
      "format-charging": "{capacity}% 󰂄 ",
      "format-plugged": "{capacity}% 󰂄 ",
      "format-alt": "{time} {icon}",
      "format-icons": [
        "󰂄",
        "󰁼",
        "󰁾",
        "󰂀",
        "󰂂",
        "󰁹"
      ]
    },
  
    "backlight": {
      "device": "intel_backlight",
      "format": "<span font='12'>{icon}</span>",
      "format-icons": [
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        "",
        ""
      ],
      "on-scroll-down": "light -A 10",
      "on-scroll-up": "light -U 10",
      "smooth-scrolling-threshold": 1
    },
  
    "disk": {
      "interval": 30,
      "format": " {percentage_used}%",
      "path": "/"
    },
  
    "custom/colorpicker": {
      "format": "{}",
      "return-type": "json",
      "interval": "once",
      "exec": "~/.config/waybar/scripts/colorpicker.sh -j",
      "on-click": "sleep 1 && ~/.config/waybar/scripts/colorpicker.sh",
      "signal": 1
    },
  
    "cpu": {
      "interval": 1,
      "format": " {usage}%",
      "min-length": 6,
      "max-length": 6,
      "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"]
    },
  
    "memory": {
      "format": " {percentage}%"
    },
  
    "hyprland/window": {
      "format": "( {class} )",
      "rewrite": {
        "(.*) - Mozilla Firefox": "🌎 $1",
        "(.*) - zsh": "> [$1]"
      }
    },
  
    "temperature": {
      "format": " {temperatureC}°C",
      "format-critical": " {temperatureC}°C",
      "interval": 1,
      "critical-threshold": 80,
      "on-click": "foot btop"
    },
  
    "pulseaudio": {
      "format": "{volume}% {icon}",
      "format-bluetooth": "󰂰",
      "format-muted": "<span font='12'></span>",
      "format-icons": {
        "headphones": "",
        "bluetooth": "󰥰",
        "handsfree": "",
        "headset": "󱡬",
        "phone": "",
        "portable": "",
        "car": "",
        "default": ["🕨", "🕩", "🕪"]
      },
      "justify": "center",
      "on-click": "amixer sset Master toggle",
      "on-click-right": "pavucontrol",
      "tooltip-format": "{icon} {volume}%"
    },
  
    "jack": {
      "format": "{} 󱎔",
      "format-xrun": "{xruns} xruns",
      "format-disconnected": "DSP off",
      "realtime": true
    },
  
    "tray": {
      "icon-size": 14,
      "spacing": 10
    },
  
    "upower": {
      "show-icon": false,
      "hide-if-empty": true,
      "tooltip": true,
      "tooltip-spacing": 20
    },
  
    "custom/powerDraw": {
      "format": "{}",
      "interval": 1,
      "exec": "~/.config/waybar/scripts/powerdraw.sh",
      "return-type": "json"
    }
  }
  