14 lines
343 B
Bash
Executable File
14 lines
343 B
Bash
Executable File
#!/bin/sh
|
|
|
|
_dmenu_config="$HOME/.config/dmenu/dmenurc"
|
|
_sessions="$(tmux ls | cut -d: -f1)"
|
|
|
|
if [ -f "$_dmenu_config" ] ; then
|
|
# dmenu options will now be stored in $DMENU_OPTIONS
|
|
. "$_dmenu_config"
|
|
fi
|
|
|
|
_session=$(echo "$_sessions" | dmenu $DMENU_OPTIONS -i -p "Tmux session:")
|
|
|
|
[ -z "$_session" ] || terminal-dev tmux attach -t $_session
|