From eb2d208abaeb3c11b1fed24806c19c9b853b07ca Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 1 Jan 2022 20:28:51 -0500 Subject: [PATCH] sxhkd: Add key to screenshot a selection --- sxhkd/.config/sxhkd/selection.sh | 4 ++++ sxhkd/.config/sxhkd/sxhkdrc | 4 ++++ 2 files changed, 8 insertions(+) create mode 100755 sxhkd/.config/sxhkd/selection.sh 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}