aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-02-08 14:17:04 +0300
committereug-vs <eugene@eug-vs.xyz>2023-02-08 14:17:04 +0300
commitf8f6cec4e5fa6027c9e3b401a00dbaf0f036eeeb (patch)
tree5607c7a217e6bb888ed3e329d329b18a1bd69b70
parent35ab9aa4ef14391b8c99cadc37f8bbd858f35e97 (diff)
downloaddotfiles-f8f6cec4e5fa6027c9e3b401a00dbaf0f036eeeb.tar.gz
feat(env): restore X screenshotting
-rwxr-xr-xenv/.local/bin/screenshot.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/env/.local/bin/screenshot.sh b/env/.local/bin/screenshot.sh
index 7071b5c..a3a6b1b 100755
--- a/env/.local/bin/screenshot.sh
+++ b/env/.local/bin/screenshot.sh
@@ -6,4 +6,5 @@ SCREENSHOTS_DIR=$HOME/Pictures/Screenshots
FILENAME=$SCREENSHOTS_DIR/$(date +%F_%H-%M-%S).png
mkdir -p $SCREENSHOTS_DIR
-grim $@ $FILENAME && wl-copy < $FILENAME
+
+import $@ $FILENAME && xclip -selection clipboard -target image/png -i < $FILENAME