]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Music-related session and menu
authorSergey Matveev <stargrave@stargrave.org>
Tue, 29 Sep 2020 15:56:43 +0000 (18:56 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 29 Sep 2020 15:56:43 +0000 (18:56 +0300)
bin/bin/attach-music.sh [new file with mode: 0755]
tmux/.tmux.conf

diff --git a/bin/bin/attach-music.sh b/bin/bin/attach-music.sh
new file mode 100755 (executable)
index 0000000..12bc40b
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+tmux has-session -t music || {
+    tmux new-session -d -s music -c ~/tmp/music
+    tmux set-option -t music status off
+}
+tmux attach-session -t music
index 7ca32a6469748f045d5f5f9b6929bc11a6d16d0c..f414919c26c9219d642afb4b744449c941f3688c 100644 (file)
@@ -35,6 +35,7 @@ unbind-key L
 
 bind-key t display-menu \
     dict d "popup -KE -R ~/bin/dict.sh" \
+    music m "popup -KE -R ~/bin/attach-music.sh" \
     top t "popup -KE -R \"top -s 1\""
 
 bind-key u {