trb.sh: trim SSDs with zenity gui

This commit is contained in:
mollusk 2017-05-09 21:31:02 -07:00
parent 51ff95afac
commit a45dc7464f

13
trb.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
zenity --question --text "Do you want to trim?"
if [[ $? == 1 ]];then
exit
else
results=$(pkexec /sbin/fstrim -va)
notify-send "${results}"
fi