all repos — dotfiles @ 152aacdc806064b95c58c4892b0cb1d6908eb41f

my *nix dotfiles

Selection screenshot works, yeeet

Signed-off-by: Anirudh <icyph0x@pm.me>
Anirudh icyph0x@pm.me
Wed, 17 Jul 2019 23:15:02 +0530
commit

152aacdc806064b95c58c4892b0cb1d6908eb41f

parent

9689c8d78ba688312f01bc493f75743e6528ba33

2 files changed, 6 insertions(+), 1 deletions(-)

jump to
M bin/scrbin/scr

@@ -11,7 +11,11 @@ import -window "$(xdotool getwindowfocus)" "$scr_path/$output.png"

convert "$scr_path/$output.png" \( +clone -background transparent -shadow 60x40+0+15 \) \ +swap -background white -layers merge +repage "$scr_path/$output.png" notify-send 'window screenshot taken!' -# elif [ "$1" == "-s" ]; then +elif [ "$1" == "-s" ]; then + g=$(slop --highlight --tolerance=0 --color=0.3,0.4,0.6,0.4) + sleep 1 + import -window root -crop "$g" +repage "$scr_path/$output.png" + notify-send 'selection screenshot taken!' fi xclip -selection clipboard -t image/png -i "$scr_path/$output.png"
M i3/configi3/config

@@ -213,3 +213,4 @@

# screenshot bindsym Print exec scr bindsym Ctrl+Print exec "scr -w" +bindsym Ctrl+Shift+Print exec "scr -s"