sway: add keybindings for taking screenshots

This commit is contained in:
Aleksei Bavshin 2022-12-11 19:58:05 -08:00
commit 46c46d09af
No known key found for this signature in database
GPG key ID: 4F071603387A382A
2 changed files with 18 additions and 2 deletions

View file

@ -32,8 +32,6 @@ Requires: polkit
# dmenu (as well as rxvt any many others) requires XWayland on Sway
Requires: xorg-x11-server-Xwayland
# grim is the recommended way to take screenshots on sway 1.0+
Recommends: grim
# Install configs and scripts for better integration with systemd user session
Recommends: sway-systemd
# Minimal installation doesn't include Qt Wayland backend
@ -47,6 +45,7 @@ Recommends: rofi-wayland
Requires: /usr/bin/pgrep
Requires: /usr/bin/pkill
Requires: desktop-backgrounds-compat
Requires: grimshot
Requires: light
Requires: lxqt-policykit
Requires: playerctl

View file

@ -0,0 +1,17 @@
# Key bindings for taking screenshots
#
# The image files will be written to XDG_SCREENSHOTS_DIR if this is set
# or defined in user-dirs.dir, or to a fallback location XDG_PICTURES_DIR.
#
# Requires: grimshot
bindsym {
# Capture the currently active output
Print exec grimshot save output
# Capture the currently active window
Alt+Print exec grimshot save active
# Select and capture a custom rectangular area
Ctrl+Print exec grimshot save area
# Select and capture a single window
$mod+Print exec grimshot save window
}