// -*- mode: json -*-

{
	"layer": "top",
	"position": "bottom",
    "height" : 36,

	"modules-left": [
        "niri/workspaces",
	],
	"modules-center": [
		"clock",
	],
	"modules-right": [
		"tray",
		"pulseaudio",
        "network",
		"battery",
	],

    "river/tags": {
        "format": "{icon}",
        "format-icons": {
            "1": " 1 ",
            "2": " 2 ",
            "3": " 3 ",
            "4": " 4 ",
            "5": " 5 ",
            "6": " 6 ",
            "7": " 7 ",
            "8": " 8 ",
            "9": " 9 ",
        },
    },

    "clock": {
        "format": "{:%H:%M %A, %B %d}",
        "tooltip": false
    },

    "pulseaudio": {
        "format": "{icon} {volume:2}%",
        "format-bluetooth": "{icon}  {volume}%",
        "format-muted": "MUTE",
        "format-icons": {
            "headphones": "",
            "default": [
                "",
                ""
            ]
        },
        "scroll-step": 5,
        "on-click": "pamixer -t",
        "on-click-right": "pavucontrol"
    },

    "network": {
        "interface": "wlan0",
        "format": "{ifname}",
        "format-wifi": "{essid} ({signalStrength}%)  ",
        "format-ethernet": "{ipaddr}/{cidr} ",
        "format-disconnected": "",
        "tooltip-format": "{ifname} via {gwaddr} ",
        "tooltip-format-wifi": "{essid} ({signalStrength}%)  ",
        "tooltip-format-ethernet": "{ifname} ",
        "tooltip-format-disconnected": "Disconnected",
        "max-length": 50
    },

    "battery": {
        "bat": "BAT0",
        "interval": 60,
        "states": {
            "good": 95,
            "warning": 30,
            "critical": 15
        },
        "format": "{icon}  {capacity}%",
        "format-icons": [
            "",
            "",
            "",
            "",
            ""
        ]
    },

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

    "niri/workspaces": {
        "format": "{icon}",
        "format-icons": {
            "active": "",
            "default": ""
        }
    }
}
