#!/bin/bash

# get screen size
read MX MY << EOF
`wlr-randr | grep -m1 'current' | awk '{print $1}' | tr 'x' ' '`
EOF

# set size of inxi window
HEIGHT=`expr $MY / 22`
WIDTH=`expr $MX / 9`

inxi -Fxz -c 0 | perl -pe 's/[^[:ascii:]]//g' | sed -e 's/[©®–]//g' | Xdialog --fixed-font --title "Inxi System Information" --no-cancel --textbox "-" $HEIGHT $WIDTH &
