Shortcut to hide the desktop icons in GNOME 3
5,387
I wrote a small script, which changes this option:
#!/bin/sh
if $(gsettings get org.gnome.desktop.background show-desktop-icons);
then new="false";
else new="true";
fi
gsettings set org.gnome.desktop.background show-desktop-icons $new
You can save the script /somewhere/as/somewaht.sh
(with permission to execute) and then add in your keyboardsettings an entry:
Author by
Philippe Gaucher
Updated on September 18, 2022Comments
-
Philippe Gaucher over 1 year
I can hide/show the desktop icons using
gnome-tweaks
(see the picture, "Afficher les icônes" means "Display Icons").I would like to know how to set up a shortcut doing that ? I use GNOME in Ubuntu 18.04.
There is a shortcut to hide all windows (Windows-key + D), so why not one for hiding/showing the desktop icons.
-
pomsky over 5 yearsNice, you can shorten it to
if $(gsettings get org.gnome.desktop.background show-desktop-icons); then gsettings set org.gnome.desktop.background show-desktop-icons false; else gsettings set org.gnome.desktop.background show-desktop-icons true; fi
.