I found lot's of examples to take screenshots in I3, but most of them require additional scripts or will always overwrite the same temp file. So I've been testing a bit to make it easier. Put this in your .i3/config to take Gnome style screenshots in a png in ~/Pictures. Mod+x selects a rectangle on the screen or mod+y takes the entire screen contents.
bindsym --release $mod+x exec --no-startup-id import ~/Pictures/screenshot-`/bin/date +%Y%m%d-%H:%M:%S`.png
bindsym --release $mod+y exec --no-startup-id import -window root ~/Pictures/screenshot-`/bin/date +%Y%m%d-%H:%M:%S`.png
screengrab utiilies
Have a look at my script:
https://github.com/sergevanginderachter/dotfiles/blob/master/bin/screen…
Hi, thanks you for this
Hi,
thanks you for this simple solution, but there is a little typo in your config. Both commands are binded to Mod+x, I think it has to be:
bindsym --release $mod+x exec --no-startup-id import ~/Pictures/screenshot-`/bin/date +%Y%m%d-%H:%M:%S`.png
bindsym --release $mod+y exec --no-startup-id import -window root ~/Pictures/screenshot-`/bin/date +%Y%m%d-%H:%M:%S`.png
You're right, fixed that.
You're right, fixed that. Thanks!
Is it possible to get the camera click noise
It works great. I wonder if there is a way to get the same camera click noise that the gnome-screenshot has?