diff --git a/tree/.config/sway/config b/tree/.config/sway/config index d6e10fa..f4efa21 100644 --- a/tree/.config/sway/config +++ b/tree/.config/sway/config @@ -233,6 +233,11 @@ mode "resize" { } bindsym $mod+r mode "resize" +# +# ScreenCap: +# + bindsym Print exec scap + # # Status Bar: # diff --git a/tree/.local/bin/scap b/tree/.local/bin/scap new file mode 100755 index 0000000..377b369 --- /dev/null +++ b/tree/.local/bin/scap @@ -0,0 +1,11 @@ +#!/usr/bin/env sh + +if [ "$XDG_SESSION_TYPE" != "wayland" ]; then + echo "this script only supports wayland" + exit 1 +fi + +DIMS="$(slurp)" + +grim -g "$DIMS" - | pbc +