User Tools

Site Tools


uzbltab

tab manager for uzbl written in c++. no longer maintained

http://github.com/jakeprobst/uzblstuff

example bindings (what I use)

@bind   tn   = sh 'echo "new" > /tmp/uzbltab'
@bind   tp   = sh 'echo "new `xclip -selection clipboard -o`" > /tmp/uzbltab'
@bind   tx   = sh 'echo "close" > /tmp/uzbltab'
@bind   >    = sh 'echo "next" > /tmp/uzbltab'
@bind   <    = sh 'echo "prev" > /tmp/uzbltab'
@bind   tg _ = sh 'echo "new %s" > /tmp/uzbltab'
@bind   t _  = sh 'echo "goto %s" > /tmp/uzbltab'
@bind   tf   = sh 'echo "first" > /tmp/uzbltab'
@bind   tl   = sh 'echo "last" > /tmp/uzbltab'
set new_window      = sh 'echo "new $8" > /tmp/uzbltab'

default event manager plugin:

def tabs(uzbl, keylet):
    f = file("/tmp/uzbltab", "wb")
    str = ("tabtitle %s %s \n" % (uzbl.uzbl_socket,keylet)).encode('utf8')
    f.write(str)
    f.close()
 
def turi(uzbl, keylet):
    f = file("/tmp/uzbltab", "wb")
    str = ("taburi %s %s \n" % (uzbl.uzbl_socket,keylet)).encode('utf8')
    f.write(str)
    f.close()
 
def init(uzbl):
    connects = {"TITLE_CHANGED": tabs,
                "LOAD_COMMIT": turi}
 
    uzbl.connect_dict(connects)
uzbltab.txt · Last modified: 2016/08/31 14:10 (external edit)