#!/bin/bash
##########################################################
# Inxi-gui, displays information about your pc hardware  #
#                                                        #
# Gui Author Ken Dotson <lxgator@gmail.com>              #
#                                                        #
##########################################################
# about
CANCEL='Cancel!/usr/share/inxi-gui/data/icons/cancel.svg'
PID=`ps -eaf | grep "inxi-gui" | grep -v grep | awk '{print $2}'`
if [[ "" !=  "$PID" ]]; then
rm -f /tmp/inxi > /dev/null 2>&1
kill -9 $PID > /dev/null 2>&1
ICON='/usr/share/icons/hicolor/48x48/apps/inxi-gui.svg'
yad --width=475 --height=100 --center --fixed --text='\nInxi gui displays information about your pc hardware\n© 2025 <b><a href="http://www.pclosdebian.com/">http://pclosdebian.com/</a></b> Community development\n' \
--window-icon=$ICON \
--image=$ICON \
--title='	Inxi GUI' \
--button=$CANCEL:1
exec inxi-gui
fi &



