[
	{
		"layer": "top",
		"position": "bottom",
		"modules-center": ["image#pfp", "wlr/taskbar"],
		"image#pfp": {
			"path": "/home/deadvey/pictures/pfp.png",
			"size": 30,
			"interval": 20,
			"on-click": "fuzzel",
		},
		"wlr/taskbar": {
		    "format": "{icon}",
		    "icon-size": 30,
		    "icon-theme": "Gruvbox-Dark",
		    "tooltip-format": "{name}",
		    "on-click": "activate",
		    "on-click-right": "minimize",
		    "on-click-middle": "close",
		    "ignore-list": [
		       "Alacritty"
		    ],
		    "app_ids-mapping": {
		      "firefoxdeveloperedition": "firefox-developer-edition"
		    },
		    "rewrite": {
			"Firefox Web Browser": "Firefox",
			"Foot Server": "Terminal"
		    }
		}
	},
	{
		"layer": "top",
		"position": "top",
		"height": 30,
		"mode": "dock",
		"modules-left": [
			"hyprland/workspaces", 
		],
		"modules-center": [
			"clock"
		],
		"modules-right": [
			"tray",
			"group/specs",
			"group/cmus",
			"group/audio",
			"network",
			"group/power",
		],
		"tray": {
			"spacing": 20,
		},
		"group/audio": {
			"orientation": "inherit",
			"drawer": {
				"transition-duration": 300,
				"children-class": "not-power",
				"transition-right-to-left": true,
			},
			"modules": ["pulseaudio","pulseaudio/slider"],
		},
		"group/power": {
		    "orientation": "inherit",
		    "drawer": {
			"transition-duration": 300,
			"children-class": "not-power",
			"transition-right-to-left": true,
		    },
		    "modules": [
			"custom/power", // First element is the "group leader" and won't ever be hidden
			"custom/quit",
			"custom/lock",
			"custom/reboot",
		    ]
		},
		"custom/quit": {
		    "format": "󰗼",
		    "tooltip": false,
		    "on-click": "hyprctl dispatch exit"
		},
		"custom/lock": {
		    "format": "󰍁",
		    "tooltip": false,
		    "on-click": "hyprlock"
		},
		"custom/reboot": {
		    "format": "󰜉",
		    "tooltip": false,
		    "on-click": "reboot"
		},
		"custom/power": {
		    "format": "",
		    "tooltip": false,
		    "on-click": "shutdown now"
		},
		"memory": {
			"format": "{used}/{total} GB  ",
			"on-click": "flatpak run io.github.cosmic_utils.Examine",
 		},
		"cpu": {
			"format": "{}%  ",
			"on-click": "flatpak run io.github.cosmic_utils.Examine",
		},
		"group/specs": {
			"orientation": "inherit",
			"drawer": {
				"transition-duration": 300,
				"transition-right-to-left": true
			},	
			"modules": ["custom/specsicon","cpu", "memory"],
		},
		"custom/specsicon": {
			"format": " ",
			"on-click": "flatpak run io.github.cosmic_utils.Examine",
		},
		"group/cmus": {
			"orientation":  "inherit",
			"drawer": {
				"transition-duration": 300,
				"transition-right-to-left": true
			},	
			"modules": ["custom/cmusicon","custom/cmussong","custom/cmusartist"],
		},
		"custom/cmusicon": {
			"format": " ",
			"on-click": "ssh max@192.168.1.193 cmus-remote -u",
			"on-click-right": "ssh max@192.168.1.193 cmus-remote -n",
			"on-scroll-down": "ssh max@192.168.1.193 cmus-remote -v -10%",
			"on-scroll-up": "ssh max@192.168.1.193 cmus-remote -v +10%",
		},
		"custom/cmussong": {
			"exec": "ssh max@192.168.1.193 cmus-remote -Q | grep title | sed 's/tag title //'",
			"format": "{}",
			"interval": 1,
			"on-click": "ssh max@192.168.1.193 cmus-remote -u",
			"on-click-right": "ssh max@192.168.1.193 cmus-remote -n",
			"on-scroll-down": "ssh max@192.168.1.193 cmus-remote -v -10%",
			"on-scroll-up": "ssh max@192.168.1.193 cmus-remote -v +10%",
		},
		"custom/cmusartist": {
			"exec": "ssh max@192.168.1.193 cmus-remote -Q | grep albumartist | sed 's/tag albumartist //'",
			"format": "{}",
			"interval": 1,
			"on-click": "ssh max@192.168.1.193 cmus-remote -u",
			"on-click-right": "ssh max@192.168.1.193 cmus-remote -n",
			"on-scroll-down": "ssh max@192.168.1.193 cmus-remote -v -10%",
			"on-scroll-up": "ssh max@192.168.1.193 cmus-remote -v +10%",
		},
		"hyprland/workspaces": {
			"disable-scroll": true,
			"show-special": true,
			"all-outputs": true,
			"move-to-monitor": false,
			"wrap-on-scroll": false,
			"format": "{icon}{name}",
			"format-active": "[{name}]",
			"format-icons": {
				"urgent": "!",
				"active": "",
				"default": ""
			},
			"persistent-workspaces": {
				"*": [ 1,2,3,4,5,6,7,8,9,0 ],
			},
		},
		"network": {
		    "interface": "enp5s0",
		    "format": "{ifname}",
		    "format-wifi": " ",
		    "format-ethernet": " ",
		    "format-disconnected": "", //An empty format will hide the module.
		    "tooltip-format": "{ifname} via {gwaddr} 󰊗",
		    "tooltip-format-wifi": "{essid} ({signalStrength}%) ",
		    "tooltip-format-ethernet": "{ipaddr}   {ifname}",
		    "tooltip-format-disconnected": " ",
		    "max-length": 50
		},
		"custom/seperator": {
			"format": "|",
		},
		"server-cava": {
			"exec": "ssh max@192.168.1.193 bash /home/max/caway.sh",
			"format": "{}",
			"interval": 30,
		},
		"pulseaudio/slider": {
		    "min": 0,
		    "max": 100,
		    "orientation": "horizontal"
		},
		"pulseaudio": {
		    "format": "{icon}",
		    "format-bluetooth": "{volume}% {icon}",
		    "format-muted": " ",
		    "format-icons": {
			"alsa_output.pci-0000_00_1f.3.analog-stereo": "",
			"alsa_output.pci-0000_00_1f.3.analog-stereo-muted": "",
			"headphone": "",
			"hands-free": "",
			"headset": "",
			"phone": "",
			"phone-muted": "",
			"portable": "",
			"car": "",
			"default": [" ", " "]
		    },
		    "scroll-step": 5,
		    "on-click": "pavucontrol",
		    "ignored-sinks": ["Easy Effects Sink"]
		},
		"clock": {
			"format": "{:%a, %d %b %Y %H:%M:%S %p}",
			"interval": 1,
			"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-scroll-up": "tz_up",
			    "on-scroll-down": "tz_down",
			    "on-scroll-up": "shift_up",
			    "on-scroll-down": "shift_down"
			}
		},
		"custom/temperature": {
			"format": "{} ",
			"exec": "sensors | grep 'Tctl:' | sed -E 's/Tctl:[ ]+//' | sed -E 's/[ ]+//'",
			"interval": 1,
		},
		"custom/time": {
			"exec": "bash $HOME/scripts/time.sh --hex",
			"format": "{}",
			"interval": 1,
		},
		"custom/server-cava": {
			"exec": "ssh max@192.168.1.193 bash /home/max/caway.sh",
			"format": "{}",
			"interval": 1,
		},
	}
]
