{
// HYPRLAND WORKSPACES. CHOOSE as desired and place on waybar configs
// CIRCLES Style
"hyprland/workspaces": {
  "active-only": false,
  "all-outputs": true,
  "format": "{icon}",
  "show-special": false,
  "on-click": "activate",
  "on-scroll-up": "hyprctl dispatch workspace e+1",
  "on-scroll-down": "hyprctl dispatch workspace e-1",
  "persistent_workspaces": {
    "1": [],
    "2": [],
    "3": [],
    "4": [],
    "5": [],
  },
  "format-icons": {
    "active": "",
    "default": "",
  },
},

// ROMAN Numerals style
"hyprland/workspaces#roman": {
  "active-only":false,
  "all-outputs": true,
  "format": "{icon}",
  "show-special": false,
  "on-click": "activate",
  "on-scroll-up": "hyprctl dispatch workspace e+1",
  "on-scroll-down": "hyprctl dispatch workspace e-1",
  "persistent_workspaces":{
      "1": [],
      "2": [],
      "3": [],
      "4": [],
      "5": [],
  },
  "format-icons": {
    "1": "I",
    "2": "II",
    "3": "III",
    "4": "IV",
    "5": "V",
    "6": "VI",
    "7": "VII",
    "8": "VIII",
    "9": "IX",
    "10": "X",

  },
},

// PACMAN Style
"hyprland/workspaces#pacman": {
  "active-only":false,
  "all-outputs": true,
  "format": "{icon}",
  "on-click": "activate",
  "on-scroll-up": "hyprctl dispatch workspace e+1",
  "on-scroll-down": "hyprctl dispatch workspace e-1",
  "show-special": false,
  "persistent_workspaces":{
      "1": [],
      "2": [],
      "3": [],
      "4": [],
      "5": [],
  },
  "format": "{icon}",
  "format-icons": {
    "active": " 󰮯 ",
    "default": "  ",
    "persistent":"󰑊",
  },
},

"hyprland/workspaces#kanji": {
  "disable-scroll": true,
  "all-outputs": true,
  "format": "{icon}",
  "persistent_workspaces": {
    "1": [],
    "2": [],
    "3": [],
    "4": [],
    "5": [],
    },
  "format-icons": {
    "1": "一",
    "2": "二",
    "3": "三",
    "4": "四",
    "5": "五",
	  "6": "六",
    "7": "七",
    "8": "八",
    "9": "九",
    "10": "十",
  }
},


//  NUMBERS and ICONS style
"hyprland/workspaces#4": {
  "format": "{name}",
  "format": " {icon} ",
  //"format": " {icon} ",
  "show-special": false,
  "on-click": "activate",
  "on-scroll-up": "hyprctl dispatch workspace e+1",
  "on-scroll-down": "hyprctl dispatch workspace e-1",
  "all-outputs": true,
  "sort-by-number": true,
  "format-icons": {
    "1": "",
    "2": "",
    "3": "",
    "4": "",
    "5": "",
    "6": "󰚌",
    "7": "",
    "8": "",
    "9": "",
    "10": "",
    "urgent": "",
    "focused": "",
    "default": "",
	},
},

// GROUP

"group/motherboard": {
	"orientation": "horizontal",
	"modules": [
		"cpu",
		"memory",
		"temperature",
		"disk",
		]
},

"group/laptop": {
	"orientation": "horizontal",
	"modules": [
		"backlight",
		"battery",
		]
},

"group/audio": {
	"orientation": "horizontal",
	"modules": [
		"pulseaudio",
		"pulseaudio#microphone",
		]
},

"backlight": {
  "interval": 2,
  "align": 0,
  "rotate": 0,
  //"format": "{icon} {percent}%",
  //"format-icons": ["󰃞", "󰃟", "󰃠"],
  //"format-icons": ["󰛩", "󱩎", "󱩏", "󱩑", "󱩒", "󱩓", "󱩔", "󱩕", "󰛨"],
  // "format-icons": ["", "", "", "", "", "", "", "", ""],
  "format": "{icon}",
  "format-icons": ["🔅", "🔆", "☀️"],
  "tooltip-format": "backlight {percent}%",
  "icon-size": 10,
  "on-click": "",
  "on-click-middle": "",
  "on-click-right": "",
  "on-update": "",
  "on-scroll-up": "~/.config/hypr/scripts/RunCMD.sh brightness --inc",
  "on-scroll-down": "~/.config/hypr/scripts/RunCMD.sh brightness --dec",
  "smooth-scrolling-threshold": 1,
},

"battery": {
  "interval": 1,
  "align": 0,
  "rotate": 0,
  //"bat": "BAT1",
  //"adapter": "ACAD",
  "full-at": 100,
  "design-capacity": false,
  "states": {
    "good": 100,
    "warning": 30,
    "critical": 15
           },
  "format": "{icon}",
  "format-charging": "",
  "format-plugged": "󱘖",
  "format-full": "{icon}",
  "format-alt": "{icon}",
  "format-icons": [" ", " ", " ", " ", " "],
  "format-time": "{H}h {M}min",
  "tooltip": true,
  //"tooltip-format": "{timeTo} {power}w",
  "tooltip-format": "{capacity}%",
  "on-click-middle": "~/.config/hypr/scripts/RunCMD.sh toggle_blur",
},

"bluetooth": {
  "format": "",
  "format-disabled": "󰂳",
  "format-connected": "󰂱 {num_connections}",
  "tooltip-format": " {device_alias}",
  "tooltip-format-connected": "{device_enumerate}",
  "tooltip-format-enumerate-connected": " {device_alias} 󰂄{device_battery_percentage}%",
  "tooltip": true,
  "on-click": "blueberry",
},

"clock": {
	"interval": 1,
  //"format": "  {:%I:%M %p}",
  //"format": " {:%H:%M:%S}",
  //"format-alt": "  {:%I:%M   %Y, %d %B, %A}",
  "format": "{:🕰️ %I:%M %p 📅 %d/%m}",
  "format-alt": "🕰️ {:%I:%M %B %d, %Y %A} 🗓️",
  "tooltip-format": "<tt><small>{calendar}</small></tt>",
  "calendar": {
    "mode"          : "year",
    "mode-mon-col"  : 3,
    "weeks-pos"     : "right",
    "on-scroll"     : 1,
    "format": {
    "months":     "<span color='#ffead3'><b>{}</b></span>",
    "days":       "<span color='#ecc6d9'><b>{}</b></span>",
    "weeks":      "<span color='#99ffdd'><b>W{}</b></span>",
    "weekdays":   "<span color='#ffcc66'><b>{}</b></span>",
    "today":      "<span color='#ff6699'><b><u>{}</u></b></span>"
              }
              }
  },
  "actions":  {
    "on-click-right": "mode",
    "on-click-forward": "tz_up",
    "on-click-backward": "tz_down",
    "on-scroll-up": "shift_up",
    "on-scroll-down": "shift_down"
},

"cpu": {
  //"format": "󰍛 {usage}%",
  "format": "📊 {usage}%",
  "interval": 1,
  "format-alt-click": "click",
  "format-alt": "{icon0}{icon1}{icon2}{icon3} {usage:>2}% 📊",
  "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
  "on-click-right": "gnome-system-monitor",
},

"disk": {
  "interval": 1,
  //"format": "󰋊",
  "path": "/",
  //"format-alt-click": "click",
  "format": " {percentage_used}%",
  //"tooltip": true,
  "tooltip-format": "{used} used out of {total} on {path} ({percentage_used}%)",
},

"hyprland/window": {
  "format": "{}",
  "max-length": 40,
   "rewrite": {
            "": "No Window Focused",
            "(.*) - zsh": " $1",
            "(.*) - kitty": " $1",
            "${USER}@${set_sysname}:(.*)": " $1",
            "(.*) — Mozilla Firefox": "󰈹 $1",
            "(.*)Mozilla Firefox": "Firefox 󰈹",
            "(.*) - codium": "󰨞 $1",
            "(.*) - geany": " $1",
            "(.*)codium": "Code 󰨞 $1",
            "(.*)Thunar": "󰉋 $1",
            "(.*)yazi": "󰉋 $1",
            "(.*)Spotify": "Spotify 󰓇",
            "(.*)nvim": " $1",
	},
},

"idle_inhibitor": {
  "format": "{icon}",
  "format-icons": {
      "activated": " ",
      "deactivated": " ",
                  }
},

"keyboard-state": {
  //"numlock": true,
  "capslock": true,
  "format": {
    "numlock": "N {icon}",
	  "capslock":"󰪛 {icon}",
			},
  "format-icons": {
    "locked": "",
    "unlocked": ""
    			  },
},

"memory": {
  "interval": 1,
  //"format": "󰾆 {used:0.1f}G",
  //"format-alt": "󰾆 {percentage}%",
  "format": "🧬 {used:0.1f}G/{total:0.1f}G",
  "format-alt": "🧬 {percentage}%",
  "format-alt-click": "click",
  "tooltip": true,
  "on-click-right": "kitty --title btop sh -c 'btop'"
},


"network": {
  "format": "{ifname}",
  "format-wifi": "{icon}",
  "format-ethernet": "󰌘",
  "format-disconnected": "󰌙",
  "tooltip-format": "Network: <big><b>{essid}</b></big>\nSignal strength: <b>{signaldBm}dBm ({signalStrength}%)</b>\nFrequency: <b>{frequency}MHz</b>\nInterface: <b>{ifname}</b>\nIP: <b>{ipaddr}/{cidr}</b>\nGateway: <b>{gwaddr}</b>\nNetmask: <b>{netmask}</b>",
  "format-linked": "󰈁 {ifname} (No IP)",
  "tooltip-format-disconnected": "󰌙 Disconnected",
  "max-length": 50,
  "format-icons": ["󰤯","󰤟","󰤢","󰤥","󰤨"]
},

  "network#speed": {
    "interval": 1,
    "format": "{ifname}",
    "format-wifi": "{icon}  {bandwidthUpBytes}  {bandwidthDownBytes}",
    "format-ethernet": "󰌘   {bandwidthUpBytes}  {bandwidthDownBytes}",
    "format-disconnected": "󰌙",
    "tooltip-format": "Network: <big><b>{essid}</b></big>\nSignal strength: <b>{signaldBm}dBm ({signalStrength}%)</b>\nFrequency: <b>{frequency}MHz</b>\nInterface: <b>{ifname}</b>\nIP: <b>{ipaddr}/{cidr}</b>\nGateway: <b>{gwaddr}</b>\nNetmask: <b>{netmask}</b>",
    "format-linked": "󰈁 {ifname} (No IP)",
    "tooltip-format-disconnected": "󰌙 Disconnected",
    "max-length": 50,
    "format-icons": ["󰤯","󰤟","󰤢","󰤥","󰤨"]
  },

"pulseaudio": {
  "format": "{icon}",
  "format-bluetooth": "{icon} 󰂰 {volume}%",
  "format-muted": "󰖁",
  "format-icons": {
      "headphone": "",
      "hands-free": "",
      "headset": "",
      "phone": "",
      "portable": "",
      "car": "",
  "default": ["", "", "󰕾", ""],
  "ignored-sinks": ["Easy Effects Sink"],
  },
  "scroll-step": 5.0,
  "on-click": "~/.config/hypr/scripts/RunCMD.sh volume --toggle",
  "on-click-right": "pavucontrol -t 3",
  "on-scroll-up": "~/.config/hypr/scripts/RunCMD.sh volume --inc",
  "on-scroll-down": "~/.config/hypr/scripts/RunCMD.sh volume --dec",
  "smooth-scrolling-threshold": 1,
  "tooltip-format": "{volume}%",
},

"pulseaudio#microphone": {
  "format": "{format_source}",
  "format-source": " {volume}%",
  "format-source-muted": "",
  "on-click": "~/.config/hypr/scripts/RunCMD.sh volume --toggle-mic",
  "on-click-right": "pavucontrol -t 4",
  "on-scroll-up": "~/.config/hypr/scripts/RunCMD.sh volume --mic-inc",
  "on-scroll-down": "~/.config/hypr/scripts/RunCMD.sh volume --mic-dec",
  "tooltip-format":"{source_volume}%",
  "scroll-step": 5,
},

"tray": {
  "icon-size": 14,
  "spacing": 8,
},

"wireplumber": {
  "format": "{icon} {volume} %",
  "format-muted": " Mute",
  "on-click": "~/.config/hypr/scripts/RunCMD.sh volume --toggle",
  "on-click-right": "pavucontrol -t 3",
  "on-scroll-up": "~/.config/hypr/scripts/RunCMD.sh volume --inc",
  "on-scroll-down": "~/.config/hypr/scripts/RunCMD.sh volume --dec",
  "format-icons": ["", "", "󰕾", ""],
},

"mpris": {
    "interval": 10,
	"format": "{player_icon} ",
	"format-paused": "{status_icon}",
    "on-click": "playerctl play-pause",
    "on-click-middle": "playerctl previous",
    "on-click-right": "playerctl next",
    "scroll-step": 5.0,
    "on-scroll-up": "~/.config/hypr/scripts/RunCMD.sh volume --inc",
    "on-scroll-down": "~/.config/hypr/scripts/RunCMD.sh volume --dec",
    "smooth-scrolling-threshold": 1,
	"player-icons": {
        "chromium": "",
		"default": "",
        "firefox": "",
        "kdeconnect": "",
        "mopidy": "",
		"mpv": "󰐹",
        "spotify": "",
		"vlc": "󰕼",
	},
	"status-icons": {
		"paused": "󰐎",
        "playing": "",
        "stopped": "",
	},
	// "ignored-players": ["firefox"]
	"max-length": 30,
},

"custom/clip": {
    "format": "📋",
    "exec": "echo ; echo 📋 Copying List Menu",
	  "on-click": "~/.config/hypr/scripts/RunCMD.sh clip",
    "on-click-right": "~/.config/hypr/scripts/RunCMD.sh clip",
    "interval" : 86400, // once every day
    "tooltip": true,

},

// This is a custom cava visualizer
"custom/music": {
    "format": "{icon}{}",
    "format-icons": {
    // "Playing": " ", // Uncomment if not using the dynamic script
    "Paused": " ",
    "Stopped": "&#x202d;ﭥ " // This stop symbol is RTL. So &#x202d; is left-to-right override.
},
    "escape": true,
    "tooltip": true,
    "exec": "~/.config/hypr/scripts/RunCMD.sh caway -b 10",
    "return-type": "json",
    "on-click": "playerctl play-pause",
    "on-click-middle": "playerctl previous",
    "on-click-right": "playerctl next",
    "max-length": 30
},


"wlr/taskbar": {
  "format": "{icon}",
  "icon-size": 15,
  "all-outputs": false,
  "tooltip-format": "{title}",
  "on-click": "activate",
  "on-click-middle": "close",
  "ignore-list": [
        "wofi",
        "rofi",
                 ]
},

"custom/swaync": {
    "tooltip":true,
    "format": "{icon} {}",
    "format-icons": {
      "notification": "🔔<span foreground='red'><sup></sup></span>",
      "none": "🔔",
      "dnd-notification": "🔕<span foreground='red'><sup></sup></span>",
      "dnd-none": "🔕",
      "inhibited-notification": "🔔<span foreground='red'><sup></sup></span>",
      "inhibited-none": "🔔",
      "dnd-inhibited-notification": "🔕<span foreground='red'><sup></sup></span>",
      "dnd-inhibited-none": "🔕"

      //"none": "",
      //"notification": "<span foreground='red'><sup></sup></span>",
      //"dnd-notification": "<span foreground='red'><sup></sup></span>",
      //"dnd-none": "",
      //"inhibited-notification": "<span foreground='red'><sup></sup></span>",
      //"inhibited-none": "",
      //"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
      //"dnd-inhibited-none": ""
    },
    "return-type": "json",
    "exec-if": "which swaync-client",
    "exec": "swaync-client -swb",
    "on-click": "sleep 0.1 && swaync-client -t -sw",
    "on-click-right": "swaync-client -d -sw",
    "escape": true,
},

"custom/cycle_wall":{
    "format":" ",
    "exec": "echo ; echo 󰸉 wallpaper select",
    "on-click": "~/.config/hypr/scripts/RunCMD.sh selectwall",
    "on-click-right": "~/.config/hypr/scripts/RunCMD.sh randomwall",
    "interval" : 86400, // once every day
    "tooltip": true,
},

"custom/keybinds": {
  "format":"󰺁 HINT!",
  "exec": "echo ; echo  Key Hints SUPER F1",
  "interval": 86400, // once every day
  "tooltip": false,
  "on-click": "~/.config/hypr/scripts/RunCMD.sh keybind",
},

"custom/keyboard": {
  "exec": "cat ~/.cache/kb_layout",
	"interval": 1,
	"format": " {}",
	"on-click": "~/.config/hypr/scripts/RunCMD.sh kb",
	"tooltip": false,
},

"custom/lock": {
  "format": "󰌾 {}",
  "exec": "echo ; echo 󰷛  screen lock",
  "interval" : 86400, // once every day
  "on-click": "swaylock",
  "tooltip": false,
},

"custom/menu": {
  "format": " {}",
  "exec": "echo ; echo 󱓟 app launcher",
  "interval" : 86400, // once every day
  "tooltip": false,
  "on-click": "pkill rofi || rofi -show drun -modi drun,filebrowser,run,window -config ~/.config/rofi/launcher.rasi",
  "on-click-right": "~/.config/hypr/scripts/RunCMD.sh waybarl",
},


"custom/power": {
  "format": "⏻ {}",
  "exec": "echo ; echo 󰟡 power // blur",
  "interval": 86400,
  "tooltip": false,
  "on-click": "~/.config/hypr/scripts/RunCMD.sh powermenu",
  "on-click-right": "~/.config/hypr/scripts/RunCMD.sh blur",
},

// NOTE:! This is only for Arch and Arch Based Distros
"custom/updates":{
    "format": " {}",
    "exec": "checkupdates | wc -l",
    "exec-if": "[[ $(checkupdates | wc -l) ]]",
    "interval": 15,
    "on-click": "kitty -T update paru -Syu || yay -Syu && notify-send 'The system has been updated'",
},

    "custom/weather": {
      "exec": "curl -s 'https://wttr.in/kohalpur?format=2' | tr -d ' '",
      "tooltip": false,
      "interval": 900
      },
"temperature": {
    "interval": 10,
    "tooltip": true,
    "hwmon-path": ["/sys/class/hwmon/hwmon7/temp1_input"],
    //"thermal-zone": 0,
    "critical-threshold": 82,
    "format-critical": "{temperatureC}°C {icon}",
    "format": "{temperatureC}°C {icon}",
    "format-icons": ["🔥", "❤️‍🔥", "🌡️"],
    "on-click-right": "kitty --title nvtop sh -c 'nvtop'"
},

// Separators
"custom/separator#dot": {
  "format": "",
  "interval": "once",
  "tooltip": false
},

"custom/separator#dot-line": {
  "format": "",
  "interval": "once",
  "tooltip": false
},

"custom/separator#line": {
  "format": "|",
  "interval": "once",
  "tooltip": false
},

"custom/separator#blank": {
  "format": "",
  "interval": "once",
  "tooltip": false
},

"custom/separator#blank_2": {
  "format": "  ",
  "interval": "once",
  "tooltip": false
},

"custom/separator#blank_3": {
	"format": "   ",
    "interval": "once",
    "tooltip": false
},

// Modules below are for vertical layout

"backlight#vertical": {
	"interval": 2,
    "align": 0.4,
    "rotate": 1,
    "format": "{icon}",
   "format-icons": ["🔅", "🔆", "☀️"],
    "on-click": "",
    "on-click-middle": "",
    "on-click-right": "",
    "on-update": "",
    "on-scroll-up": "~/.config/hypr/scripts/RunCMD.sh brightness --inc",
    "on-scroll-down": "~/.config/hypr/scripts/RunCMD.sh brightness --dec",
    "smooth-scrolling-threshold": 1,
	  "tooltip-format": "{percent}%",
},

"clock#vertical": {
   //"format": "{:\n%H\n%M\n%S\n\n \n%d\n%m\n%y}",
   //"format": "{:\n%I\n%M\n%p\n\n \n%d\n%m\n%y}",
   "format": "{:🕰️\n%I\n%M\n%p\n\n🗓 \n%d\n%m\n%y}",
   "interval": 1,
   "tooltip": true,
   "tooltip-format": "{calendar}",
   "calendar": {
     "mode": "year",
     "mode-mon-col": 3,
     "format": {
     "today": "<span color='#0dbc79'>{}</span>",
     }
   }
},
"cpu#vertical": {
  //"format": "󰍛\n{usage}%",
  "format": "📊\n{usage}%",
  "interval": 1,
  "on-click-right": "gnome-system-monitor",
},

"memory#vertical": {
  "interval": 10,
  "format": "🧬\n{percentage}%",
  //"format": "󰾆\n{percentage}%",
  "format-alt": "🧬\n{used:0.1f}G",
  //"format-alt": "󰾆\n{used:0.1f}G",
  "format-alt-click": "click",
  "tooltip": true,
  "tooltip-format": "{used:0.1f}GB/{total:0.1f}G",
  "on-click-right": "kitty --title btop sh -c 'btop'",
},

"pulseaudio#vertical": {
  "format": "{icon}",
  "format-bluetooth": "󰂰",
  "format-muted": "󰖁",
  "format-icons": {
      "headphone": "",
      "hands-free": "",
      "headset": "",
      "phone": "",
      "portable": "",
      "car": "",
  "default": ["", "", "󰕾", ""],
  "tooltip-format": "{volume}%",
  "ignored-sinks": ["Easy Effects Sink"],
	},
  "scroll-step": 5.0,
  "on-click": "~/.config/hypr/scripts/RunCMD.sh volume --toggle",
  "on-click-right": "pavucontrol -t 3",
  "on-scroll-up": "~/.config/hypr/scripts/RunCMD.sh volume --inc",
  "on-scroll-down": "~/.config/hypr/scripts/RunCMD.sh volume --dec",
  "tooltip-format":"{volume}%",
  "smooth-scrolling-threshold": 1,
},

"pulseaudio#microphone_vertical": {
  "format": "{format_source}",
  "format-source": "󰍬",
  "format-source-muted": "󰍭",
  "on-click-right": "pavucontrol",
  "on-click": "~/.config/hypr/scripts/RunCMD.sh volume --toggle-mic",
  "on-scroll-up": "~/.config/hypr/scripts/RunCMD.sh volume --mic-inc",
  "on-scroll-down": "~/.config/hypr/scripts/RunCMD.sh volume --mic-dec",
  "max-volume": 100,
  "tooltip": true,
  "tooltip-format": "{volume}%",
},



"custom/power_vertical": {
  "format": "⏻",
  "exec": "echo ; echo 󰟡 power // blur",
  "on-click-right": "~/.config/hypr/scripts/RunCMD.sh blur",
  "on-click":"~/.config/hypr/scripts/RunCMD.sh powermenu",
  "interval": 86400, // once every day
  "tooltip": false,
},


}
