Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.2 KiB

  1. #######################################################################
  2. ## SHORTCUT COMMAND 1 - TAKE A SCREENSHOT
  3. ## USE AS A GLOBAL SHORTCUT COMMAND FOR 'PRINT SCREEN' KEY IN PLASMA 5
  4. ##Take a screenshot: Save an image to clipboard, DO NOT save in a file (can't be used with Kolourpaint, clipboard use only)
  5. import -window root -screen png:- | loliclip -bi image/png
  6. ##Take a screenshot: Save an image to clipboard and as a temporary file (can be used with Kolourpaint)
  7. import -window root -screen /tmp/screen.png | loliclip -bi image/png < /tmp/screen.png && notify-send Screenshot -i image-x-krita 'Screenshot saved to clipboard'
  8. #######################################################################
  9. ## SHORTCUT COMMAND 2 - PASTE THE SCREENSHOT
  10. ## USE AS A GLOBAL SHORTCUT COMMAND FOR ALT+V KEY COMBINATION IN PLASMA 5
  11. ##Paste the screenshot into a new Kolourpaint session. Put this as a custom global shortcut Alt+V
  12. bash -c "if [[ $(xclipshow |grep -c image/png) -eq 1 ]]; then kolourpaint /tmp/screen.png; fi"
  13. #######################################################################
  14. ## You can find Plasma 5 shortcut settings in System Settings -> Shortcuts -> Custom Shortcuts
  15. ## Add the above commands as New Global Shortcuts, Command/URL