#!/bin/sh

tep=`cat /proc/acpi/thermal_zone/THRM/temperature | grep -o '[0-9]* C'`
#up=`uptime | cut -d ',' -f 1 | grep -o '[^ ].*'`
up=`uptime | sed 's/^[0-9: ]*up \(.*\),[0-9 ]*user.*$/\1/'`
df=`df -Thl | grep -e '^/dev/hd'`

#zenity --info --text "Hello world !\nTeplota CPU:\t\t$tep\nuptime:\t\t\t$up"
#zenity --info --text "Hello world !\t\t$tep\nuptime:\t\t$up\n\n$df\n"

zenity --list --width 540 --height 270 --title "Informace"		\
	--text "Uptime:\t\t$up\n\nMísto na discích:"			\
	--column "Filesystem  "						\
	--column "Type     "						\
	--column "Size     "						\
	--column "Used     "						\
	--column "Avail      "						\
	--column "Use %   "						\
	--column "Mounted on"						\
	--separator=' ' $df

