mint 16. Hot corner to show desktop [Solved]

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Itchi

mint 16. Hot corner to show desktop [Solved]

Post by Itchi »

Hi guys, does anybody here know something about how to:

1- use a hot corner to Show Desktop (pointing out the Show Desktop app in the Custom option of the editor doesnt work)
2- change desktop icon font color from white to black


Would be realy great if somebody knows how to solve this or at least point me out to the doc that has the code for this, there simply is no information to find about this for Mint 16 (yet)

Big thanks.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: mint 16. Hot corner & desktop icon font

Post by xenopeek »

The first is easy. You can do so with wmctrl, the command line interface to trigger window manager actions. Install the package wmctrl and then set the custom command to:

Code: Select all

wmctrl -k on
That minimizes all windows as if you had clicked on the show desktop icon.
Image
Itchi

Re: mint 16. Hot corner & desktop icon font

Post by Itchi »

wow Xenopeek thanks! Sorry for the late reply and it works like a charm. Installed it through the software manager and then put the script in the custom comand of hotcorners and it works. It doesnt toggle so i added the 'wmctrl -k off' in the top corner. Handy dandy. :)
FJOSba

Re: mint 16. Hot corner to show desktop [Solved]

Post by FJOSba »

Thank You for all! :D
This is what I've looked for. It is a must have seeting for me, too!
I think it should be selectable option from hot corner menu.
Cheers!
Itchi

Re: mint 16. Hot corner to show desktop [Solved]

Post by Itchi »

Anybody has any idea in the meantime how to simply change the desktop font color to black? Would be greatly appreciated too :)
caribriz

Re: mint 16. Hot corner & desktop icon font

Post by caribriz »

Itchi wrote:........ It doesnt toggle so i added the 'wmctrl -k off' in the top corner.......
If you wanted an "all-in-one" hot corner that toggles "show desktop" on and off (you don't have to use two hot corners with this method) -
see this tutorial by Zorba -

How to make the hot corner show desktop and restore windows
- Solution Two
caribriz

Re: mint 16. Hot corner to show desktop [Solved]

Post by caribriz »

Itchi wrote:Anybody has any idea in the meantime how to simply change the desktop font color to black? Would be greatly appreciated too :)
I don't think there is a simple way, but this is just what I did in LM16 Cinnamon - adapted from twodogs' tutorial here:
http://forums.linuxmint.com/viewtopic.php?f=42&t=118989

I used the default gtk theme - Mint-X.
I make a copy of the gtk theme folder and work on that to keep the original theme intact.

In Filesystem, navigate to /usr/share/themes
Copy Mint-X folder
Go to /home folder, click Ctrl+H to show hidden folders
If .themes folder is not already there, create it - note the dot at the beginning
Open .themes folder
Paste copy of Mint-X folder into .themes folder
Rename Mint-X to something else, eg. Mint-X-2

Open Mint-X-2 > gtk-3.0 > apps
Click File > Create new document > Empty document - name it nautilus.css
Open nautilus.css and paste this text into the file:

Code: Select all

.nautilus-desktop.nautilus-canvas-item {
    color: #000000;
    text-shadow: none;
}

.nautilus-desktop.nautilus-canvas-item:active,
.nautilus-desktop.nautilus-canvas-item:prelight,
.nautilus-desktop.nautilus-canvas-item:selected {
   text-shadow: none;
}
Save the file.

Go to Mint-X-2 > gtk-3.0 > open file gtk.css
At the bottom of the file, add this line:

Code: Select all

@import url("apps/nautilus.css");
Save the file.

Go to System Settings > Themes > Other Settings > Controls
Choose Mint-X-2
Close window, may have to logout/in to see the change:
LM16 Cinnamon desktop icon text color.png
If you wanted a white text shadow, make it look like this instead:

Code: Select all

.nautilus-desktop.nautilus-canvas-item {
    color: #000000;
    text-shadow: 1px 1px alpha (#ffffff, 0.8);
}

.nautilus-desktop.nautilus-canvas-item:active,
.nautilus-desktop.nautilus-canvas-item:prelight,
.nautilus-desktop.nautilus-canvas-item:selected {
   text-shadow: none;
}
Save the file, logout/in
LM16 Cinnamon black desktop icon text with white shadow.png
Edit: It is strange that adding this "nautilus.css" file to the theme's folder works to change the desktop font color (when nautilus is not installed in LM16 Cinnamon).
But if you just add these lines to the file nemo.css, substituting nemo for nautilus - it does not work.
I don't understand why this is :? .... all I know is that the above solution does work.
Locked

Return to “Cinnamon”