r/linuxquestions • • 10d ago

Advice Coding project for hiding Linux desktop icons?

Is it conceivably possible for an app to be coded for desktop Linux (Ubuntu, Mint, etc) that would allow double-clicking on the desktop to cause desktop icons to become hidden, and then double click again to make them reappear? I have this functionality in Windows via Stardock's Fences app. Maybe there are AI platforms that could code this? It is a feature I have on Windows that I sorely miss having on Linux.

1 Upvotes

12 comments sorted by

4

u/qcgilbert 10d ago

I think an icon that lives in the panel/taskbar would be easier to create. That probably exists. You didn't mention desktop environment so you'd have to do some digging.

0

u/NomadJago 10d ago

I thought I did

2

u/karmue 10d ago

You've listed distributions, not desktops.

4

u/CardOk755 10d ago

What are "desktop icons"?

1

u/NomadJago 10d ago

I am looking at a desktop icon on my Linux Mint desktop, for Blazify. Then there are folder icons, and shortcut icons. Not sure why you are asking, you must know what icons are.

3

u/CardOk755 10d ago

The joke was, I use gnome actually, I don't have (or want) desktop icons.

Why pretend to be windows?

1

u/NomadJago 10d ago

oh, yeah, lol. I have a folder in my home directory i call Desktop-shadow where i keep moving stuff on my desktop. but there are few frequently used shortcuts and folders i keep on my desktop-- unless Linux would allow me to put those on a taskbar?

1

u/No_Elderberry862 10d ago

What is this "taskbar" of which you speak? /s

But seriously, if your DE/compositor/WM has a taskbar (which not all do at all) then you probably could put such things on it.

3

u/scorp123_CH 10d ago

In a GNOME environment, the desktop icons are provided by GNOME extensions these days ... "Zorin Desktop Icons" if you are on Zorin OS, "DING" (Desktop Icons Next Generation) maybe if you are on Ubuntu or Fedora .... So it would be possible to issue a command line to turn that extension on or off, as needed:

Example for Zorin OS:

gnome-extensions disable zorin-desktop-icons@zorinos.com

Example for Ubuntu which uses "DING" :

gnome-extensions disable ding@rastersoft.com

Use this command to find out what the names of the extensions are:

gnome-extensions list

So .. you could create a *.desktop file that issues the appropriate shell command, and taaaddaaaa, you'd have a method to disable desktop icons per double-click.

2

u/East-Yogurtcloset272 10d ago

It depends on your DE/WM.

With openbox - you can catch mouseclicks and call a script. That script can then kill or start your icon app (idesk in my case). It all depends what you are using

1

u/gnufan 10d ago

fI've been GNOME 3'ed - I don't put icons on my desktop even though I'm on KDE again, so when I peek at desktop I see the whole backdrop. 

You probably don't need too much coding as we have actions that are programmable and peek at desktop is one of them.

1

u/GreatBigPig 10d ago

That is indeed a nice feature within Fences.