Skip to content

Instantly share code, notes, and snippets.

@mazunki
Last active January 7, 2022 23:05
Show Gist options
  • Save mazunki/32ec8c612f99ccb3f3fc734658baa49d to your computer and use it in GitHub Desktop.
Save mazunki/32ec8c612f99ccb3f3fc734658baa49d to your computer and use it in GitHub Desktop.
Screenshots, they're not that hard

Your phone is a great tool to take pictures, we all know that... but please, don't use a phone to take a picture of your monitor

Your non-orthogonal angle is pain to look at, the text is blurry, the lighting is just messed up. If you want help, make us want to help you. Make our lives easier.

Besides, it's not even that hard to take screenshots. And you can usually just paste them in, without having to pick up your phone to send the message on whatever platform you're working on.

Windows

  • Windows has a built-in Snippet Tool. Pin it to your hotbar, or use <Logo key>+<Shift>+<S>.
  • Use the <PrintScreen> button on your keyboard. If your laptop doesn't have this button, you may use <Fn>+<Logo Key>+<Spacebar> instead.
  • Install a tool like ShareX which has a bunch of handy customization, including shortcuts to capture regions, windows, and even auto-post to Twitter.

Linux

Try the <PrintScreen> key! Often, this just works.

If it works, also try combining it with <Shift> andor <Ctrl> to select a region andor output to clipboard instead of ${XDG_PICTURES_DIR:~/Pictures}

Xorg / X11 exclusive

  • import is a command from ImageMagick(1) which saves your whole X11 session to a file. Combine it with xclip and a pipe to copy to clipboard magically.
    • import - | xclip -selection clipboard -t image/png -
    • You can define a -window to select too, by its name or id
  • Flameshot is a great tool with lots of handy drawing tools! It also provides a command-line interface, and support for Imgur.
  • scrot is a simple command which allows saving the screen to a file.
  • maim is a lightweight tool which overcomes the shortcomings of scrot, and may eventually also have (limited) Wayland support (#67). It can save to files, and copy to clipboard through pipes (see below).

Wayland exclusive

MacOS

Who knows?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment