{
    "layer": "top",
    "margin-top": 0,
    "spacing": 5,
    "modules-left": [
        "group/sys",
        "niri/workspaces",
        "tray",

        "wlr/taskbar",
        "niri/window"
    ],
    "modules-center": [
        
    ],
    "modules-right": [
        "mpris",
        "custom/cpugov",
        "group/net",
        "group/sound",
        "group/indicators"
    ],
    "group/indicators": {
        "orientation": "inherit",
        "modules": [
            "gamemode",
            "custom/updates",
            "idle_inhibitor",
            "custom/screenshader",
            "privacy"
        ]
    },
    "group/net": {
        "orientation": "inherit",
        "modules": [
            "custom/vpn",
            "network",
            "bluetooth"
        ]
    },
    "group/stats": {
        "orientation": "inherit",
        "modules": [
            "custom/cpugov",
            "cpu",
            "memory",
            "custom/gpu-usage"
        ],
        "drawer": {
            "transition-duration": 500,
            "transition-left-to-right": false
        }
    },
    "group/sound": {
        "orientation": "inherit",
        "modules": [
            "pulseaudio",
            "pulseaudio/slider"
        ],
        "drawer": {
            "transition-duration": 500,
            "transition-left-to-right": true
        }
    },
    "group/sys": {
        "orientation": "inherit",
        "modules": [
            "custom/power",
            "clock"
        ]
    },
    "network": {
        "format-wifi": "{icon}",
        "format-ethernet": " {ifname}",
        "format-disconnected": "󰱟 Offline",
        "tooltip-format": "󰊗 {ifname} via {gwaddr}",
        "tooltip-format-wifi": "  WiFi {essid} ({signalStrength}%)",
        "tooltip-format-ethernet": "󰱔 {ifname}",
        "tooltip-format-disconnected": "Disconnected",
        "on-click": "nm-connection-editor",
        "format-icons": [
            "󱛅",
            "󱛂",
            "󱛃",
            "󱚽"
        ],
        "max-length": 5
    },
    "tray": {
        "icon-size": 15,
        "spacing": 10
    },
    "clock": {
        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
        "format-alt": "<b>{:%d.%m.%Y %H:%M}</b>",
        "format": "<b>{:%d.%m. %H:%M}</b>",
        "timezone": "DE",
        "calendar": {
            "mode": "month",
            "mode-mon-col": 3,
            "weeks-pos": "right",
            "on-scroll": 1,
            "on-click-right": "mode",
            "format": {
                "months": "<span color='#b4befe'><b>{}</b></span>",
                "days": "<span color='#bac2de'><b>{}</b></span>",
                "weeks": "<span color='#f5e0dc'><b>W{}</b></span>",
                "weekdays": "<span color='#f9e2af'><b>{}</b></span>",
                "today": "<span color='#f38ba8'><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",
            "on-click-middle": "alarm-clock-applet"
        }
        // "on-click": "evolution"
    },
    "user": {
        "format": "{user}",
        "interval": 240,
        "icon": false,
        "height": 16,
        "width": 16,
        "open-on-click": false
    },
    "pulseaudio": {
        "format": "{format_source} {icon} <small>{volume}%</small>",
        "format-bluetooth": "{icon} {volume}% {format_source}",
        "format-bluetooth-muted": "{icon} {format_source}",
        "format-muted": "{icon} <b>0</b>%",
        "format-source": "",
        "format-source-muted": "",
        "format-icons": {
            "headphone": "",
            "hands-free": "",
            "headset": "",
            "phone": "",
            "portable": "",
            "car": "",
            "default": [
                "",
                "",
                "󰕾"
            ]
        },
        "on-click": "$HOME/.config/rofi/audio/rofi-sink-switcher.sh &",
        "on-click-right": "pavucontrol",
        "scroll-step": 5.0,
        "max-volume": 99
    },
    "pulseaudio/slider": {
        "min": 0,
        "max": 99,
        "orientation": "horizontal"
    },
    "mpris": {
        "format": "⏸ {title:.10}",
        "format-paused": "▶ {player}",
        "player-icons": {
            "default": "⏸",
            "mpv": "🎵",
            "spotify": "",
            "firefox": "󰈹",
            "mercury": "󰈹"
        },
        "status-icons": {
            "paused": "⏸"
        }
    },
    "custom/power": {
        "format": "󰣇",
        "menu": "on-click",
        "menu-file": "~/.config/waybar/session_menu.xml",
        "menu-actions": {
            "lock": "hyprlock",
            "logout": "hyprctl dispatch exit",
            "hibernate": "systemctl hibernate",
            "reboot": "systemctl reboot",
            "suspend": "systemctl suspend",
            "shutdown": "systemctl poweroff"
        }
    },
    "gamemode": {
        "format": "{glyph}<small>{count}</small>",
        "format-alt": "{glyph}",
        "glyph": "",
        "hide-not-running": true,
        "use-icon": true,
        "icon-name": "input-gaming-symbolic",
        "icon-spacing": 1,
        "icon-size": 12,
        "tooltip": true,
        "tooltip-format": "Games running: {count}"
    },
    "wlr/taskbar": {
        "markup": true,
        "format": "{icon}",
        "icon-size": 20,
        "tooltip-format": "{title:.100}",
        // "sort-by-app-id": true,
        "on-click": "activate",
        "on-click-middle": "close",
        "on-right-middle": "minimize-raise",
        "active-first": false,
        "ignore-list": ["title<>"],
        "app_ids-mapping": {
            "firefoxdeveloperedition": "firefox-developer-edition"
        },
        "rewrite": {
            "Mozilla Firefox": "Firefox",
            "firefox": "Firefox",
            "VSCodium": "Code",
            "codium": "Code",
            "Alacritty": "Terminal",
        },
        "squash-list": [
            "firefox"
        ]
    },
    "hyprland/workspaces": {
        "format": "{name} {windows}",
        "active-only": false,
        "window-rewrite-default": "󰘔",
        "on-click": "activate",
        "format-window-separator": " ",
        "format-icons": {
            "urgent": "",
            "focused": "",
            "active": "",
            "default": ""
        },
        "window-rewrite": {
            "firefox": "",
            "mercury-default": "",
            "LibreWolf": "",
            "celluloid": "",
            "videostream": "",
            "mpv": "",
            "rust": "",
            "private browsing": "",
            "google": "",
            "chrome": "",
            "Chromium": "",
            "nemo": "",
            "pcmanfm": "",
            "libreoffice calc": "",
            "libreoffice writer": "󰈙",
            "libreoffice": "󰈙",
            "vim": "",
            "nvim": "",
            "viewnior": "",
            "transmission": "",
            "music": "",
            "audacious": "",
            "webcord": "󰙯",
            "armcord": "󰙯",
            "goofcord": "󰙯",
            "discord": "󰙯",
            "Steam": "󰓓",
            "Teams": "󰊻",
            "kitty": "",
            "alacritty": "",
            "foot": "",
            "code": "󰨞",
            "codium": "󰅨",
            "subl": "",
            "title<>": ""
        },
        "sort-by-number": true
    },
    "hyprland/window": {
        "format": "{title}",
        "icon": false,
        "icon-size": 16,
        "separate-outputs": true
    },
    "custom/updates": {
        "format": "{icon}",
        "return-type": "json",
        "format-icons": {
            "has-updates": "󱍷",
            "updated": "󰂪"
        },
        "exec-if": "which waybar-module-pacman-updates",
        "exec": "waybar-module-pacman-updates",
        "on-click": "alacritty paru"
    },
    "custom/dnd": {
        "format": " {} ",
        "exec": "hyprm-dnd",
        "return-type": "json",
        "on-click": "dunstctl set-paused toggle",
        "restart-interval": 1,
    },
    "custom/screenshader": {
        "format": " {} ",
        "menu": "on-click",
        "menu-file": "~/.config/waybar/screenshader.xml",
        "menu-actions": {
            "blue-light-heavy": "hyprctl hyprsunset temperature 5000",
            "blue-light-soft": "hyprctl hyprsunset temperature 5500",
            "off": "hyprctl hyprsunset identity"
        },
        "exec-if": "hyprshade",
        "exec": "hyprshade-waybar",
        "return-type": "json",
        "restart-interval": 1000
    },
    "custom/notification": {
        "tooltip": false,
        "format": "{icon} {}",
        "format-icons": {
            "notification": "󰂞",
            "none": "󰂜",
            "dnd-notification": "󰂛",
            "dnd-none": "󰂛",
            "inhibited-notification": "󰂜",
            "inhibited-none": "󰂜",
            "dnd-inhibited-notification": "󰂛",
            "dnd-inhibited-none": "󰂛"
        },
        "return-type": "json",
        "exec-if": "which sync-client",
        "exec": "swaync-client -swb",
        "on-click": "sh -c 'sleep 0.1s; swaync-client -t -sw; sleep 0.1s'",
        "on-click-right": "swaync-client -d -sw",
        "escape": true
    },
    "cava": {
        //        "cava_config": "$XDG_CONFIG_HOME/cava/cava.conf",
        "framerate": 30,
        "autosens": 1,
        //"sensitivity": 50,
        "bars": 2,
        "lower_cutoff_freq": 50,
        "higher_cutoff_freq": 10000,
        "method": "pipewire",
        "source": "auto",
        "stereo": true,
        "reverse": false,
        "bar_delimiter": 0,
        "monstercat": true,
        "hide_on_silence": true,
        "waves": true,
        "noise_reduction": 0.77,
        "input_delay": 2,
        "sleep_timer": 5,
        "format-icons": [
            "▁",
            "▂",
            "▃",
            "▄",
            "▅",
            "▆",
            "▇",
            "█"
        ],
        "actions": {
            "on-click-right": "mode"
        }
    },
    "cpu": {
        "interval": 10,
        "format": "CPU {icon}",
        "max-length": 10,
        "format-icons": [
            "<span color='#69ff94' size='8pt' rise='1.5pt'>▁</span>", // green
            "<span color='#2aa9ff' size='8pt' rise='1.5pt'>▂</span>", // blue
            "<span color='#f8f8f2' size='8pt' rise='1.5pt'>▃</span>", // white
            "<span color='#f8f8f2' size='8pt' rise='1.5pt'>▄</span>", // white
            "<span color='#ffffa5' size='8pt' rise='1.5pt'>▅</span>", // yellow
            "<span color='#ffffa5' size='8pt' rise='1.5pt'>▆</span>", // yellow
            "<span color='#ff9977' size='8pt' rise='1.5pt'>▇</span>", // orange
            "<span color='#dd532e' size='8pt' rise='1.5pt'>█</span>" // red
        ]
    },
    "memory": {
        "interval": 30,
        "format": "MEM {icon}",
        "max-length": 10,
        "tooltip": true,
        "format-icons": [
            "<span color='#69ff94' size='8pt' rise='1.5pt'>▁</span>", // green
            "<span color='#2aa9ff' size='8pt' rise='1.5pt'>▂</span>", // blue
            "<span color='#f8f8f2' size='8pt' rise='1.5pt'>▃</span>", // white
            "<span color='#f8f8f2' size='8pt' rise='1.5pt'>▄</span>", // white
            "<span color='#ffffa5' size='8pt' rise='1.5pt'>▅</span>", // yellow
            "<span color='#ffffa5' size='8pt' rise='1.5pt'>▆</span>", // yellow
            "<span color='#ff9977' size='8pt' rise='1.5pt'>▇</span>", // orange
            "<span color='#dd532e' size='8pt' rise='1.5pt'>█</span>" // red
        ]
    },
    "custom/cpugov": {
        "exec": "hyprm-waybar-cpugov",
        "return-type": "json",
        "restart-interval": 10,
        "on-click": "$HOME/.config/rofi/cpugov/rofi-cpugov.sh"
    },
    "custom/gpu-usage": {
        "exec": "hyprm-waybar-gpustat",
        "return-type": "json",
        "restart-interval": 10
    },
    "battery": {
        "interval": 60,
        "states": {
            "warning": 30,
            "critical": 15
        },
        "format": "{capacity}% {icon}",
        "format-icons": [
            "",
            "",
            "",
            "",
            ""
        ],
        "max-length": 25
    },
    "bluetooth": {
        // "controller": "controller1", // specify the alias of the controller if there are more than 1 on the system
        "format": " {status}",
        "format-disabled": "󰂲", // an empty format will hide the module
        "format-connected": "<small>{num_connections}</small>",
        "tooltip-format": "{controller_alias}\t{controller_address}",
        "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}\t{device_battery_percentage}%",
        "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
        "on-click": "blueberry"
    },
    "idle_inhibitor": {
        "format": "{icon}",
        "format-icons": {
            "activated": "󱎴",
            "deactivated": "󰷛"
        },
        "tooltip-format-activated": "󱎴  No Lockscreen on idle",
        "tooltip-format-deactivated": "󰷛  Lockscreen on idle"
    },
    "custom/vpn": {
        "format": "󰖂",
        "exec": "echo '{\"class\": \"connected\", \"tooltip\": \"VPN Connected\"}'",
        "exec-if": "test -d /proc/sys/net/ipv4/conf/tun0",
        "return-type": "json",
        "interval": 5
    },
    "power-profiles-daemon": {
        "format": "{icon}",
        "tooltip-format": "Power profile: {profile}\nDriver: {driver}",
        "tooltip": true,
        "format-icons": {
            "default": "󰓅",
            "performance": "󰓅",
            "balanced": "󰾅",
            "power-saver": "󰌪"
        }
    },
    "privacy": {
        "icon-spacing": 4,
        "icon-size": 12,
        "transition-duration": 250,
        "modules": [
            {
                "type": "screenshare",
                "tooltip": true,
                "tooltip-icon-size": 12
            },
            {
                "type": "audio-out",
                "tooltip": true,
                "tooltip-icon-size": 12
            },
            {
                "type": "audio-in",
                "tooltip": true,
                "tooltip-icon-size": 12
            }
        ]
    },
    "custom/weather": {
        "exec": "hyprm-waybar-weather NRW+Germany",
        "return-type": "json",
        "format": "{}",
        "tooltip": true,
        "interval": 3600
    },
    "niri/workspaces": {
        "format": "{icon}",
        "format-icons": {
            // Named workspaces
            // (you need to configure them in niri)
            "browser": "",
            "discord": "",
            "chat": "<b></b>",

            // Icons by state
            "active": "",
            "default": ""
        }
    },
    "niri/window": {
        "format": "{}",
        "rewrite": {
            "(.*) - Mozilla Firefox": "🌎 $1",
            "(.*) - zsh": "> [$1]"
        }
    }
}