Last active
August 13, 2019 09:43
-
-
Save kamwoh/591bebc239d68caf8ca9f77f2fd884f1 to your computer and use it in GitHub Desktop.
A Window-like Snipping Tools in Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| wget https://upload.wikimedia.org/wikipedia/en/9/94/Snipping_Tool_10_Icon.png ~/Pictures/snipping.png | |
| cd ~/.local/share/applications/ | |
| echo "[Desktop Entry]" > snipping-tools.desktop | |
| echo "Version=1.0" >> snipping-tools.desktop | |
| echo "Name=Snipping Tools" >> snipping-tools.desktop | |
| echo "Comment=A shortcut like Window Snipping Tools" >> snipping-tools.desktop | |
| echo "Exec=/usr/bin/gnome-screenshot -a -i" >> snipping-tools.desktop | |
| echo "Path=/usr/bin/" >> snipping-tools.desktop | |
| echo "Icon=~/Pictures/snipping.png" >> snipping-tools.desktop | |
| echo "Terminal=false" >> snipping-tools.desktop | |
| echo "Type=Application" >> snipping-tools.desktop | |
| cd ~ | |
| # because I always screenshot something using snipping tools in Window, when I change to Ubuntu, I decided to make one | |
| # you can replace change directory for snipping.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment