diff --git a/sxhkd/.config/sxhkd/selection.sh b/sxhkd/.config/sxhkd/selection.sh new file mode 100755 index 00000000..6ec7e93f --- /dev/null +++ b/sxhkd/.config/sxhkd/selection.sh @@ -0,0 +1,4 @@ +#!/bin/sh -e + +DATETIME=`date +%F_%H%M%S` +shotgun $(hacksaw -f "-i %i -g %g") ~/$DATETIME.png diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index a791bdfa..60eb463e 100644 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc @@ -9,6 +9,10 @@ super + {_, alt} + Escape super + p ~/.config/sxhkd/screenshot.sh +# Screenshot a selection +Print + ~/.config/sxhkd/selection.sh + # Open a new terminal window super + {_,shift} + Return kitty {_,--name floating}