From 1929f26c42e9047b6919d4adc58a5be4a174084d Mon Sep 17 00:00:00 2001 From: Daniil Tsivinsky Date: Sun, 7 Nov 2021 22:16:49 +0300 Subject: [PATCH] Fix screenshot issue --- config/sway/config | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config/sway/config b/config/sway/config index 2fe36f2..cb682ef 100644 --- a/config/sway/config +++ b/config/sway/config @@ -16,6 +16,9 @@ set $term alacritty # Your preferred application launcher set $menu rofi -show drun +# Screenshot utility +set $shot "$HOME/dotfiles/bin/grimshot" + # Workspaces set $ws1 "1" set $ws2 "2" @@ -114,8 +117,8 @@ bindsym XF86AudioPrev exec playerctl previous bindsym F8 exec pavucontrol # Make screenshots -bindsym $mod+Home exec $HOME/dotfiles/bin/wlshot copy -bindsym $mod+Shift+Home exec $HOME/dotfiles/bin/wlshot save +bindsym $mod+Home exec --no-startup-id $shot --notify copy area +bindsym $mod+Shift+Home exec --no-startup-id $shot --notify save area "$HOME/Pictures/Screenshots/Screenshot_$(date +%s%3N).png" # Start a terminal bindsym $mod+Return exec $term