sxhkd: Copy selections to clipboard by default

Since selections are more likely to be temporary than full screen
screenshots, copying their contents to clipboard by default is useful,
although in the future it may be more practical to create an image and
copy to clipboard at the same time, similar to other screenshotting
tools like ShareX.
This commit is contained in:
Donovan Glover 2022-04-12 10:33:59 -04:00
parent 671ce294c9
commit 4156c1fb23
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
DATETIME=`date +%F_%H%M%S`
shotgun $(hacksaw -f "-i %i -g %g") ~/$DATETIME.png
shotgun $(hacksaw -f "-i %i -g %g") - | xclip -t 'image/png' -selection clipboard