r/linuxquestions • u/NomadJago • 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
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.
4
u/CardOk755 10d ago
What are "desktop icons"?
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:
Example for Ubuntu which uses "DING" :
Use this command to find out what the names of the extensions are:
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.