LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lite Tweaks - Suggestions welcomed
#11
(09-05-2014, 02:03 PM)misko_2083 link Wrote: May I see the code? I have a few ideas.

Sure, keep in mind I haven't written any of the scripts yet, just this:

Code:
#! /bin/bash
#--------------------------------------------------------------------------------------------------------
# Name: Linux Lite Cleaner
# Description: A GUI tool to easily clean your Linux Lite system.
# Authors: Misko_2083, Jerry Bezencon
# Date: September 9th, 2014
# Website: https://www.freecinema2022.gq
#--------------------------------------------------------------------------------------------------------
ic="/usr/share/icons/zenity-llcc.png"

selection=$(zenity --window-icon="$ic" --list --checklist --width=890 --height=400 --column="Select" --column="Name" --column="Category" --column="Status" \
--column="Description" --text="Select the task you wish to perform, then click the Clean button. Sort Categories by clicking on the column.\n\nThere are 3 levels of Status:\n<b>Safe</b> - Safe to perform, no harm can be done.\n<b>Caution</b> - Proceed with caution, read the warning on the proceeding step.\n<b>Title</b> - Text go here.\n\nYou can select multiple tasks to perform." --title="Lite Cleaner" --ok-label="Clean" --cancel-label="Quit" \
"1" "Clean package cache" "Packages" "Safe" "Clean downloaded .deb files from your apt cache" \
"2" "Autoremove packages" "Packages" "Safe" "Remove packages automatically installed for programs and that are no longer present" \
"3" "Clear thumbnail cache" "Images" "Safe" "Delete thumbnail files created when viewing images" \
"4" "Empty all Trash Bins" "Home" "Safe" "Empty the Trash Bins for all users" \
"5" "Remove old kernels" "System" "Caution" "Remove kernels you no longer wish to boot from" )

# Exec scripts

echo $selection | grep "Clean package cache" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/aptgetclean 2>/dev/null
fi

echo $selection | grep "Autoremove packages" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/autoremovepkg 2>/dev/null
fi

echo $selection | grep "Clear thumbnail cache" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/thumbnails 2>/dev/null
fi

echo $selection | grep "Empty all Trash Bins" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/emptytrash 2>/dev/null
fi

echo $selection | grep "Remove old kernels" > /dev/null
if [ $? = 0 ];then
/usr/scripts/clean/remkernels 2>/dev/null
fi

Reply


Messages In This Thread
Lite Tweaks - Suggestions welcomed - by Valtam - 09-04-2014, 08:51 PM
Re: Lite Cleaner - Suggestions welcomed - by Alex - 09-04-2014, 10:17 PM
Re: Lite Cleaner - Suggestions welcomed - by Valtam - 09-05-2014, 09:28 PM
Re: Lite Cleaner - Suggestions welcomed - by Alex - 09-06-2014, 11:17 PM
Re: Lite Cleaner - Suggestions welcomed - by Alex - 09-16-2014, 01:05 AM
Re: Lite Cleaner - Suggestions welcomed - by Alex - 09-16-2014, 07:40 AM
Re: Lite Cleaner - Suggestions welcomed - by Alex - 09-16-2014, 10:45 AM
Re: Lite Cleaner - Suggestions welcomed - by bobw - 09-16-2014, 04:55 PM
Re: Lite Cleaner - Suggestions welcomed - by mpig - 09-17-2014, 07:16 AM
Re: Lite Cleaner - Suggestions welcomed - by bobw - 09-17-2014, 07:45 AM
Re: Lite Cleaner - Suggestions welcomed - by Alex - 09-18-2014, 08:20 AM
Re: Lite Cleaner - Suggestions welcomed - by eightbit - 09-29-2014, 05:11 AM
Re: Lite Cleaner - Suggestions welcomed - by bobw - 11-04-2014, 09:32 AM
Re: Lite Cleaner - Suggestions welcomed - by bobw - 11-04-2014, 01:47 PM
Re: Lite Tweaks - Suggestions welcomed - by N4RPS - 02-20-2015, 12:40 PM
Re: Lite Tweaks - Suggestions welcomed - by N4RPS - 02-22-2015, 11:48 PM
Re: Lite Tweaks - Suggestions welcomed - by Shady - 02-26-2015, 04:04 PM
Re: Lite Tweaks - Suggestions welcomed - by Hans - 03-02-2015, 11:27 AM
Re: Lite Tweaks - Suggestions welcomed - by Shady - 03-02-2015, 04:07 PM
Re: Lite Tweaks - Suggestions welcomed - by nomko - 06-02-2016, 07:09 AM
Re: Lite Tweaks - Suggestions welcomed - by MS - 10-09-2019, 04:36 AM
Re: Lite Tweaks - Suggestions welcomed - by MS - 10-09-2019, 02:26 PM
Re: Lite Tweaks - Suggestions welcomed - by MS - 10-12-2019, 02:53 AM
Re: Lite Tweaks - Suggestions welcomed - by MS - 10-12-2019, 10:46 AM

Forum Jump:


Users browsing this thread: 50 Guest(s)