dotfiles/.bin/OLD/scratchpad

6 lines
208 B
Plaintext
Raw Normal View History

#!/bin/sh
tmux ls | grep -q "^scratchpad.*attached" \
&& wmctrl -x -c scratchpad \
|| st -c scratchpad -g 128x38+250+150 -e \
ksh -c "tmux att -t scratchpad || tmux new-session -s scratchpad"