diff --git a/backup/backup b/backup/backup new file mode 100755 index 0000000..26c74b9 --- /dev/null +++ b/backup/backup @@ -0,0 +1,4 @@ +rsync --ignore-existing -azP ~/documents/ 192.168.1.250:backup/documents/ +rsync --ignore-existing -azP ~/pictures/ 192.168.1.250:backup/pictures/ +rsync --ignore-existing -azP ~/books/ 192.168.1.250:backup/books/ + diff --git a/backup/restore_backup b/backup/restore_backup new file mode 100755 index 0000000..e021b09 --- /dev/null +++ b/backup/restore_backup @@ -0,0 +1,3 @@ +rsync --ignore-existing -azP 192.168.1.250:backup/documents/ documents +rsync --ignore-existing -azP 192.168.1.250:backup/pictures/ pictures +rsync --ignore-existing -azP 192.168.1.250:backup/books/ books diff --git a/dmenu/dmenu_ssh b/dmenu/dmenu_ssh new file mode 100755 index 0000000..9f0009f --- /dev/null +++ b/dmenu/dmenu_ssh @@ -0,0 +1,35 @@ +#!/bin/sh + +internal_thinkcentre() { + st -e ssh 192.168.1.250 +} + +external_thinkcentre() { + st -e ssh 51.7.197.254 +} + +different_server() { + IP=$(dmenu -i -p "Enter host:") + # Would you like to add this to saved servers? + st -e ssh $IP +} + +select_ssh() { + server=$(printf "thinkcentre\nthinkcentre_external\nunlisted" | dmenu -i -p "Server:") + + case "$server" in + "thinkcentre") + internal_thinkcentre;; + "thinkcentre_external") + external_thinkcentre;; + "uumm") + different_server;; + esac +} + +case "$1" in + "thinkcentre") + internal_thinkcentre;; + *) + select_ssh;; +esac diff --git a/install.sh b/installs/install.sh similarity index 98% rename from install.sh rename to installs/install.sh index dabef5e..434cbf5 100755 --- a/install.sh +++ b/installs/install.sh @@ -51,6 +51,7 @@ apt install libx11-xcb-dev libxcb-res0-dev -y #/lib/systemd/system/tranmission-daemon.service # Change debian-transmission to $USER # systemctl daemon-reload # start/restart service +# /etc/transmission-daemon/settings.json # edit whitelist, blocklist, password # Setup the user for transmission-daemon diff --git a/install_arch.sh b/installs/install_arch.sh old mode 100644 new mode 100755 similarity index 100% rename from install_arch.sh rename to installs/install_arch.sh diff --git a/minecraft_autoserver b/installs/minecraft_autoserver similarity index 100% rename from minecraft_autoserver rename to installs/minecraft_autoserver diff --git a/record.sh b/record.sh deleted file mode 100755 index 5d5fe89..0000000 --- a/record.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -ffmpeg -y -f x11grab -s 1280x800 -i :0.0 -f alsa -i default ~/recordings/out.mkv