1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-12-04 17:12:29 +00:00
dotfiles/bin/i3-one-tmux
J. Fernando Sánchez 7bbcb17419 Several improvements.
* Tmux is not started by default anymore
* Added functions for i3 - Awesome!!
* zsh to start tmux
2013-07-12 19:19:52 +02:00

12 lines
285 B
Bash
Executable File

#!/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