summaryrefslogtreecommitdiff
path: root/scripts/Scripts/lc
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-06-04 15:31:44 +0200
committerJulian T <julian@jtle.dk>2021-06-04 15:31:44 +0200
commit88445bed5b46466e1604e0f40c16365739711918 (patch)
treeb0324ebb025f9f0433d8af5515f582c9c7ff3a3f /scripts/Scripts/lc
parentd06c5308bb5aff9981902b3ba3ec40cea1c85751 (diff)
Change screenshot commands
Diffstat (limited to 'scripts/Scripts/lc')
-rwxr-xr-xscripts/Scripts/lc13
1 files changed, 10 insertions, 3 deletions
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