// -*- mode: json -*-


{
	"layer": "top",
	"position": "top",
    "output":   "DP-1",

	"modules-left": [
		"hyprland/workspaces",
	],
	"modules-center": [
    "custom/firefox",
    "custom/nemo",
    "custom/updates"
	],
	"modules-right": [
		"pulseaudio",
		"clock#1",
		"tray",
        "custom/powermenu"
	],



    "hyprland/workspaces": {
        "on-click": "activate",
        "format": " {icon} ",
        "format-icons": {
            "1": " ",
            "2": " ",
            "3": " ",
            "4": " ",
            "5": "󰘧",
            "6": " ",
            "7": " ",
            "8": " ",
            "9": " ",
            "10": "󰯅 "
        },
    },

    "custom/firefox": {
        "format": "{}  ",
        "tooltip": false,
        "on-click": "flatpak run net.waterfox.waterfox"
    },


    "custom/nemo": {
        "format": "{}  ",
        "tooltip": false,
        "on-click": "nemo"
    },

    "custom/updates": {
        "return-type": "json",
        "text": "{text}  ",
        "interval": 300,
        "exec": "$HOME/.config/waybar/scripts/dnf-updates.sh",
        "tooltip": "{tooltip} "
        },


    "clock#1": {
		"format": "{:%a %I:%M %m-%d}",
        "on-click": "bash $HOME/.config/waybar/scripts/calendar.sh > /dev/null 2>&1",
		"tooltip": false
	},

	"pulseaudio": {
		"format": "{icon} {volume:2}%",
		"format-bluetooth": "{icon}  {volume}%",
		"format-muted": "MUTE",
		"format-icons": {
			"headphones": " ",
			"default": [
				" ",
				" "
			]
		},
		"scroll-step": 5,
		"on-click": "quickshell -p ~/.config/quickshell/audio/audioWidget.qml > /dev/null 2>&1",
		"on-click-right": "pamixer -t"
	},

    "tray": {
		"icon-size": 18
	},

    "custom/powermenu": {
        "format": "{} ",
        "tooltip": false,
        "on-click": "~/.config/rofi/rofipowermenu/powermenu.sh"
    }

}
