summaryrefslogtreecommitdiff
path: root/ratws
blob: 1c093a80d8c95da3b434093080191084edce12fa (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env sh

w=$(ratpoison -c windows)
#[ "$1" = "-s" ] && p="Tab" && w=$(echo "$w" | grep '(surf)')
#[ "$1" = "-w" ] && p="Windows" && w=$(echo "$w" | grep -v '(surf)')
[ -z "$w" ] && exit
sel=$(echo "$w" | ratdm -p ${p:-All}' >' | cut -d ' ' -f 1)
if [ -n "$sel" ]; then
    ratpoison -c "select $sel"
fi;