Add sway screenshot hotkey
This commit is contained in:
@ -233,6 +233,11 @@ mode "resize" {
|
||||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
#
|
||||
# ScreenCap:
|
||||
#
|
||||
bindsym Print exec scap
|
||||
|
||||
#
|
||||
# Status Bar:
|
||||
#
|
||||
|
||||
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