Middle-of-November Update

03:32 PM, 13 November 2014 » sites

Bueh, haven’t been posting here for some time.

I finally set up screenshooting bash script on notebook. I just made another git repo, cause it’s easier. :D Bash script for those who need ideas.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
#Created by Roshless for personal use.
#Feel free to modify and use on your own.
#Laptop version.

DIR="/data/Repos/screens-notebook"
DATE_PRE=$(date +"%Y-%m-%d")
DATE_POST=$(date +"%I:%M:%S-%p")
DOMAIN="http://p.screens.pw"
SOUND_FILE="/home/roshless/scripts/send_effect.wav"

cd $DIR

FILENAME=$DATE_PRE-screenshot_notebook-$DATE_POST
EXTENSION="png"

# still dont know which is better and why
# scrot --select --quality 80 $DIR/$FILENAME.$EXTENSION
import $DIR/$FILENAME.$EXTENSION



printf $DOMAIN/$FILENAME.$EXTENSION | xclip -selection c

git add $FILENAME.$EXTENSION 
git commit -m "Added $FILENAME.$EXTENSION" 
git push origin master 


# Laptop is nearly always muted, no need for sound
notify-send "screenshot added" -t 15 -u low
#mplayer $SOUND_FILE

exit