Page 1 of 1

UnlockMe tweaks for Linux Mint

Posted: Mon Mar 12, 2018 3:24 am
by ralphy
Hello all,

I want to share a collection of scripts I've put together over time with the Linux Mint community, hopefully to make it better in the process with your feedback, suggestions and improvements; UnlockMe. UnlockMe is a collection of handy scripts put together using bash, yad and zenity to perform several tasks in the system just few clicks away. Download, install and remove themes, icon sets, cursors. Installs commonly used applications including web browsers not found in the main repo, conveniently tweak your system and much more.

UnlockMe@Github

Usable under:
- Linux Mint Xfce 18.x
- Linux Mint Cinnamon 18.x
- Linux Mint MATE 18.x

Image

For more screenshots, please visit UnlockMe@Github.

Features are shown dynamically, based on your specific desktop environment.

- Appearance
- Application Software
- Autoremove Packages
- Blacklist Generator - Blocks malware, adware, tracking and advertisement hosts via DNS based on well known/maintained hostname lists (uses Network Manager dnsmasq instead of /etc/hosts for better TLDs blocking)
- Cleanup browsers cache
- Compton Compositor (Xfce with custom/tested/usable configuration out of the box)
- Dropbox Systray fix
- Enable/Disable IPv6
- Easily change PC Hostname
- Delete browser profiles
- Tweak system settings like Kernel Cache Pressure and Kernel Swappiness
- Cleanup Package cache
- Cleanup Thumbnail cache
- zRAM
- zSWAP
... and more.

If you would like to take UnlockMe for a spin, to install it or update it once installed:

From Terminal:

Code: Select all

cd /tmp && wget https://raw.githubusercontent.com/ralphys/unlockme/master/install.sh && chmod +x install.sh && ./install.sh
The above does not need to be executed as admin. The script will ask you for elevation as needed.
It will git clone UnlockMe from github and put everything in place for you :)

To Uninstall UnlockMe once installed:

From Terminal:

Code: Select all

/usr/share/unlockme/tools/uninstall.sh
Your feedback, features requests and code improvements are all welcome!

Sharing is caring :)

Cheers!

Re: UnlockMe tweaks for Linux Mint

Posted: Thu Mar 15, 2018 12:18 pm
by ralphy
Just commited new changes - compton config Editor and a new default compton.conf to be able to manage compton from a simple UI.

If you're running Xfce you may well welcome the addition :)

https://i.imgur.com/sS8j0Xg.png

Cheers all!

Re: UnlockMe tweaks for Linux Mint

Posted: Wed Apr 18, 2018 11:40 pm
by Misko_2083
Hi Ralphy,
Have you considered doing something like this? :D

Code: Select all

#!/bin/bash

fkey=$(($RANDOM * $$))

export wpipe="/tmp/wooloo.$RANDOM"
mkfifo $wpipe

export sel_pipe="/tmp/wahooo.$RANDOM"

#trap to remove temp files on exit
trap "rm -f $wpipe $sel_pipe" EXIT

exec 3<> $wpipe

function display_info() {
  # Formfeed character \f clears text info diaolg
  echo -e "\f" >$wpipe

  # What you want to send to text info, like deccription
  echo "$2" >$wpipe
}
export -f display_info

printf "%s\n" "" "1" "2" "3" "" "1" "2" "3" "" "1" "2" "3" | yad --plug="$fkey" --tabnum=1 --list --checklist --window-icon="$ICON" --image="$ICON2" --separator=" "  \
--search-column=3 --image-on-top --button="gtk-quit:1"  --title=" $_APPNAME" \
--column="Select" --column="SELECTION" --column="Name" --column="Task" --tooltip-column=3 --hide-column=3 --select-action='bash -c "display_info %s"' --print-column=2 >$sel_pipe &

yad --plug="$fkey" --tabnum=2 --text "Ummm tab2" --text-info <&3  &

yad --center --paned --key="$fkey" --button="gtk-close:0" --width=790 --height=550 \
    --title="wogoloo" --window-icon="find" --orient=vert --splitter=400

#Read into array
readarray selection <$sel_pipe

echo ${selection[0]}
echo ${selection[@]}

exit 0
I googled for UnlockMe and stubled upon this.
https://forum.mxlinux.org/viewtopic.php?f=108&t=44861
UnlockMe was forked into woogaloo and I absolutely have no idea how to pronounce that. :lol:

Re: UnlockMe tweaks for Linux Mint

Posted: Thu Apr 19, 2018 12:23 am
by AZgl1500
Thank you for this:

I had to do a fresh install as the result of a crash.

I thought that I had set Swappiness and that was a "done deal",
when I saw it as a Menu Item I did a look see....

and duh! it was at the default of '60'.
guess my memory as to when I did that was in error....

I like that as a utility to combine a lot of the tweaks we do into one menu.

Re: UnlockMe tweaks for Linux Mint

Posted: Thu Apr 19, 2018 4:57 am
by ralphy
Misko_2083 wrote:
Wed Apr 18, 2018 11:40 pm
Hi Ralphy,
Have you considered doing something like this? :D

Code: Select all

#!/bin/bash

fkey=$(($RANDOM * $$))

export wpipe="/tmp/wooloo.$RANDOM"
mkfifo $wpipe

export sel_pipe="/tmp/wahooo.$RANDOM"

#trap to remove temp files on exit
trap "rm -f $wpipe $sel_pipe" EXIT

exec 3<> $wpipe

function display_info() {
  # Formfeed character \f clears text info diaolg
  echo -e "\f" >$wpipe

  # What you want to send to text info, like deccription
  echo "$2" >$wpipe
}
export -f display_info

printf "%s\n" "" "1" "2" "3" "" "1" "2" "3" "" "1" "2" "3" | yad --plug="$fkey" --tabnum=1 --list --checklist --window-icon="$ICON" --image="$ICON2" --separator=" "  \
--search-column=3 --image-on-top --button="gtk-quit:1"  --title=" $_APPNAME" \
--column="Select" --column="SELECTION" --column="Name" --column="Task" --tooltip-column=3 --hide-column=3 --select-action='bash -c "display_info %s"' --print-column=2 >$sel_pipe &

yad --plug="$fkey" --tabnum=2 --text "Ummm tab2" --text-info <&3  &

yad --center --paned --key="$fkey" --button="gtk-close:0" --width=790 --height=550 \
    --title="wogoloo" --window-icon="find" --orient=vert --splitter=400

#Read into array
readarray selection <$sel_pipe

echo ${selection[0]}
echo ${selection[@]}

exit 0
I googled for UnlockMe and stubled upon this.
https://forum.mxlinux.org/viewtopic.php?f=108&t=44861
UnlockMe was forked into woogaloo and I absolutely have no idea how to pronounce that. :lol:
Misko, that's an interesting idea. It helps providing more info to the end user - don't leave it up to me alone though. Jump in. I had no idea that UnlockMe had been forked already. That's pretty cool, considering that I was asked for MX support and I really don't have the time or the resources to do it.

It it also a great way to double check ideas (folks working in woogaloo) may come up with even better ones and I can learn and adopt them in the process.

Re: UnlockMe tweaks for Linux Mint

Posted: Thu Apr 19, 2018 5:00 am
by ralphy
AZgl1500 wrote:
Thu Apr 19, 2018 12:23 am
Thank you for this:

I had to do a fresh install as the result of a crash.

I thought that I had set Swappiness and that was a "done deal",
when I saw it as a Menu Item I did a look see....

and duh! it was at the default of '60'.
guess my memory as to when I did that was in error....

I like that as a utility to combine a lot of the tweaks we do into one menu.
You're very welcome. Thank you for your feedback. I'm glad you find it useful. :D

Re: UnlockMe tweaks for Linux Mint

Posted: Mon Apr 23, 2018 1:11 pm
by Misko_2083
ralphy wrote:
Thu Apr 19, 2018 4:57 am
- don't leave it up to me alone though. Jump in.
Ralphy I run mostly Debian based without systemD and I'm too lazy to install ubuntu based to test.
This is what I came up with. Added a few basic info just to demonstrate.

Re: UnlockMe tweaks for Linux Mint

Posted: Sat May 05, 2018 1:28 pm
by ralphy
I understand Misko_2083, thank you.

You did the whole thing there for me already. I'm going to implement it during the next update batch. I'm already working on it but my time is limited atm. I'm using plain text files for the info tab descriptions but that was just few of the minor changes that I've made for convenience. I basically copied and pasted your addition entirely :D so, thanks again.

Image

Re: UnlockMe tweaks for Linux Mint

Posted: Sun May 06, 2018 2:13 pm
by Misko_2083
Cheers,

Ralphy if you think there is too much empty space on the left side of the window,
you can move the image from the main "paned" dialog to the first tab.

Or use --image-on-top here

Code: Select all

yad --plug=123654 --text="First tab" --image=gtk-ok --list --column h "123" --image-on-top --tabnum=1 &
yad --plug=123654 --text="Second tab" --text-info  --image=gtk-no  --tabnum=2 &
yad --paned --key=123654 --text "some text" --image=gtk-quit --image-on-top
This is another UI with the paned dialog.

Re: UnlockMe tweaks for Linux Mint

Posted: Sun May 06, 2018 4:03 pm
by ralphy
That's how I had it the first time around (great minds think alike :lol: ) but when the dialog is maximized it puts too much content to the left of the screen while the right side is almost empty.

I personally like the having that space below the icon but I may revert it once again. The change is trivial and easily done by simply moving --image-on-top and the --text from --plug to the --paned statement. Even though, for smaller screens the extra space may be just wasted space. I'm thinking about laptops... at least today, they have a screen resolution of 1280x800. What do you think?

Image

Re: UnlockMe tweaks for Linux Mint

Posted: Tue May 08, 2018 5:57 am
by Misko_2083
ralphy wrote:
Sun May 06, 2018 4:03 pm
when the dialog is maximized it puts too much content to the left of the screen while the right side is almost empty.
I didn't thought about that.
If you set the --orient=hor in the paned dialog, text-info tab will go to the rigth
but that would increase the window width.
There are four text colums in the list, maybe you can replace the Task and Cathegory columns with a single image/icon column :)