[
// TOUCHSCREEN > RIGHT PANEL
{
    "layer": "top",
    "position": "right",
    "width": 100,
    "output": "DSI-1",
    "modules-left": [
        "clock#time",
        "clock#date",
        "sway/workspaces",
        "tray"
    ],
  
    "modules-center": [
    ],

    "modules-right": [
	"custom/terminal",
    	"custom/kill"
    ],

    "clock#time": {
        "interval": 10,
	"locale": "C",
	"timezone": "Europe/Berlin",
        "format": " {:%H:%M}",
        "tooltip": false,
	"on-click": "termite -e swayphone_menuselect"
    },

    "clock#date": {
        "interval": 20,
	"locale": "C",
	"timezone": "Europe/Berlin",
        "format": " {:%e %b %Y}", // Icon: calendar-alt
        //"tooltip-format": "{:%e %B %Y}"
        "tooltip": true,
	"on-click": "termite -e swayphone_menuselect"
    },

    "sway/mode": {
        "format": "<span style=\"italic\">  {}</span>",
        "tooltip": true
    },
    
    "sway/workspaces": {
        "all-outputs": false,
        "disable-scroll": true,
	"persistent_workspaces": {
		"1:STAT": [],
		"2:INV": [],
		"3:DATA": [],
		"4:MAP": [],
		"5:RADIO": []
	},
        "format": "{name}",
        "format-icons": {
            //"1:T": "", // Icon: terminal
            "3:F": "龜", // Icon: firefox-browser
            "8:M": "", // Icon: mail
            "urgent": "",
            "focused": "",
            "default": ""
        }
    },

    "custom/kill": {
	"on-click": "swaymsg kill",
	"format": "☢"
    },

    "custom/terminal": {
	"on-click": "termite",
	"format": "#>_"
    },

    "network": {
        "interval": 5,
        "format-wifi": "  {essid}", // Icon: wifi
        "format-ethernet": "  {ifname}", // Icon: ethernet
        "format-disconnected": "Disconnected",
        "tooltip-format": "{ifname}: {ipaddr}",
	"on-click": "swaymsg exec \"termite -e nmtui\""
    },

    "tray": {
        "icon-size": 22

        //"spacing": 10
    },
},
// TOUCHSCREEN > LEFT PANEL
{
    "layer": "top",
    "position": "left",
    "width": 15,
    "output": "DSI-1",

    "modules-left": [
        "cpu",
	"memory",
    	//"battery", // broken for some reason...
	"custom/battery",
	"temperature",
	"disk",
    	"backlight",
	"pulseaudio",
    ],
  
    "modules-center": [
    ],

    "modules-right": [
	//"custom/terminal",
	"custom/keyshow",
	"custom/keyhide"
    ],

    "custom/battery": {
	"exec": "waybar_battery",
	"interval": "2",
	"return-type": "json",
	"format": "⚛ {}"
    },

    "custom/kill": {
	"on-click": "swaymsg kill",
	"format": "☠"
    },

    "custom/keyshow": {
	"on-click": "swayphone_keyboard_show",
	"format": "K↥"
    },

    "custom/keyhide": {
	"on-click": "swayphone_keyboard_hide",
	"format": "K↧"
    },

    "custom/terminal": {
	"on-click": "termite",
	"format": ">_"
    },

    "cpu": {
        "interval": 5,
        "tooltip": false,
        "format": " {usage}%", //Icon: microchip
        "states": {
          "warning": 70,
          "critical": 90
        },
	"on-click": "termite -e \"htop --sort-key=PERCENT_CPU\""
    },

    "memory": {
        "interval": 5,
        "format": " {}%", // Icon: memory
        "states": {
            "warning": 70,
            "critical": 90
        },
	"on-click": "termite -e \"htop --sort-key=PERCENT_MEM\""
    },

    "temperature": {
	// "thermal-zone": 2,
	// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
	"critical-threshold": 60,
	"format-critical": " {temperatureC}°C",
	"format": " {temperatureC}°C"
    },

    "network": {
        "interval": 5,
        "format-wifi": "  {essid}", // Icon: wifi
        "format-ethernet": "  {ifname}", // Icon: ethernet
        "format-disconnected": "Disconnected",
        "tooltip-format": "{ifname}: {ipaddr}",
	"on-click": "swaymsg exec \"termite -e nmtui\""
    },

    "pulseaudio": {
        "scroll-step": 1,
        "format": "{icon} {volume}%",
        "format-bluetooth": "{icon} {volume}%",
        "format-muted": "",
        "format-icons": {
            "headphones": "",
            "handsfree": "",
            "headset": "",
            "phone": "",
            "portable": "",
            "car": "",
            "default": ["", ""]
        },
        "on-click": "pavucontrol"
    },

    "disk": {
        "interval": 5,
        "format": "✇ {percentage_used:2}%", // alt: 
        "path": "/"
   
    },

    "backlight": {
        // "device": "acpi_video1",
        "format": "{icon} {percent}% ",
        "states": [0,50],
        "format-icons": ["", ""],
	"on-click": "termite -e swayphone_backlightselect"
    },
},
// EXTERNAL MONITOR
{
    "layer": "top",
    "position": "bottom",
    "width": 100,
    "output": "!DSI-1",
    "modules-left": [
        "sway/workspaces#monitor"
    ],
  
    "modules-center": [
        "clock#time"
    ],

    "modules-right": [
        "tray",
        "clock#date"
    ],

    "clock#time": {
        "interval": 10,
	"locale": "C",
	"timezone": "Europe/Berlin",
        "format": " {:%H:%M}",
        "tooltip": false,
	"on-click": "termite -e swayphone_menuselect"
    },

    "clock#date": {
        "interval": 20,
	"locale": "C",
	"timezone": "Europe/Berlin",
        "format": " {:%e %b %Y}", // Icon: calendar-alt
        //"tooltip-format": "{:%e %B %Y}"
        "tooltip": true,
	"on-click": "termite -e swayphone_menuselect"
    },

    "sway/mode": {
        "format": "<span style=\"italic\">  {}</span>",
        "tooltip": true
    },
    
    "sway/workspaces#monitor": {
        "all-outputs": false,
        "disable-scroll": true,
	/*"persistent_workspaces": {
		"6:": [],
		"7:": [],
		"8:": [],
		"9:": [],
		"0:": []
	},*/
        "format": "{name}",
        "format-icons": {
            //"1:T": "", // Icon: terminal
            "3:F": "龜", // Icon: firefox-browser
            "8:M": "", // Icon: mail
            "urgent": "",
            "focused": "",
            "default": ""
        }
    },

    "network": {
        "interval": 5,
        "format-wifi": "  {essid}", // Icon: wifi
        "format-ethernet": "  {ifname}", // Icon: ethernet
        "format-disconnected": "Disconnected",
        "tooltip-format": "{ifname}: {ipaddr}",
	"on-click": "swaymsg exec \"termite -e nmtui\""
    },

    "tray": {
        "icon-size": 22

        //"spacing": 10
    },
}
]

