You are not logged in.

#351 2009-06-23 09:22:29

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: uzbl. A browser that adheres to the unix philosophy.

9mqksfhn wrote:

There's already something here but it's for xfce 4.4 (doesn't seem to work in xfce 4.6): http://goodies.xfce.org/projects/panel- … ark-plugin + It has more features than I need. I just want to type a url and it opens in web browser rather than search.

why do you want this as a panel plugin?
why not just use something like zenity/dmenu to enter the url and launch uzbl.


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#352 2009-06-23 12:32:56

fflarex
Member
Registered: 2007-09-15
Posts: 466

Re: uzbl. A browser that adheres to the unix philosophy.

slyson wrote:
fflarex wrote:

With the example quickmarks file above, you could type 'goa' to take you to the Arch home page in the current window, or 'gnu' to take you to uzbl's page in a new window, etc.

When I type 'go' or 'gn' it doesn't give me a chance to type the quickmark before it loads a blank url 'http:/' or opens a new window. I've made sure all my directories are set correctly, and that the quickmarks file is one per line. I can't even see what's wrong with the script - it looks like it should work.

Are there any conflicting shortcuts in your config? Any blank lines in your quickmarks file (there should be no blank lines or comments)? This actually happens to me every once in a while too, usually right after another instance of uzbl crashes. I can't really figure out why. If it is happening 100% of the time for you, though, I doubt it's caused by the same thing I'm having trouble with.

Dieter@be wrote:
9mqksfhn wrote:

There's already something here but it's for xfce 4.4 (doesn't seem to work in xfce 4.6): http://goodies.xfce.org/projects/panel- … ark-plugin + It has more features than I need. I just want to type a url and it opens in web browser rather than search.

why do you want this as a panel plugin?
why not just use something like zenity/dmenu to enter the url and launch uzbl.

It's just a different tool. If uzbl is meant to be flexible, why would you only encourage a few specific helper tools? dmenu looks out of place in an environment where everything, even the panel, is gtk. Both dmenu and zenity would require running a script prior to entering a URL. The advantage of having it in the panel is that it's always there; it doesn't go away.

Anyways, I would also say your best bet is the verve plugin.

Last edited by fflarex (2009-06-23 13:05:00)

Offline

#353 2009-06-23 13:42:42

slyson
Member
Registered: 2008-03-23
Posts: 24

Re: uzbl. A browser that adheres to the unix philosophy.

fflarex wrote:
slyson wrote:
fflarex wrote:

With the example quickmarks file above, you could type 'goa' to take you to the Arch home page in the current window, or 'gnu' to take you to uzbl's page in a new window, etc.

When I type 'go' or 'gn' it doesn't give me a chance to type the quickmark before it loads a blank url 'http:/' or opens a new window. I've made sure all my directories are set correctly, and that the quickmarks file is one per line. I can't even see what's wrong with the script - it looks like it should work.

Are there any conflicting shortcuts in your config? Any blank lines in your quickmarks file (there should be no blank lines or comments)? This actually happens to me every once in a while too, usually right after another instance of uzbl crashes. I can't really figure out why. If it is happening 100% of the time for you, though, I doubt it's caused by the same thing I'm having trouble with.

I think backspacing on the quickmarks file text to make sure there were no hidden new-line characters fixed my problem. Ty for the script anyway; it is better than scrolling through the bookmarks menu, and more tidy than keeping binds in the main config file.

Last edited by slyson (2009-06-23 13:59:52)

Offline

#354 2009-06-23 14:20:48

9mqksfhn
Member
Registered: 2009-06-17
Posts: 26

Re: uzbl. A browser that adheres to the unix philosophy.

Hi,

quigybo: You're right, it can be done with verve, I hadn't found that plugin before. But I think you are right that gmrun is probably better, because verve requires clicking in the box (no way to focus it using the keyboard), but I can't find any documentation on how to make the gmrun config file so it handles urls; can you help?

Dieter@be: Thanks, I didn't know about zenity. I've tried to write a script to work it:

a=$(zenity --entry); uzbl --uri=$a

It works but I can't work out how to remove the 'Cancel' and 'OK' buttons, and remove the text that says 'Enter new text', and also make it cancel if I close the window rather than opening uzbl with a blank url.

Also do you think it would be possible to make it so if I type 'g lemon' it searches on google for the word lemon and if I type 'w lemon' it search wikipedia and 'd lemon' for wiktionary etc.

Thanks.

Last edited by 9mqksfhn (2009-06-23 14:21:50)

Offline

#355 2009-06-23 15:05:03

9mqksfhn
Member
Registered: 2009-06-17
Posts: 26

Re: uzbl. A browser that adheres to the unix philosophy.

I found a bug; when I try to type in a form it writes it in the title bar of the window instead of in the form.

Offline

#356 2009-06-23 15:12:48

9mqksfhn
Member
Registered: 2009-06-17
Posts: 26

Re: uzbl. A browser that adheres to the unix philosophy.

Also git is a dependency but it's not listed on the AUR page.

Offline

#357 2009-06-23 15:16:18

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: uzbl. A browser that adheres to the unix philosophy.

9mqksfhn wrote:

Also git is a dependency but it's not listed on the AUR page.

It's not listed because it's not a full dependency. It is a makedep though, a dependency only to build the package -- look at the PKGBUILD.

Offline

#358 2009-06-23 15:31:43

Lachkater
Member
From: Germany
Registered: 2008-02-04
Posts: 40

Re: uzbl. A browser that adheres to the unix philosophy.

9mqksfhn wrote:

I found a bug; when I try to type in a form it writes it in the title bar of the window instead of in the form.

Press 'i' to go into insert mode and try again.

Offline

#359 2009-06-23 15:50:26

9mqksfhn
Member
Registered: 2009-06-17
Posts: 26

Re: uzbl. A browser that adheres to the unix philosophy.

Lachkater wrote:
9mqksfhn wrote:

I found a bug; when I try to type in a form it writes it in the title bar of the window instead of in the form.

Press 'i' to go into insert mode and try again.

When I press 'i' it just writes 'i' in the title bar of the window.

I tried setting the 'always_insert_mode' setting and that allows me to type in forms, but then when I use a modkey to type a keybinding it just types it in the title bar of the window.

Last edited by 9mqksfhn (2009-06-23 16:06:42)

Offline

#360 2009-06-23 16:10:56

9mqksfhn
Member
Registered: 2009-06-17
Posts: 26

Re: uzbl. A browser that adheres to the unix philosophy.

Does uzbl actually have a cache?

Offline

#361 2009-06-23 16:14:27

fflarex
Member
Registered: 2007-09-15
Posts: 466

Re: uzbl. A browser that adheres to the unix philosophy.

9mqksfhn wrote:

quigybo: You're right, it can be done with verve, I hadn't found that plugin before. But I think you are right that gmrun is probably better, because verve requires clicking in the box (no way to focus it using the keyboard)

You can bind verve-focus to a keybinding...

Offline

#362 2009-06-23 16:29:28

9mqksfhn
Member
Registered: 2009-06-17
Posts: 26

Re: uzbl. A browser that adheres to the unix philosophy.

fflarex wrote:
9mqksfhn wrote:

quigybo: You're right, it can be done with verve, I hadn't found that plugin before. But I think you are right that gmrun is probably better, because verve requires clicking in the box (no way to focus it using the keyboard)

You can bind verve-focus to a keybinding...

You're right - but how did you know?

Last edited by 9mqksfhn (2009-06-23 17:14:28)

Offline

#363 2009-06-23 17:04:09

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: uzbl. A browser that adheres to the unix philosophy.

9mqksfhn wrote:

You're right - but how did you know?

Well - vim has command-mode and insert-mode. So does uzbl.

Offline

#364 2009-06-23 17:13:40

9mqksfhn
Member
Registered: 2009-06-17
Posts: 26

Re: uzbl. A browser that adheres to the unix philosophy.

Runiq wrote:
9mqksfhn wrote:

You're right - but how did you know?

Well - vim has command-mode and insert-mode. So does uzbl.

I was replying to fflarex, when I press 'i' it still just writes 'i' in the title bar of the window.

Offline

#365 2009-06-23 17:30:39

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: uzbl. A browser that adheres to the unix philosophy.

9mqksfhn, it sounds to me as if your config is not being read [properly].  do you have a valid file at ~/.config/uzbl/config ? if so, does it get read by uzbl (you can verify this by running uzbl -v from a terminal and viewing the output). if so, do the keybindings regarding placement of the status bar and the insert mode key show in the -v output as being read / bound correctly?

Offline

#366 2009-06-23 17:40:59

9mqksfhn
Member
Registered: 2009-06-17
Posts: 26

Re: uzbl. A browser that adheres to the unix philosophy.

brisbin33 wrote:

9mqksfhn, it sounds to me as if your config is not being read [properly].  do you have a valid file at ~/.config/uzbl/config ? if so, does it get read by uzbl (you can verify this by running uzbl -v from a terminal and viewing the output). if so, do the keybindings regarding placement of the status bar and the insert mode key show in the -v output as being read / bound correctly?

Right after I installed it from the AUR the problem was already occuring.

I then copied the default configuration file to ~/.uzbl without making any changes and ran:

uzbl --config=/home/joe/.uzbl --uri=http://lemon.com/

, and the problem still occured.

I then made these changes to ~/.uzbl: set 'always_insert_mode' to 1 and 'set modkey' to Control_L .  I could now type in forms, but then when I used the modkey to type a keybinding it just typed it in the title bar of the window.

I can't run 'uzbl -v' because I just uninstalled it because it didn't work.

Last edited by 9mqksfhn (2009-06-23 17:43:25)

Offline

#367 2009-06-23 19:12:58

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: uzbl. A browser that adheres to the unix philosophy.

too bad you gave up, the following should've gotten you working fine:

# install uzbl, then...

cp -r /usr/share/uzbl/examples/config/uzbl ~/.config/
cp -r /usr/share/uzbl/examples/data/uzbl ~/.local/share/

would give you a valid file at ~/.config/uzbl/config which you can customize from there

Last edited by brisbin33 (2009-06-23 20:04:25)

Offline

#368 2009-06-23 20:35:09

9mqksfhn
Member
Registered: 2009-06-17
Posts: 26

Re: uzbl. A browser that adheres to the unix philosophy.

OK, I will try that.

But if it works, I still have one problem: I want to make it so if I type 'g lemon' it searches on google for the word lemon and if I type 'w lemon' it searches wikipedia and 'd lemon' for wiktionary etc. I'm trying to work out how I could do it using the xfce verve plugin. Do you think I could make scripts called 'g', 'w' and 'd' etc, and when they are called they open uzbl with the url and the the search query? For example: when I type 'g lemon' the scipt called g appends the word 'lemon' onto 'http://www.google.com/search?q=' to get 'http://www.google.com/search?q=lemon' and then opens uzbl with that url.

Last edited by 9mqksfhn (2009-06-23 20:58:10)

Offline

#369 2009-06-23 20:54:48

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: uzbl. A browser that adheres to the unix philosophy.

9mqksfhn wrote:

OK, I will try that.

But if it works, I still have one problem: I want to make it so if I type 'g lemon' it searches on google for the word lemon and if I type 'w lemon' it search wikipedia and 'd lemon' for wiktionary etc. I'm trying to work out how I could do it using the xfce verve plugin. Do you think I could make scripts called 'g', 'w' and 'd' etc, and when they are called they open uzbl with that url?

you should take a look at the sample config for ideas.  just like arch is a DIY distro, uzbl is a DIY browser.  best of luck.

for instance i have

bind    :wiki _   = uri http://wiki.archlinux.org/index.php/Special:Search?search=%s&go=Go
bind    :google _ = uri http://www.google.com/search?q=%s

to search our wiki and google respectively, you could also spawn scripts if that's easier.

Last edited by brisbin33 (2009-06-23 21:23:25)

Offline

#370 2009-06-23 20:59:18

9mqksfhn
Member
Registered: 2009-06-17
Posts: 26

Re: uzbl. A browser that adheres to the unix philosophy.

OK, but can you write the scripts for me please because I am too lazy.

Offline

#371 2009-06-23 21:03:42

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: uzbl. A browser that adheres to the unix philosophy.

9mqksfhn wrote:

OK, but can you write the scripts for me please because I am too lazy.

yeah, totally.  i'll get right on that.

Offline

#372 2009-06-23 21:05:30

9mqksfhn
Member
Registered: 2009-06-17
Posts: 26

Re: uzbl. A browser that adheres to the unix philosophy.

OK, thanks.

Offline

#373 2009-06-23 21:14:37

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: uzbl. A browser that adheres to the unix philosophy.

Brisbin33: Could you write some scripts for me, too? My computer isn't booting, and I'm having trouble.

Offline

#374 2009-06-23 21:27:50

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: uzbl. A browser that adheres to the unix philosophy.

SamC wrote:

Brisbin33: waaaa

too bad we're case sensitive here

$ Brisbin33
bash: Brisbin33: command not found.
$ brisbin33 --help
brisbin33: someone who is not writing scripts for lazy asses

big_smile

Last edited by brisbin33 (2009-06-23 21:30:27)

Offline

#375 2009-06-23 21:53:01

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: uzbl. A browser that adheres to the unix philosophy.

But you told that other guy ... !

</satire>

Offline

Board footer

Powered by FluxBB