Skip to content

Instantly share code, notes, and snippets.

@danilrwx
Forked from schtibe/i3_screenshot_config
Created August 1, 2021 09:28
Show Gist options
  • Select an option

  • Save danilrwx/3e6a72ee1c6d05ca79717080c291fa45 to your computer and use it in GitHub Desktop.

Select an option

Save danilrwx/3e6a72ee1c6d05ca79717080c291fa45 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