From a45dc7464f64449f2378488cc3fb2dfc0afd1e64 Mon Sep 17 00:00:00 2001 From: mollusk Date: Tue, 9 May 2017 21:31:02 -0700 Subject: [PATCH] trb.sh: trim SSDs with zenity gui --- trb.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 trb.sh diff --git a/trb.sh b/trb.sh new file mode 100755 index 0000000..e0fdade --- /dev/null +++ b/trb.sh @@ -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