Linux Lite Forums
Lite Tweaks - Suggestions welcomed - Printable Version

+- Linux Lite Forums (https://www.linuxliteos.com/forums)
+-- Forum: Development (https://www.linuxliteos.com/forums/forumdisplay.php?fid=7)
+--- Forum: Linux Lite Software Development (https://www.linuxliteos.com/forums/forumdisplay.php?fid=30)
+--- Thread: Lite Tweaks - Suggestions welcomed (/showthread.php?tid=801)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23


Re: Lite Cleaner - Suggestions welcomed - Wirezfree - 10-15-2014

(10-15-2014, 09:41 AM)Wirezfree link Wrote: [quote author=Valtam link=topic=829.msg6241#msg6241 date=1413361238]
Lite Cleaner 1.0-0130 is now available. Run Install Updates to get it.

Changes:
  • "Clear thumbnail cache" changed to "Clean thumbnail cache" bug fixed.
    If thumbnails cache size is less than 100kB now it will display as 0k.
    If package cache size is less then 100kB are it will display as 0k.
    Added 'sort' to the kernel cleaner.
Nice job misko Smile

Worked for me... not run it for a while... 315MB cleaned, nice Smile
[/quote]

Out of curiosity... I just ran the "Preview" option in "Bleachbit"... it found this:
Code:
Delete 4.1kB /usr/share/man/sv/man1/dpkg-distaddfile.1.gz
Delete 4.1kB /usr/share/man/sv/man1/dpkg-scanpackages.1.gz
Delete 8.2kB /usr/share/man/sv/man1/dpkg-shlibdeps.1.gz
Delete 4.1kB /usr/share/man/sv/man1/dpkg-name.1.gz
Delete 4.1kB /usr/share/man/sv/man1/dpkg-genchanges.1.gz
Delete 4.1kB /usr/share/man/sv/man5
Delete 4.1kB /usr/share/man/sv/man1
Delete 4.1kB /usr/share/man/sv
Delete 12.3kB /usr/share/man/vi/man7/po-debconf.7.gz
Delete 4.1kB /usr/share/man/vi/man1/po2debconf.1.gz
Delete 4.1kB /usr/share/man/vi/man1/debconf-updatepo.1.gz
Delete 4.1kB /usr/share/man/vi/man1/podebconf-display-po.1.gz
Delete 4.1kB /usr/share/man/vi/man1/debconf-gettextize.1.gz
Delete 8.2kB /usr/share/man/vi/man1/podebconf-report-po.1.gz
Delete 4.1kB /usr/share/man/vi/man7
Delete 4.1kB /usr/share/man/vi/man1
Delete 4.1kB /usr/share/man/vi
Delete 57.3kB /var/log/dmesg.0
Delete 16.4kB /var/log/dmesg.1.gz
Delete 8.2kB /var/log/lightdm/lightdm.log.old
Delete 4.1kB /var/log/lightdm/x-0.log.old
Delete 28.7kB /var/log/Xorg.0.log.old
apt-get autoclean ?B
apt-get autoremove ?B
Clean ?B /root/.config/libreoffice/4/user/registrymodifications.xcu

Disk space to be recovered: 2.1MB
Files to be deleted: 417
Special operations: 4

I think .old and archived log files are valid items to remove,

CAUTION ~ DO NOT RUN "BLEACHBIT" unless you really understand the implications


Re: Lite Cleaner - Suggestions welcomed - bitsnpcs - 10-15-2014

Thank You for the update Valtam and Misko. Smile


Re: Lite Cleaner - Suggestions welcomed - bitsnpcs - 11-02-2014

I have a suggestion for Lite Cleaner, an option to empty the "Recently Used" folder in the main menu.







Re: Lite Cleaner - Suggestions welcomed - Valtam - 11-02-2014

(11-02-2014, 06:29 AM)bitsnpcs link Wrote: I have a suggestion for Lite Cleaner, an option to empty the "Recently Used" folder in the main menu.

You could make a feature request here - https://github.com/gottcode/xfce4-whiskermenu-plugin for the Whisker Menu.
Or if some code wizard could come along and suggest a sed command or something similar that replaces line 2 in /home/user/.config/xfce4/panel/whiskermenu-*.rc with just recent= A login in/log out would be required for it to take effect.


Re: Lite Cleaner - Suggestions welcomed - shaggytwodope - 11-02-2014

Here ya go chaps.
Code:
sed -i 's/^recent=.*$/recent=/g' ~/.config/xfce4/panel/whiskermenu-1.rc




Re: Lite Cleaner - Suggestions welcomed - Valtam - 11-02-2014

Awesome shaggytwodope thank you Smile
We will also include:

Code:
dbus-send --print-reply --dest=org.xfce.Panel /org/xfce/Panel org.xfce.Panel.Terminate boolean:true

Which will reload the panel and clear Recently Used without the need to logout/in.


Re: Lite Cleaner - Suggestions welcomed - bitsnpcs - 11-02-2014

Thank You shaggytwodope and Valtam.

Valtam I viewed the github link but didn't make any request, I did do their newbie course last week but cannot relate it very well to github. I learn differently and to me they seem like 2 different unrelated things at the moment. I may look in to github at a future time.


Re: Lite Cleaner - Suggestions welcomed - anon222 - 11-02-2014

Good job shaggytwodope and Valtam, and thank you for an idea bitsanpcs.

I would just add the check if there are Recent items in the whisker menu.
Something like this. Smile

Code:
#!/bin/bash

# check if whisker menu has recent items
if [ -z "$(cat $HOME/.config/xfce4/panel/whiskermenu-1.rc | grep "^recent=" | cut -d '=' -f2)" ]; then
    whisker_recent=(FALSE "Clean Whisker Recent" "Whisker" "Safe" "Whisker menu has no recent items" )
else
    whisker_test=$(cat $HOME/.config/xfce4/panel/whiskermenu-1.rc | grep "^recent=" | cut -d '=' -f2 | sed 's/,/ /g'| wc -w)
    whisker_recent=(FALSE "Clean Whisker Recent" "Whisker" "Safe" "You can currently remove $whisker_test recent items from your whisker menu" )
fi

zenity --list --width=800 --checklist --title="example" --column="select" --column=" " --column=" " --column=" " --column=" " "${whisker_recent[@]}"



Re: Lite Cleaner - Suggestions welcomed - bitsnpcs - 11-02-2014

Thank You misko_2083 for the check recent itemsĀ  Smile


Re: Lite Cleaner - Suggestions welcomed - Valtam - 11-03-2014

New version available, thank you to bitsnpcs, misko and shaggy Smile

[Image: j2epJmi.png]