-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·40 lines (32 loc) · 1.54 KB
/
Copy pathinstall
File metadata and controls
executable file
·40 lines (32 loc) · 1.54 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
#!/bin/bash
# installing dependencies
sudo add-apt-repository universe
sudo apt install gnome-tweak-tool gnome-session
sudo apt install xclip python3 python3-gi python3-gi-cairo gir1.2-gtk-3.0
# setting configs
WORKING_DIR="$HOME/.copy-cat-tail/clipboard"
CONFIG_DIR="$HOME/.copy-cat-tail/config"
MAX_COPY_LIMIT=40
# creating working directories and config
mkdir -p $WORKING_DIR/copies
mkdir -p $CONFIG_DIR
touch $CONFIG_DIR/config
echo "WORKING_DIR=/$WORKING_DIR" > $CONFIG_DIR/config
echo "MAX_COPY_LIMIT=$MAX_COPY_LIMIT" >> $CONFIG_DIR/config
chmod +x $CONFIG_DIR/config
# porting executables
sudo cp display.py /usr/bin/copy-cat-tail-show
sudo chmod +x /usr/bin/copy-cat-tail-show
sudo cp server.sh /usr/bin/copy-cat-tail-server
sudo chmod +x /usr/bin/copy-cat-tail-server
# adding startup application
mkdir -p $HOME/.config/autostart
echo "[Desktop Entry]" > $HOME/.config/autostart/copy-cat-tail.desktop
echo "Type=Application" >> $HOME/.config/autostart/copy-cat-tail.desktop
echo "Exec=copy-cat-tail-server" >> $HOME/.config/autostart/copy-cat-tail.desktop
echo "Hidden=false NoDisplay=false" >> $HOME/.config/autostart/copy-cat-tail.desktop
echo "X-GNOME-Autostart-enabled=true" >> $HOME/.config/autostart/copy-cat-tail.desktop
echo "Name[en_IN]=copy-cat-tail" >> $HOME/.config/autostart/copy-cat-tail.desktop
echo "Name=copy-cat-tail" >> $HOME/.config/autostart/copy-cat-tail.desktop
echo "Comment[en_IN]=clipboard-server" >> $HOME/.config/autostart/copy-cat-tail.desktop
echo "Comment=clipboard-server" >> $HOME/.config/autostart/copy-cat-tail.desktop