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