diff options
-rwxr-xr-x | i3lock.sh | 9 | ||||
-rwxr-xr-x | ripme.sh | 4 | ||||
-rwxr-xr-x | screenshot.sh | 7 |
3 files changed, 20 insertions, 0 deletions
diff --git a/i3lock.sh b/i3lock.sh new file mode 100755 index 0000000..029b2f1 --- /dev/null +++ b/i3lock.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# Generates an i3lock bg based on a screenshot. + +imgLock="$HOME/images/padlock.png" +imgFinal="/tmp/lockFinal$(date +"%H%M%S").png" +maim /tmp/i3lockss.png +convert /tmp/i3lockss.png -paint 1 -swirl -20 "$imgLock" -gravity center -composite "$imgFinal" +i3lock -i "$imgFinal" -f diff --git a/ripme.sh b/ripme.sh new file mode 100755 index 0000000..c975483 --- /dev/null +++ b/ripme.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +notify-send -t 1400 "Ripping $1..." +java -jar ~/programs/ripme*.jar -u "$1" && notify-send "Finished ripping $1." diff --git a/screenshot.sh b/screenshot.sh new file mode 100755 index 0000000..21f490a --- /dev/null +++ b/screenshot.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +# Takes a screenshot + +name="$(date +"%y%m%d_%H%M%S")".png +file="$HOME/images/screenshots/""$name" +maim -m 8 $file && notify-send -t 800 "Screenshot $name taken." |