aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-03-10 13:23:24 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2019-03-10 13:23:24 +0100
commitd53a10c96b92fb6f759a78272950513c7f92f3ef (patch)
tree840c7803ff145ba271f64254e6f9d489d41133aa
parent6f05b0ca6b3fa89cc2203839ad3096be4ffe726a (diff)
downloadscripts-d53a10c96b92fb6f759a78272950513c7f92f3ef.tar.gz
scripts-d53a10c96b92fb6f759a78272950513c7f92f3ef.zip
Created scripts for i3lock, ripme and taking a screenshot.
-rwxr-xr-xi3lock.sh9
-rwxr-xr-xripme.sh4
-rwxr-xr-xscreenshot.sh7
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."