You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/scripts/.bin/i3-one-tmux

12 lines
285 B
Bash

#!/bin/zsh
python2 $HOME/.bin/i3-wm-scripts/nextmatch.py tmux
if [ $? -gt 0 ]; then
urxvt -e tmux attach & sleep 0.1 && python2 $HOME/.bin/i3-wm-scripts/nextmatch.py tmux
fi
if [ "$#" -gt 0 ]; then
eval "tmux neww"
sleep 0.2
xdotool type "$*"
xdotool key Return
fi