-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·40 lines (33 loc) · 1.5 KB
/
setup.sh
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
#!/usr/bin/env bash
set -e
# Update/Clone argos repository
if [[ -d "/home/$(whoami)/.local/share/gnome-shell/extensions/argos/[email protected]" ]]; then
cd "/home/$(whoami)/.local/share/gnome-shell/extensions/argos/[email protected]"
git fetch origin master
git reset --hard origin/master
else
git clone https://github.com/p-e-w/argos.git /home/$(whoami)/.local/share/gnome-shell/extensions/argos
fi
# Set softlink, if not present
if [[ ! -L "/home/$(whoami)/.local/share/gnome-shell/extensions/[email protected]" ]]; then
echo "Set softlink into correct directory..."
ln -s /home/$(whoami)/.local/share/gnome-shell/extensions/argos/[email protected] /home/$(whoami)/.local/share/gnome-shell/extensions/[email protected]
fi
# Create argos config directory, if not present
if [[ ! -d "/home/$(whoami)/.config/argos" ]]; then
echo "Create argos config directory..."
mkdir -p /home/$(whoami)/.config/argos/
fi
# Copy python script to directory
git clone https://github.com/nliakm/sshclickconnect.git /tmp/sshclickconnect
cp /tmp/sshclickconnect/sshclickconnect.py /home/$(whoami)/.config/argos/
chmod +x /home/$(whoami)/.config/argos/sshclickconnect.py
rm -rf /tmp/sshclickconnect
echo -e '
Done!
---
Enable Argos extension:
If argos was installed the first time, restart GNOME Shell by pressing <Alt>+<F2>, then entering r.
On Wayland you have to re-login.
On some systems, you may additionally have to enable the Argos extension using GNOME Tweak Tool.'
exit 0