Files
dotfiles/.config/sway/config.d/60-bindings-screenshot.conf
2025-06-02 10:36:41 +02:00

21 lines
745 B
Plaintext

# 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.
#
# Copy the file to ~/.config/sway/config.d/60-bindings-screenshot.conf (or to
# your $XDG_CONFIG_HOME location if set differently) to be able to overwrite
# existing shortcuts.
# Check 'man grimshot' for additional commands that you may find useful.
#
# Requires: grimshot
bindsym {
# Capture the currently active output
Print exec grimshot copy output
# Capture the currently active window
Ctrl+Print exec grimshot save active
# Select and capture a custom rectangular area
Ctrl+Shift+Print exec grimshot copy area
}