Search This Blog

Labels

adobe (1) android (3) apache (3) aviation (1) bash (2) chrome (2) composer (1) cookery (3) dev (2) dodanperks (1) extensions (1) facebook (2) firefox (1) git (2) grafana (1) guzzle (1) headaches (11) htaccess (1) html5 (2) jquery (2) lamp (1) life hacks (10) linux (28) mysqli (2) native (1) opera (2) php (10) railfanning (1) reactjs (3) reactnative (1) servers (11) sinhala (1) smartphones (2) snap (1) sound (1) tech (22) troubleshoots (4) ubuntu (29) unicode (4) virtualbox (1) wamp (2) web (11) windows (4) wordpress (3) youtube (2) කෑම (3)

Wednesday, 29 March 2023

Bring back the old gnome-screenshot back to Ubuntu 22.04

You know the new screenshot utility found in Ubuntu 22.04 is annoying right. I found a solution here. Thanks a million to this guy who provided this golden answer. 

This way, you can bring the old gnome-screenshot utility back. 

First, install gnome-screenshot
sudo apt install gnome-screenshot
Then, install xclip
sudo apt install xclip
Then, make a script file containing the following,
#!/bin/bash  
TMPFILE=`mktemp -u /tmp/screenshotclip.XXXXXXXX.png`  
gnome-screenshot -af $TMPFILE && xclip $TMPFILE -selection clipboard -target image/png; rm $TMPFILE || echo "" 
Then, go to keyboard shortcuts, and make a shortcut of your choice for the script. 

I chose the good ol' Ctrl + Shift + PrtScr

No comments:

Post a Comment