diff options
author | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2023-09-24 21:38:37 +0300 |
---|---|---|
committer | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2023-09-24 21:38:37 +0300 |
commit | d0fd698bcacc2c477a0149d2deb373722f45e214 (patch) | |
tree | 4d1ca7c02f4c6b13239184961da0aec069b205ff /clip | |
parent | 6215bc6b4e524735b75a45cdf6d08c7edf641bdb (diff) |
Adding entire tool chain for:
- taking screenshots
- taking screenshots and piping them to the system clipboard
- taking recordings of the x11 screen with x11grab and ffmpeg (no audio)
Changes to be committed:
modified: keybinds
new file: clip
new file: xrec
new file: xshot
Diffstat (limited to 'clip')
-rwxr-xr-x | clip | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -0,0 +1,21 @@ +#!/bin/bash + +set -e + +case $1 in + + full) + scrot -z -q 100 "/tmp/imgclip.png" + xclip -selection clipboard -t image/png -i "/tmp/imgclip.png" + rm "/tmp/imgclip.png" + ;; + + area) + scrot -z -q 100 -s "/tmp/imgclip.png" # -f --freeze + xclip -selection clipboard -t image/png -i "/tmp/imgclip.png" + rm "/tmp/imgclip.png" + ;; + +esac + +rm "/tmp/imgclip*" |