Skip to content

Instantly share code, notes, and snippets.

View danilrwx's full-sized avatar
🏠
Working from home

Daniil Antoshin danilrwx

🏠
Working from home
View GitHub Profile
@danilrwx
danilrwx / i3_screenshot_config
Created August 1, 2021 09:28 — forked from schtibe/i3_screenshot_config
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'"