]> Sergey Matveev's repositories - dotfiles.git/commitdiff
There is possibility of music subdirectory
authorSergey Matveev <stargrave@stargrave.org>
Thu, 3 Jul 2025 09:18:23 +0000 (12:18 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 3 Jul 2025 09:18:23 +0000 (12:18 +0300)
tmux/.tmux/bin/menu-music.sh

index 640901b011996cc8ab793a2da1a1393bbe321cfe..7cd3f1bf09445570a5c32928d2ca8b7e003487fb 100755 (executable)
@@ -1,7 +1,9 @@
 #!/bin/sh
 
 tmux has-session -t music || {
-    tmux new-session -d -s music -c ~/music
+    d=~/music
+    [ -d $d/music ] && d=$d/music
+    tmux new-session -d -s music -c $d
     tmux set-option -t music status off
 }
 exec tmux attach-session -t music