summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSaumit Dinesan <79687674+Saumit-D@users.noreply.github.com>2022-01-18 16:39:15 +0530
committerGitHub <noreply@github.com>2022-01-18 16:39:15 +0530
commit55c57e0f57e10de7471a9de092d2bb3a652106f3 (patch)
tree1083e1cbf1f2c0919d2d239e7a8efab0d6f747cc /scripts
parenta1605ddb8a185e90aca4c71647741ccb61a08eb1 (diff)
Add files via upload
Diffstat (limited to 'scripts')
-rw-r--r--scripts/betterlockscr4
-rw-r--r--scripts/bts4
-rw-r--r--scripts/mntwindows7
-rw-r--r--scripts/rsyncfon24
4 files changed, 39 insertions, 0 deletions
diff --git a/scripts/betterlockscr b/scripts/betterlockscr
new file mode 100644
index 0000000..7abdab8
--- /dev/null
+++ b/scripts/betterlockscr
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+wall=$(find $HOME/Pictures/Wallpaper/betterlockscreen -type f | shuf -n 1)
+betterlockscreen -u "$wall" -l dimblur
diff --git a/scripts/bts b/scripts/bts
new file mode 100644
index 0000000..2900ef9
--- /dev/null
+++ b/scripts/bts
@@ -0,0 +1,4 @@
+bluetoothctl power on
+bluetoothctl connect A1:B3:EC:B1:53:60
+bluetoothctl connect A1:B3:EC:B1:53:60
+
diff --git a/scripts/mntwindows b/scripts/mntwindows
new file mode 100644
index 0000000..5adb9c5
--- /dev/null
+++ b/scripts/mntwindows
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+sudo mount /dev/nvme0n1p3 /home/C
+sudo mount /dev/nvme0n1p4 /home/D
+sudo mount /dev/nvme0n1p5 /home/E
+sudo mount /dev/nvme0n1p6 /home/F
+sudo mount /dev/nvme0n1p7 /home/G
diff --git a/scripts/rsyncfon b/scripts/rsyncfon
new file mode 100644
index 0000000..bd1b9ae
--- /dev/null
+++ b/scripts/rsyncfon
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+echo "Welcome to rsyncfon a fon to pc rsync script"
+echo -e "What would you like to do?\r\n1)sync from phone to pc 2)sync from pc to phone "
+read option
+case "$option" in
+ "1")
+ echo -e "Enter public IP on mobile device (starting with 192.): \r\n!Make sure the device and the desktop are connected to the same network!"
+ read IP
+ echo "Enter file/folder to be rsync'd (Leave empty if entire sdcard) (/sdcard/*)"
+ read file
+ echo "Enter desination path on PC \r\n!!!Make sure to check whether it had sufficient space or not!!!"
+ read dest
+ rsync --update --progress -e 'ssh -p 2222' -azv $IP:/sdcard/$file $dest;;
+ "2")
+ echo "Enter file/folder from pc to be rsync'd"
+ read file
+ echo "Enter public IP"
+ read IP
+ echo "Enter destination location( /sdcard/*)"
+ read dest
+ rsync --update --progress -e 'ssh -p 2222' -azv $file root@$IP:$dest
+esac
+