UnlockMe tweaks for Linux Mint

Get involved, create or participate in a project.
Post Reply
ralphy
Level 1
Level 1
Posts: 21
Joined: Sun Aug 09, 2015 7:06 pm
Contact:

UnlockMe tweaks for Linux Mint

Post by ralphy » Mon Mar 12, 2018 3:24 am

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!

ralphy
Level 1
Level 1
Posts: 21
Joined: Sun Aug 09, 2015 7:06 pm
Contact:

Re: UnlockMe tweaks for Linux Mint

Post by ralphy » Thu Mar 15, 2018 12:18 pm

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!

User avatar
Misko_2083
Level 1
Level 1
Posts: 20
Joined: Mon Jan 12, 2015 10:17 am

Re: UnlockMe tweaks for Linux Mint

Post by Misko_2083 » 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:

User avatar
AZgl1500
Level 5
Level 5
Posts: 910
Joined: Thu Dec 31, 2015 3:20 am
Location: /Home/Desktop
Contact:

Re: UnlockMe tweaks for Linux Mint

Post by AZgl1500 » 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.
Firefox / 4.13.0-38, Mint 18.3 Sylvia, Cinnamon 3.6.7

ralphy
Level 1
Level 1
Posts: 21
Joined: Sun Aug 09, 2015 7:06 pm
Contact:

Re: UnlockMe tweaks for Linux Mint

Post by ralphy » Thu Apr 19, 2018 4:57 am

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.

ralphy
Level 1
Level 1
Posts: 21
Joined: Sun Aug 09, 2015 7:06 pm
Contact:

Re: UnlockMe tweaks for Linux Mint

Post by ralphy » Thu Apr 19, 2018 5:00 am

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

Post Reply

Return to “Community Projects”