sway: add keybindings for taking screenshots
This commit is contained in:
parent
2e6b23c123
commit
46c46d09af
2 changed files with 18 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
17
sway/config.d/60-bindings-screenshot.conf
Normal file
17
sway/config.d/60-bindings-screenshot.conf
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue