#!/bin/bash

# get screen size
read ROOTDIMS MX MY << EOF
`xwininfo -root | grep ' \-geometry ' | cut -f 1 -d '+' | tr 'x' ' '`
EOF

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

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 &
