You are not logged in.

#1 2009-10-09 13:35:14

securitybreach
Member
From: In front of my computers
Registered: 2007-11-18
Posts: 416
Website

SOLVE Uzbl loading bookmark shortcut & page navigation

I am running Xmonad with uzbl-git installed and I am still learning all the shortcuts but I do have a couple question. I am using the defaults from /usr/share/uzbl/examples.

I know "shift-b" is to bookmark a link and "u" is to load a bookmark from dmenu. The bookmarks come up fine but how do I load them. I select one and press enter and nothing happens, Loading a url from the history works fine with the enter key though.

Also, is there an easier way to navigate the pages besides using the tab key, and no I do not mean the mouse but a better shortcut to do this?

Here is my uzbl config:

http://pastebin.com/f612ed325

Any ideals?

Thanks

Last edited by securitybreach (2009-10-09 21:54:19)


"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website      Configs
Forum Admin: Bruno's All Things Linux   
securitybreach<a>archlinux.us

Offline

#2 2009-10-09 14:29:49

Lich
Member
Registered: 2009-09-13
Posts: 437

Re: SOLVE Uzbl loading bookmark shortcut & page navigation

securitybreach wrote:

I am running Xmonad with uzbl-git installed and I am still learning all the shortcuts but I do have a couple question. I am using the defaults from /usr/share/uzbl/examples.

I know "shift-b" is to bookmark a link and "u" is to load a bookmark from dmenu. The bookmarks come up fine but how do I load them. I select one and press enter and nothing happens, Loading a url from the history works fine with the enter key though.

Also, is there an easier way to navigate the pages besides using the tab key, and no I do not mean the mouse but a better shortcut to do this?

Here is my uzbl config:

http://pastebin.com/f612ed325

Any ideals?

Thanks

bind    j         = scroll_vert 20
bind    k         = scroll_vert -20
bind    h         = scroll_horz -20
bind    l         = scroll_horz 20
bind    <<        = scroll_begin
bind    >>        = scroll_end
bind    b         = back
bind    m         = forward
bind    S         = stop
bind    r         = reload

there's your easy  navigation.
To go to links/elements without the tab key type `fl`, then the coresponding number
This is all in your config, read it carefully

After careful checking, the adding of bookmarks doesn't work for me either, but I can load. I need to check the add bookmark script

Last edited by Lich (2009-10-09 16:52:48)


Archlinux | ratpoison + evilwm | urxvtc | tmux

Offline

#3 2009-10-09 16:28:10

securitybreach
Member
From: In front of my computers
Registered: 2007-11-18
Posts: 416
Website

Re: SOLVE Uzbl loading bookmark shortcut & page navigation

Cool, I knew about the page navigation but did not know about "fl" to select links

That helps alot.

I am the opposite, I can add them but cannot load them.

Thanks

Last edited by securitybreach (2009-10-09 16:29:19)


"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website      Configs
Forum Admin: Bruno's All Things Linux   
securitybreach<a>archlinux.us

Offline

#4 2009-10-09 18:01:45

Raffles10
Member
From: London, UK
Registered: 2009-05-09
Posts: 115

Re: SOLVE Uzbl loading bookmark shortcut & page navigation

securitybreach wrote:

I am running Xmonad with uzbl-git installed and I am still learning all the shortcuts but I do have a couple question. I am using the defaults from /usr/share/uzbl/examples.

I know "shift-b" is to bookmark a link and "u" is to load a bookmark from dmenu. The bookmarks come up fine but how do I load them. I select one and press enter and nothing happens, Loading a url from the history works fine with the enter key though.

Also, is there an easier way to navigate the pages besides using the tab key, and no I do not mean the mouse but a better shortcut to do this?

Here is my uzbl config:

http://pastebin.com/f612ed325

Any ideals?

Thanks

I had that same problem. I can't remember exactly what the problem was but this is the script I have now:

#!/bin/bash

#~/.local/share/uzbl/scripts/load_url_from_bookmarks.sh
#
#NOTE: it's the job of the script that inserts bookmarks to make sure there are no dupes.

file=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/bookmarks
[ -r "$file" ] || exit
COLORS=" -nb #303030 -nf khaki -sb #CCFFAA -sf #303030"
if dmenu --help 2>&1 | grep -q '\[-rs\] \[-ni\] \[-nl\] \[-xs\]'
then
    DMENU="dmenu -i -xs -rs -l 10" # vertical patch
    # show tags as well
    goto=`$DMENU $COLORS < $file | awk '{print $1}'`
else
    DMENU="dmenu -i"
    # because they are all after each other, just show the url, not their tags.
    goto=`awk '{print $1}' $file | $DMENU $COLORS`
fi

[ -n "$goto" ] && echo "uri $goto" > $4
#[ -n "$goto" ] && echo "uri $goto" | socat - unix-connect:$5

For a more convenient navigation you might want to try Uzbl Tabbed

Hope this helps some. smile

Offline

#5 2009-10-09 18:21:29

Lich
Member
Registered: 2009-09-13
Posts: 437

Re: SOLVE Uzbl loading bookmark shortcut & page navigation

I am using the Tabbed uzbl, wouldn't use UZBL if it wasn't for that script.
Your script seems to have the last two lines different from the original. You have the last line commented out, the original has the one before that.
Mind sharing your script for adding to bookmarks? that's what's failing for me


Archlinux | ratpoison + evilwm | urxvtc | tmux

Offline

#6 2009-10-09 20:54:50

Raffles10
Member
From: London, UK
Registered: 2009-05-09
Posts: 115

Re: SOLVE Uzbl loading bookmark shortcut & page navigation

Lich wrote:

I am using the Tabbed uzbl, wouldn't use UZBL if it wasn't for that script.
Your script seems to have the last two lines different from the original. You have the last line commented out, the original has the one before that.
Mind sharing your script for adding to bookmarks? that's what's failing for me

I wish I could but unfortunately adding to bookmarks has always failed for me too. When I need to add a bookmark I do it manually. sad

I've spent some time trying to figure that one out. I've even tried some other third party bookmark scripts that I've found, but none of those have worked either. I've looked at other peoples' configs, can't see any difference between theirs and mine. Maybe securitybreach can show his script, although I suspect it'll be the same. hmm

Offline

#7 2009-10-09 21:35:42

securitybreach
Member
From: In front of my computers
Registered: 2007-11-18
Posts: 416
Website

Re: SOLVE Uzbl loading bookmark shortcut & page navigation

Here ya go:

~/.local/share/uzbl/scripts/load_url_from_bookmark.sh:

#!/bin/bash

#NOTE: it's the job of the script that inserts bookmarks to make sure there are no dupes.

file=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/bookmarks
[ -r "$file" ] || exit
COLORS=" -nb #303030 -nf khaki -sb #CCFFAA -sf #303030"
if dmenu --help 2>&1 | grep -q '\[-rs\] \[-ni\] \[-nl\] \[-xs\]'
then
    DMENU="dmenu -i -xs -rs -l 10" # vertical patch
    # show tags as well
    goto=`$DMENU $COLORS < $file | awk '{print $1}'`
else
    DMENU="dmenu -i"
    # because they are all after each other, just show the url, not their tags.
    goto=`awk '{print $1}' $file | $DMENU $COLORS`
fi

#[ -n "$goto" ] && echo "uri $goto" > $4
[ -n "$goto" ] && echo "uri $goto" | socat - unix-connect:$5

Thanks


"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website      Configs
Forum Admin: Bruno's All Things Linux   
securitybreach<a>archlinux.us

Offline

#8 2009-10-09 21:52:37

securitybreach
Member
From: In front of my computers
Registered: 2007-11-18
Posts: 416
Website

Re: SOLVE Uzbl loading bookmark shortcut & page navigation

Ahhh, I ran it in the from the console and I noticed that it complained about socat missing. I installed it and now it works perfectly. WOOT
Thanks

Last edited by securitybreach (2009-10-12 13:21:41)


"Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." -- H.L. Mencken
Website      Configs
Forum Admin: Bruno's All Things Linux   
securitybreach<a>archlinux.us

Offline

Board footer

Powered by FluxBB