#!/bin/bash

zramswap start 2>/dev/null > /tmp/zramswap
sleep 0.50;
if [ ! -s "/tmp/zramswap" ]; then
echo "Zramswap has been started and running!" > /tmp/zramswap 
fi
START=$(cat /tmp/zramswap)
`yad --center --width=400 --height=100 --fixed --center \
--window-icon="/usr/share/icons/hicolor/48x48/apps/zram-tools.png" \
    --title="ZramSwap Output" \
    --text="\n$START" \
    --fore="#FFFFFF" --back="#333333" \
    --fontname="monospace 10" --button=gtk-ok:0`
exit 0
    
