#!/bin/bash
# called by sfwbar pupusage.widget (right-click)

gtkdialog-splash -close never -placement top -fontsize large -bg goldenrod -text " Please wait, processing... " &
XPID=$!
. /usr/local/Pup-SysInfo/func -sysinfo_storage
. /usr/local/Pup-SysInfo/func -sysinfo_memory
cat /tmp/sysinfo-memory | sed -e 's/ MB/   /g' -e 's/Allocation:/Allocation:          (MB)/' | grep -v '——' | Xdialog --fixed-font --title "Memory and Storage" --under-mouse --no-cancel --textbox "-" 25 125 2>/dev/null &
kill $XPID
