Skip to content

Instantly share code, notes, and snippets.

@schtibe
Last active August 8, 2023 23:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save schtibe/ba6c9b6b4c40e5fe235bd0a71d8cb7fb to your computer and use it in GitHub Desktop.
Save schtibe/ba6c9b6b4c40e5fe235bd0a71d8cb7fb to your computer and use it in GitHub Desktop.
Screenshot keybindings with i3 and scrot that are copied to the clipboard
bindsym Print exec "scrot -e 'mv $f ~/tmp && xclip -selection clipboard -t image/png -i ~/tmp/$n'; sleep 1; exec notify-send 'screenshot has been saved to ~/tmp'"
bindsym $mod+Print --release exec "scrot -ue 'mv $f ~/tmp && xclip -selection clipboard -t image/png -i ~/tmp/$n'; sleep 1; exec notify-send 'screenshot has been saved to ~/tmp'"
bindsym $mod+Shift+Print --release exec "notify-send 'selection will be saved to ~/tmp'; scrot -se 'mv $f ~/tmp && xclip -selection clipboard -t image/png -i ~/tmp/$n'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment