From a4da72120532cfd3f82956d4aba4df61dc44ec26 Mon Sep 17 00:00:00 2001 From: David McKinney Date: Fri, 20 Jul 2018 17:16:57 -0400 Subject: [PATCH] Added screenshot shortcuts to the Sway config --- meta-citadel/recipes-sway/sway/files/config | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta-citadel/recipes-sway/sway/files/config b/meta-citadel/recipes-sway/sway/files/config index 69fd63c..620a9a8 100644 --- a/meta-citadel/recipes-sway/sway/files/config +++ b/meta-citadel/recipes-sway/sway/files/config @@ -20,6 +20,8 @@ set $term /usr/bin/sgmenu -c '/usr/bin/realms run -- gnome-terminal' set $citadelterm gnome-terminal set $filemanager /usr/bin/sgmenu -c '/usr/bin/realms run -- nautilus' set $lockscreen swaylock --scaling=fill -i /usr/share/backgrounds/gnome/adwaita-morning.jpg +set $screenshot grim /home/citadel/`date +'%Y-%m-%d-%H%M%S_screenshot.png'` +set $screenshot_region slurp | grim -g - /home/citadel/`date +'%Y-%m-%d-%H%M%S_screenshot.png'` # Your preferred application launcher set $menu /usr/bin/sgmenu -d @@ -76,6 +78,10 @@ bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle +# screenshots +bindsym $mod+Print exec $screenshot +bindsym $mod+Shift+Print exec $screenshot_region + # Drag floating windows by holding down $mod and left mouse button. # Resize them with right mouse button + $mod. # Despite the name, also works for non-floating windows.