Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- wid=$(xdotool search --classname st-256color)
- if [ -z $wid ]
- then
- st -e tmux
- wid=$(xdotool search --classname st-256color)
- xdotool windowfocus $wid
- elif [ -z $(xdotool search --onlyvisible --classname st-256color 2>/dev/null) ]
- then
- xdotool windowmap $wid
- xdotool windowfocus $wid
- else
- xdotool windowsize --usehints $wid 100% 100%
- xdotool windowunmap $wid
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement