How to disable the dialog box from popping up while taking screenshots on Linux Mint 20.1 XFCE Edition
Published:
Disclaimer: This is for people who prefer using a key for screenshot rather than using an application.</i>
Recently, I installed Linux Mint 20.1 XFCE Edition on my old laptop and frankly speaking, I kinda like it. While working my around the system, I came to know that pressing the PrntScr
key opens up an application window. For me, it was new and annoying as I prefer to just press the Shift + PrntSc
key for selecting the area to screenshot. There is a way you could disable the application launch, just follow these steps:
- Install
gnome-screenshot
. Run:
sudo apt-get install gnome-screenshot
- Move the original to newer place:
sudo mv /usr/bin/gnome-screenshot /usr/bin/gnome-screenshot.orig
- Create a modified command: (You may replace the
-af
with-f
if you want full screenshots.)
sudo nano /usr/bin/gnome-screenshot.mod
#!/bin/sh gnome-screenshot.orig -af "$HOME/Pictures/Screenshot from $(date '+%F %T').png" $@
- Create an executable:
sudo chmod +x /usr/bin/gnome-screenshot.mod
- Link it:
sudo ln -s /usr/bin/gnome-screenshot.mod /usr/bin/gnome-screenshot
- Navigate to Keyboard settings, change the default shortcut for Print from
xfce4-screenshooter
tognome-screenshot
.
And done! Enjoy hassle free screenshots!
Credits: https://askubuntu.com/a/497399/1171982