313 current 2025-02-09 03:08:44 25.05.20241217.d3c42f1 6.6.66 *
This commit is contained in:
@@ -164,9 +164,9 @@ alias polybar-restart='pkill polybar; setsid polybar mybar > /dev/null 2> /dev/n
|
||||
# alias ytdl="sh /home/synchronous/.scripts/music/ytdl.sh"
|
||||
alias ytdl-mp3="yt-dlp -x --audio-format mp3 --audio-quality 0 -o '/home/synchronous/music/%(title)s.%(ext)s' "
|
||||
|
||||
alias phone-mount="sh /home/synchronous/.scripts/phone-mount/mount.sh"
|
||||
alias phone-unmount="sh /home/synchronous/.scripts/phone-mount/unmount.sh"
|
||||
alias music-move="sh /home/synchronous/.scripts/music/music-move.sh"
|
||||
# alias phone-mount="sh /home/synchronous/.scripts/phone-mount/mount.sh"
|
||||
# alias phone-unmount="sh /home/synchronous/.scripts/phone-mount/unmount.sh"
|
||||
# alias music-move="sh /home/synchronous/.scripts/music/music-move.sh"
|
||||
|
||||
alias ntpsync="sudo ntpdate pool.ntp.org"
|
||||
# alias fb="cd /home/synchronous/code/tob/fb"
|
||||
|
||||
19
home/scripts/phone-mount/phone-mount.sh
Normal file
19
home/scripts/phone-mount/phone-mount.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
MOUNT_POINT="/home/synchronous/android_phone"
|
||||
|
||||
# Check if mount point exists, if not, create it
|
||||
if [ ! -d "$MOUNT_POINT" ]; then
|
||||
mkdir -p "$MOUNT_POINT"
|
||||
fi
|
||||
|
||||
simple-mtpfs $MOUNT_POINT
|
||||
|
||||
if mountpoint -q "$MOUNT_POINT"; then
|
||||
echo "Mount was successful."
|
||||
else
|
||||
echo ""
|
||||
echo "Accept the phone prompt!"
|
||||
sleep 5
|
||||
simple-mtpfs $MOUNT_POINT
|
||||
fi
|
||||
5
home/scripts/phone-mount/phone-unmount.sh
Normal file
5
home/scripts/phone-mount/phone-unmount.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
MOUNT_POINT="/home/synchronous/android_phone"
|
||||
fusermount -u $MOUNT_POINT
|
||||
rm -rf $MOUNT_POINT
|
||||
Reference in New Issue
Block a user