taco@taco:~$
reappears ( showing to me the tasks are done)...I want a sound to play
I came across this below.
viewtopic.php?t=388644
...and am Just trying to figure out how to make the system wait until
taco@taco:~$
appears BEFORE it plays the sound effect. But no matter what I've tried..it plays the sound the instead it the script via xdotool auto executes typing and pressing enter on my password to execute the rsync part..instead of and the end of it all.
Here's my script below:
Code: Select all
#!/bin/bash
dconf dump /org/cinnamon/desktop/keybindings/ > ~/my_keybindings
wait
dconf dump / > cinnamon_desktop
wait
cp ~/my_keybindings '/mnt/GoPro 1TB Backup/Keyboard shortcuts backup/'
wait
cp ~/my_keybindings '/mnt/16TB Toshiba hdd/Keyboard shortcuts backup/'
wait
dconf dump / > cinnamon_desktop
wait
mv '/home/taco/Mechanic/cinnamon_desktop' '/home/taco/'
wait
cp '/home/taco/cinnamon_desktop' '/mnt/GoPro 1TB Backup/Cinnamon Desktop backup/'
wait
cp ~/dconf-settings.conf '/mnt/GoPro 1TB Backup/Dconf dash settings.conf/'
wait
xdotool keydown super sleep 0.25 key Return sleep 0.25 key Right sleep 0.2 key Up sleep 0.2 keyup super
wait
xdotool type "sudo rsync -avhu --info=progress2 --delete --exclude=".cache" '/home/taco/' '/mnt/sdb1 rsyncbackup/'" && xdotool key Return
wait
xdotool type "moto" && xdotool key Return & wait
paplay --playback --volume=45000 --file-format=ogg /usr/share/sounds/LinuxMint/stereo/desktop-login.ogg &
notify-send "achiveBackup" "Complete"