Skip to content

i3 Screenshot Workflow with maim and xclip

Configure screenshots in i3 with maim and xclip. This workflow captures a selected region and copies the image directly to the clipboard, which keeps screenshot handling fast and simple inside a minimal i3 setup.

Install maim for screenshots, slop for region selection support, and xclip for copying the image to the clipboard.

Terminal window
sudo pacman -S maim xclip slop

Add a keybinding to ~/.config/i3/config. The F8 shortcut captures a selected region and copies it to the clipboard as PNG data.

Terminal window
nano ~/.config/i3/config
Terminal window
# Screenshots
bindsym F8 exec maim -s | xclip -selection clipboard -t image/png

Reload i3 after adding or changing the keybinding.

Terminal window
i3-msg reload
  • Press F8.
  • Select the region with the mouse.
  • Paste the copied image into a chat, document, note, or image-capable app.

Use this command to test the workflow manually without the i3 keybinding.

Terminal window
maim -s | xclip -selection clipboard -t image/png
Terminal window
# Confirm tools are installed
command -v maim
command -v xclip
command -v slop
# Check screenshot binding
grep -n 'maim\|xclip\|F8' ~/.config/i3/config
# Reload i3 after changes
i3-msg reload
  • i3 window manager config: ~/.config/i3/config
  • Screenshot command: maim -s | xclip -selection clipboard -t image/png