diff options
-rwxr-xr-x | clip | 21 | ||||
-rw-r--r-- | keybinds | 8 | ||||
-rwxr-xr-x | xrec | 15 | ||||
-rwxr-xr-x | xshot | 17 |
4 files changed, 57 insertions, 4 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*" @@ -9,13 +9,13 @@ alt + shift + t # xshot and clip for Screenshots alt + control + Print - xshot ss full + xshot full alt + Print clip full alt + control + s - xshot ss area + xshot area alt + shift + s clip area @@ -23,10 +23,10 @@ alt + shift + s # xshot for Recordings alt + shift + r - xshot rec start + xrec start alt + shift + e - xshot rec stop + xrec stop # xsecurelock @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e + +recordingPATH=~/media/screenrecords/ + +case $1 in + + start) + ffmpeg -video_size 1920x1080 -framerate 60 -f x11grab -i :0.0+0,0 ${recordingPATH}screenrecording_$(($(ls $recordingPATH | wc -l)+1)).mp4 ;; + + stop) + pkill ffmpeg ;; + +esac @@ -0,0 +1,17 @@ +#!/bin/bash + +set -e + +screenshotPATH=~/media/screenshots/ + +cd $screenshotPATH + +case $1 in + + full) + scrot -z -q 100 "%Y-%m-%d %H:%M:%S.png" ;; + + area) + scrot -z -q 100 -s "%Y-%m-%d %H:%M:%S.png" ;; # -f --freeze + +esac |