From 6295d6d98fbd2a8440926dddb0c8b0a1272e5583 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Wed, 25 May 2022 10:46:34 +0200 Subject: [PATCH] Added screenshots and other fixes --- config/sway | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/config/sway b/config/sway index 14ff884..411cdc0 100644 --- a/config/sway +++ b/config/sway @@ -20,7 +20,7 @@ input 2:7:SynPS/2_Synaptics_TouchPad { # Set background to whatever file is named bg at the moment output * { - bg "~/Images/wallpapers/bg.*" fill + bg "~/Pictures/wallpapers/bg.*" fill } # Hide the cursor when typing @@ -224,7 +224,7 @@ bindsym Control+q kill bindsym $winkey+Return exec alacritty # Start application launcher -bindsym $alt+space exec "fuzzel -T 'alacritty -e' -w 50 -l 10 -f monospace:size=9 -b 262626dd -t ffffffff -i Win11-black" +bindsym $alt+space exec "fuzzel -T 'alacritty -e' -w 50 -l 10 -f hack:size=9 -b 262626dd -t ffffffff -i Win11-black" # Start window selector based on fuzzel # https://github.com/speersj/wuzzel bindsym $alt+Shift+space exec /usr/bin/wuzzel/wuzzel "-w 50 -l 10 -f monospace:size=9 -b 262626dd -t ffffffff -i Win11-black" @@ -264,6 +264,23 @@ mode "$mode_system" { } bindsym Control+$alt+Delete mode "$mode_system" +# Screenshots +set $mode_screenshot Screenshot of (a)rea, current (w)indow, (s)creen - Shift to save +set $save_format Pictures/Screenshots/$(date +%F)-$(date +%T).png +mode "$mode_screenshot" { + bindsym a exec grimshot copy area; mode "default" + bindsym w exec grimshot --notify copy active; mode "default" + bindsym s exec grimshot --notify copy screen; mode "default" + + bindsym Shift+a exec grimshot --notify save area $save_format; mode "default" + bindsym Shift+w exec grimshot --notify save active $save_format; mode "default" + bindsym Shift+s exec grimshot --notify save screen $save_format; mode "default" + + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym Print mode "$mode_screenshot" + # ======= # Styling # =======