#!/bin/bash

echo "Stopping and restarting zramswap" > /tmp/zramswap
zramswap stop 2>/dev/null && zramswap start 2>/dev/null > /tmp/zramswap
RESTART=$(cat /tmp/zramswap)
`yad --center --width=450 --height=100 --fixed --center \
--window-icon="/usr/share/icons/hicolor/48x48/apps/zram-tools.png" \
    --title="ZramSwap Output" \
    --text="\n$RESTART" \
    --fore="#FFFFFF" --back="#333333" \
    --fontname="monospace 10" --button=gtk-ok:0`
exit 0 
