blob: d44d0c0b932e16058183b4a16ff6ce6a0028314d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/sbin/sh
SESSIONS=`qbpm list`
[ -z "$SESSIONS" ] && qutebrowser $@
CHOSEN=`printf "default\n$SESSIONS" | barmenu -l 15`
[ -z "$CHOSEN" ] && exit 2
if [ -n "$CHOSEN" ]; then
if [ "$CHOSEN" = "default" ]; then
qutebrowser $@
else
if [ -z `echo "$SESSIONS" | grep "$CHOSEN"` ]; then
qbpm new "$CHOSEN"
fi
qbpm launch "$CHOSEN" $@
#qutebrowser -B "$HOME/.local/share/$CHOSEN"
fi
fi
|