From 88445bed5b46466e1604e0f40c16365739711918 Mon Sep 17 00:00:00 2001 From: Julian T Date: Fri, 4 Jun 2021 15:31:44 +0200 Subject: Change screenshot commands --- scripts/Scripts/lc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'scripts/Scripts/lc') diff --git a/scripts/Scripts/lc b/scripts/Scripts/lc index b423c24..98b6ee2 100755 --- a/scripts/Scripts/lc +++ b/scripts/Scripts/lc @@ -3,7 +3,7 @@ LOGFILE=.lc.log DMENU="rofi -dmenu" -Commands="s suspend screen goto common pass set-keyboard poweroff lock scrot region overleaf-render caps-lock win wall cups pass sync random" +Commands="s suspend screen goto common pass remember set-keyboard poweroff lock scrot region overleaf-render caps-lock win wall cups pass sync random" handle_stuff() { if [ "$1" = "--dmenu" ]; then @@ -29,11 +29,13 @@ handle_stuff() { fi # Mics + imagename=$HOME/Screenshots/$(date -Iseconds)-screenshot.png if [ "$1" = "scrot" ]; then - scrot /tmp/%Y-%m-%d-%T-screenshot.png + scrot $imagename fi if [ "$1" = "region" ]; then - import /tmp/$(date -Iseconds)-screenshot.png + import $imagename + xclip -selection clipboard -t image/png -i $imagename fi if [ "$1" = "overleaf-render" ]; then @@ -57,6 +59,11 @@ handle_stuff() { echo $stuff | tr " " "\n" | rofi -dmenu fi + if [ "$1" = "remember" ]; then + import /tmp/rem.png + feh /tmp/rem.png + fi + # Launch if [ "$1" = "s" ]; then $HOME/Scripts/guiworkspace.sh -- cgit v1.2.3