aboutsummaryrefslogtreecommitdiff
path: root/tmux
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-07-22 09:55:24 +0300
committereug-vs <eug-vs@keemail.me>2021-07-22 09:55:24 +0300
commite29c2ae94666914aa2bae2bcf48bfc28545d47b4 (patch)
tree33a193bbeb665a7036fe1fc53e9bfcb92a6db14e /tmux
parent0fb0039433c0777027f9f9fc63d6ec77117a7f48 (diff)
downloaddotfiles-e29c2ae94666914aa2bae2bcf48bfc28545d47b4.tar.gz
refactor: distribute scripts across packages
Diffstat (limited to 'tmux')
-rwxr-xr-xtmux/.local/bin/tmux-kill-menu.sh2
-rwxr-xr-xtmux/.local/bin/tmuxinator-menu.sh5
2 files changed, 7 insertions, 0 deletions
diff --git a/tmux/.local/bin/tmux-kill-menu.sh b/tmux/.local/bin/tmux-kill-menu.sh
new file mode 100755
index 0000000..e910a4d
--- /dev/null
+++ b/tmux/.local/bin/tmux-kill-menu.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+tmux ls -F "#{session_name}" | dmenu -l 10 | xargs tmux kill-session -t
diff --git a/tmux/.local/bin/tmuxinator-menu.sh b/tmux/.local/bin/tmuxinator-menu.sh
new file mode 100755
index 0000000..4dfcc14
--- /dev/null
+++ b/tmux/.local/bin/tmuxinator-menu.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+PROJECTS_DIR=~/.config/tmuxinator
+
+ls $PROJECTS_DIR | sed 's/\.yml//g' | dmenu -l 10 | xargs tmuxinator start