-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathget_client.sh
More file actions
executable file
·44 lines (37 loc) · 1.2 KB
/
get_client.sh
File metadata and controls
executable file
·44 lines (37 loc) · 1.2 KB
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
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
# This file is a part of quicksave project.
# Copyright 2017 Aleksander Gajewski <adiog@quicksave.io>.
cd $(dirname $0)
sudo apt install gedit xsel gnome-screenshot
mkdir -p ~/.quicksave
[[ ! -e ~/.quicksave/venv ]] && python3 -m virtualenv -p python3 ~/.quicksave/venv
. ~/.quicksave/venv/bin/activate
pip3 install git+https://github.com/adiog/io_quicksave_client.git --upgrade
function get_script() {
SCRIPT=$1
[[ ! -e ~/.quicksave/bin/${SCRIPT} ]] && wget -O ~/.quicksave/bin/${SCRIPT} https://raw.githubusercontent.com/adiog/io_quicksave_client/master/bin/${SCRIPT}
chmod +x ~/.quicksave/bin/${SCRIPT}
}
mkdir -p ~/.quicksave/bin
get_script qsarea.sh
get_script qsclip.sh
get_script qsnote.sh
echo
qs -h
sed -e "s/https/http/g" -i ~/.quicksave/quicksave.ini
echo
echo "Enable virtualenv with:"
echo "$ . venv/bin/activate"
echo "And use qs command to add items."
echo
echo "Examples:"
echo "$ qs --text \"Do the homework\""
echo "$ qs --file VeryImportant.pdf"
echo "$ qs --clipboard"
echo "$ qs --screenshot"
echo
echo "Open http://quicksave.io in your web browser"
echo
echo "Consider using a web browser plugin (firefox/chrome)"
echo
echo "Default credentials are \"testuser\" / \"testpass\""