dotfiles/.bin/OLD/scratchpad
2024-02-14 07:55:58 +01:00

6 lines
208 B
Bash
Executable File

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