]> Sergey Matveev's repositories - dotfiles.git/blob - bin/bin/zat
Tabbed zathura
[dotfiles.git] / bin / bin / zat
1 #!/bin/sh
2
3 w=/tmp/tabbed-winid
4 winid=`cat $w`
5 wmclass=`xprop -id $winid WM_CLASS 2>/dev/null`
6 if echo "$wmclass" | grep -q tabbed; then
7     (
8         zathura -e $winid $@
9         rm -f zathura.core
10     ) &
11 else
12     tabbed -cd > $w
13     exec $0 $@
14 fi