diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-02-01 15:18:03 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-02-01 15:18:03 +0530 |
| commit | 4b5fe99e82b0804e4dabdb2860ec4a4257b4065f (patch) | |
| tree | 4ebd31f3de1118fbfba23ee8e294ec232f1bc3b4 | |
| parent | 1d0c01a06c33b2d0dd869cb8b203574b1d149c0a (diff) | |
| download | nixos-config-4b5fe99e82b0804e4dabdb2860ec4a4257b4065f.tar.gz nixos-config-4b5fe99e82b0804e4dabdb2860ec4a4257b4065f.zip | |
SD sync script for digital audio player
| -rwxr-xr-x | scripts/commands/:save-link | 3 | ||||
| -rwxr-xr-x | scripts/music/sync-sdcard.sh | 16 |
2 files changed, 19 insertions, 0 deletions
diff --git a/scripts/commands/:save-link b/scripts/commands/:save-link new file mode 100755 index 0000000..e697bdf --- /dev/null +++ b/scripts/commands/:save-link @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +exec ~/.config/kak/scripts/logger.sh link "$@" diff --git a/scripts/music/sync-sdcard.sh b/scripts/music/sync-sdcard.sh new file mode 100755 index 0000000..f4093d5 --- /dev/null +++ b/scripts/music/sync-sdcard.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env sh + +set -eu -o pipefail + +dir=$(ls /run/media/imsohexy/ | fzf --prompt="Copy to: ") + +rsync \ + --exclude=.stfolder \ + --exclude=.thumbnails \ + -ahvP \ + --delete \ + --modify-window=2 \ + ~/Downloads/music/ \ + "/run/media/imsohexy/$dir" + +notify-send "Done copying music. Sort it maybe?" |
