Add sway screenshot hotkey
This commit is contained in:
11
tree/.local/bin/scap
Executable file
11
tree/.local/bin/scap
Executable file
@ -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
|
||||
|
||||
Reference in New Issue
Block a user