From 062f353ce3e8b807c85f121bf92766ed46147ca2 Mon Sep 17 00:00:00 2001 From: Stephan Raabe Date: Mon, 25 Sep 2023 08:53:35 +0200 Subject: [PATCH] Add swappy to grim script --- CHANGELOG | 5 +++++ scripts/grim.sh | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 379630f..be92c4e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +Version 2.3 +https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.2 +-------------------------------------------------------- +Screenshots: Add swappy + Version 2.2 https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.2 -------------------------------------------------------- diff --git a/scripts/grim.sh b/scripts/grim.sh index 7f98d5e..15ed3da 100755 --- a/scripts/grim.sh +++ b/scripts/grim.sh @@ -21,12 +21,14 @@ choice=$(echo -e "$options" | rofi -dmenu -i -no-show-icons -l 4 -width 30 -p "T case $choice in $option2) - grim -g "$(slurp)" $(xdg-user-dir PICTURES)/screenshots/$(date +'%s_grim.png') + grim -g "$(slurp)" - | swappy -f - + # grim -g "$(slurp)" $(xdg-user-dir PICTURES)/screenshots/$(date +'%s_grim.png') notify-send "Screenshot created" "Mode: Selected area" ;; $option3) sleep 3 - grim $(xdg-user-dir PICTURES)/screenshots/$(date +'%s_grim.png') + grim - | swappy -f - + # grim $(xdg-user-dir PICTURES)/screenshots/$(date +'%s_grim.png') notify-send "Screenshot created" "Mode: Fullscreen" ;; esac