You are not logged in.

#801 2010-03-02 08:22:56

aeosynth
Member
From: California
Registered: 2010-02-06
Posts: 115
Website

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

http://www.uzbl.org/wiki/uzbl_tabbed#configuration

set_switch_to_new_tabs = 0

I'm still looking for a way to change my scroll rate. I imagine it would a gtkrc setting, but the gtk documentation page is down atm....

Also, why  isn't uzbl on http://trac.webkit.org/wiki/ApplicationsGtk ?

Offline

#802 2010-03-04 09:07:46

mason.larobina
Member
From: Australia
Registered: 2009-07-02
Posts: 200
Website

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

aeosynth wrote:

...I'm still looking for a way to change my scroll rate. I imagine it would a gtkrc setting, but the gtk documentation page is down atm....

# --- Page movement binds ---
set scroll_rate = 20
@cbind  j            = scroll vertical \@scroll_rate
@cbind  k            = scroll vertical -\@scroll_rate
@cbind  h            = scroll horizontal -\@scroll_rate
@cbind  l            = scroll horizontal \@scroll_rate

Offline

#803 2010-03-04 19:31:12

aeosynth
Member
From: California
Registered: 2010-02-06
Posts: 115
Website

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

@mason: thanks, but I meant mouse-wheel scroll rate.

I can't find anything relevant in GtkSettings, and GtkAdjustment's step_increment is "used when the mouse is clicked on the arrows at the top and bottom of the scrollbar", ie, not when I use the mouse wheel. The WebKitWebView settings documentation isn't really helpful....

Offline

#804 2010-03-05 21:55:52

TaylanUB
Member
Registered: 2009-09-16
Posts: 150

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

Some random funny stuff for you...

So lately i found out that when i give uzbl a URI to load, it interprets '@' characters, causing problems.

Real example:
Try to load the URI "http://www.mail-archive.com/ratpoison-devel@nongnu.org/" and it'll turn into ".../ratpoison-devel.org", unless you happen to have a variable named "nongnu" (And that'd be faulty as well, unless the variable happens to hold the value "@nongnu". tongue ).

This kept annoying me when i was copying URIs like that and loading them with a key bound to `sh 'echo "set uri = $(xclip -o)" > $4'`.

I decided i could add a short sed expression into that line, to replace all occurances of '@' with '\@' ... but then came the backslashing massacre.

After some faulty trials, then sitting and thinking, i realized how much of a mesh of backslashes would be needed to get them through several layers of being interpreted. (Multiple layers of uzbl, sed and bash.)

But i thought it'd be funny, and persisted, and finally came up with this working line of uzbl config code:

@cbind  p   = sh "echo set uri = $(xclip -o | sed '{s/\\\@/\\\\\\\\\\\\\\\\\\\@/}') > $4"

(No joke.)

I hope some of those backslashes don't get lost while this post is being interpreted! tongue

Oh and, the sane way to do this would probably be by spawning a script. Am i right?


``Common sense is nothing more than a deposit of prejudices laid down by the mind before you reach eighteen.''
~ Albert Einstein

Offline

#805 2010-03-13 06:50:01

gtklocker
Member
Registered: 2009-09-01
Posts: 462

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

Can I ask you where is the general uzbl config file?

Offline

#806 2010-03-13 07:13:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

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

gtklocker wrote:

Can I ask you where is the general uzbl config file?

less /usr/share/uzbl/docs/README

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#807 2010-03-13 08:33:34

mason.larobina
Member
From: Australia
Registered: 2009-07-02
Posts: 200
Website

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

TaylanUB wrote:

Some random funny stuff for you...

So lately i found out that when i give uzbl a URI to load, it interprets '@' characters, causing problems.

Real example:
Try to load the URI "http://www.mail-archive.com/ratpoison-devel@nongnu.org/" and it'll turn into ".../ratpoison-devel.org", unless you happen to have a variable named "nongnu" (And that'd be faulty as well, unless the variable happens to hold the value "@nongnu". tongue ).

This kept annoying me when i was copying URIs like that and loading them with a key bound to `sh 'echo "set uri = $(xclip -o)" > $4'`.

I decided i could add a short sed expression into that line, to replace all occurances of '@' with '\@' ... but then came the backslashing massacre.

After some faulty trials, then sitting and thinking, i realized how much of a mesh of backslashes would be needed to get them through several layers of being interpreted. (Multiple layers of uzbl, sed and bash.)

But i thought it'd be funny, and persisted, and finally came up with this working line of uzbl config code:

@cbind  p   = sh "echo set uri = $(xclip -o | sed '{s/\\\@/\\\\\\\\\\\\\\\\\\\@/}') > $4"

(No joke.)

I hope some of those backslashes don't get lost while this post is being interpreted! tongue

Oh and, the sane way to do this would probably be by spawning a script. Am i right?

I've tried to address this problem here:
http://github.com/Dieterbe/uzbl/commit/ … 838bbc211d

It may have potential downsides however as the URI is actually modified, everything I've thrown at it worked though.

Offline

#808 2010-03-13 08:35:44

mason.larobina
Member
From: Australia
Registered: 2009-07-02
Posts: 200
Website

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

jasonwryan wrote:
gtklocker wrote:

Can I ask you where is the general uzbl config file?

less /usr/share/uzbl/docs/README

When you start `uzbl-browser` for the first time the example config is automatically copied to `$XDG_CONFIG_HOME/uzbl/config` (Most likely `~/.config/uzbl/config`).

Offline

#809 2010-03-13 13:59:35

TaylanUB
Member
Registered: 2009-09-16
Posts: 150

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

mason.larobina wrote:

I've tried to address this problem here:
http://github.com/Dieterbe/uzbl/commit/ … 838bbc211d

It may have potential downsides however as the URI is actually modified, everything I've thrown at it worked though.

Oh... Percent encoding FTW i guess.

Thanks a lot for mentioning that.


``Common sense is nothing more than a deposit of prejudices laid down by the mind before you reach eighteen.''
~ Albert Einstein

Offline

#810 2010-03-15 11:46:55

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

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

that fix is now in the latest release btw


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

Offline

#811 2010-03-16 09:02:16

Isildur
Member
Registered: 2009-05-26
Posts: 100

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

Just found uzbl and I really like it. Cool browser which seems to able to replace FF.
However I find the whole documentation and the official wiki a little bit confusing for a beginner. Is there a good tutorial which teaches a beginner the basics?

Offline

#812 2010-03-16 20:50:25

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

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

This may have been in the news somewhere but I didn't see it recently so I apologize if it is. I'm having problems with the "dark_input.js" script. It put it in my config at @on_event LOAD_COMMIT spawn @scripts_dir/dark_input.js, but my textboxs are still dark grey with black text. Is there a solution for the dark input on dark backgrounds other than this, or will this script work but I'm doing it wrong? Thanks

Offline

#813 2010-03-16 22:17:31

mason.larobina
Member
From: Australia
Registered: 2009-07-02
Posts: 200
Website

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

milomouse wrote:

This may have been in the news somewhere but I didn't see it recently so I apologize if it is. I'm having problems with the "dark_input.js" script. It put it in my config at @on_event LOAD_COMMIT spawn @scripts_dir/dark_input.js, but my textboxs are still dark grey with black text. Is there a solution for the dark input on dark backgrounds other than this, or will this script work but I'm doing it wrong? Thanks

I think it's because you need to use the script command (not spawn) to run javascript.

Offline

#814 2010-03-17 09:29:58

Isildur
Member
Registered: 2009-05-26
Posts: 100

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

Does anyone use the whitelist feature of the cookiedaemon? It's apparently only a commandline option, but where is the daemon called? Any info on that would be helpful cause I want to control which site does what.

Offline

#815 2010-03-17 11:57:01

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

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

Ah, my mistake. I knew it would be something simple. smile Thanks

Offline

#816 2010-03-17 12:05:01

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

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

@Isildur: I changed it in the /usr/bin/uzbl-cookie-daemon: line 127: 'use_whitelist': False, (changed to True,). and there's a file called "cookie_whitelist" in your uzbl config folder, or you can change the name/location of the cookie_whitelist from your config. That works for me but I'm still figuring out a script to "ask" which cookies I want to use per site. It's trickier than it seems (for me, anyway).

Offline

#817 2010-03-17 13:45:15

Isildur
Member
Registered: 2009-05-26
Posts: 100

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

Thanks. Is there a way to transfer my FF whitelist to uzbl? Maybe an extension which exports it as textfile?

Offline

#818 2010-03-17 13:57:57

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

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

@Isildur: I don't know much about Firefox but I think it's in sqlite format if I'm not mistaken. I would think there'd be an "export cookies" or "export cookie whitelist" add-on somewhere that you could use real quick.

Offline

#819 2010-03-18 02:40:43

mason.larobina
Member
From: Australia
Registered: 2009-07-02
Posts: 200
Website

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

I've updated the keyword bookmarks script to work with the latest version of uzbl if anybody is interested.

http://www.uzbl.org/wiki/keyword-bookmarks

Offline

#820 2010-03-18 14:05:59

Zariel
Member
Registered: 2008-10-07
Posts: 446

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

I created a sort of awesome bar style menu, here are the scripts, http://github.com/Zariel/uzbl-scripts

Offline

#821 2010-03-18 14:32:16

Isildur
Member
Registered: 2009-05-26
Posts: 100

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

mason.larobina wrote:

I've updated the keyword bookmarks script to work with the latest version of uzbl if anybody is interested.

http://www.uzbl.org/wiki/keyword-bookmarks

Where is the diffrence to the normal bookmarks function? Haven't tried it just wondering, cause the normal version supports tags as well.


I'm currently working on a script to easy allow cookies for the current domain from uzbl and check the status of the current site. But somehow it apparently breaks with this script

 
# -*- coding: utf-8 -*-
import sys
import os

filename = os.path.expanduser("~/.config/uzbl/cookie_whitelist")

def main():
    url = sys.argv[6]
    fifo = sys.argv[4]
    f = open(fifo,"w")
    if search(url):
        s = "set cookie_color = #008B00" #cookies allowed -> green
    else:
        s = "set cookie_color = #CD2626" #cookies not allowed -> red
    f.write(s)
    f.close

def search(url):
    f = open(filename,"r")
    string = f.read()
    url_in_file = string.find(url) #TODO:regex to avoid finding it in substrings
    f.close()
    if url_in_file == -1:
        return False
    else:
        return True


if __name__ == "__main__":
        main()

uzbl freezes error after forced close

(uzbl-core:7784): GLib-CRITICAL **: g_io_channel_write_chars: assertion `(error == NULL) || (*error == NULL)' failed

** (uzbl-core:7784): WARNING **: Error sending event to socket: Broken pipe

Last edited by Isildur (2010-03-18 15:43:44)

Offline

#822 2010-03-18 17:29:48

TaylanUB
Member
Registered: 2009-09-16
Posts: 150

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

Anyone else here use vBulletin forums (and having issues)?
You might say vBulletin is proprietary bloatware and i might agree (although there's some functionality i'm missing, in minimal engines like FluxBB), but it's not me who decides.

First of all, the multi-quote buttons don't work. They get highlighted, but when i go to the posting page, none of the marked posts to quote appear. This is a great annoyance when i want to quote many posts at once.
(This is probably cookie related.)

When i post a quick reply, it takes me to the advanced reply page, telling me i need to wait 30 seconds between posts, although the post gets properly sent.

Clicking on the add reputation button takes me to a full new page with the agree/disagree and comment stuff, instead of displaying the in-page floating popup thingy.

When clicking on the edit button for a post, the post doesn't turn into a textarea and such (without changing the page), but i can click on the edit button once more to go to the full editing page.

In the user control panel, there's a reputation table. This table can be 'collapsed' (minimized) by clicking a button. Normally this gets saved as a cookie and the table remains so until i manually maximize it, but Uzbl doesn't seem to save that cookie.


I don't care much about any but the first one i mentioned, and don't know where exactly the fault is, but i don't have any of these issues with Chromium (which uses WebKit, dunno how 'pure').


``Common sense is nothing more than a deposit of prejudices laid down by the mind before you reach eighteen.''
~ Albert Einstein

Offline

#823 2010-03-19 02:29:09

mason.larobina
Member
From: Australia
Registered: 2009-07-02
Posts: 200
Website

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

Isildur wrote:
mason.larobina wrote:

I've updated the keyword bookmarks script to work with the latest version of uzbl if anybody is interested.

http://www.uzbl.org/wiki/keyword-bookmarks

Where is the diffrence to the normal bookmarks function? Haven't tried it just wondering, cause the normal version supports tags as well.

Yeah if you use the open command it (1) assumes its a uri if it contains a '.' then navigates to it or (2) searches the keyword bookmarks file for a match and if all else fails (3) searches for the string on google. And adding bookmarks is easy.

So its handy.

Isildur wrote:

I'm currently working on a script to easy allow cookies for the current domain from uzbl and check the status of the current site. But somehow it apparently breaks with this script

 
# -*- coding: utf-8 -*-
import sys
import os

filename = os.path.expanduser("~/.config/uzbl/cookie_whitelist")

def main():
    url = sys.argv[6]
    fifo = sys.argv[4]
    f = open(fifo,"w")
    if search(url):
        s = "set cookie_color = #008B00" #cookies allowed -> green
    else:
        s = "set cookie_color = #CD2626" #cookies not allowed -> red
    f.write(s)
    f.close

def search(url):
    f = open(filename,"r")
    string = f.read()
    url_in_file = string.find(url) #TODO:regex to avoid finding it in substrings
    f.close()
    if url_in_file == -1:
        return False
    else:
        return True


if __name__ == "__main__":
        main()

uzbl freezes error after forced close

(uzbl-core:7784): GLib-CRITICAL **: g_io_channel_write_chars: assertion `(error == NULL) || (*error == NULL)' failed

** (uzbl-core:7784): WARNING **: Error sending event to socket: Broken pipe

You are missing the newline character at the end of that set command.

Offline

#824 2010-03-19 08:30:56

Isildur
Member
Registered: 2009-05-26
Posts: 100

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

Thank you! That was the damn mistake I looked for.

The script is now working. Actually I wrote 2 scripts. One adds the current domain to the cookie_whitelist and the other one checks whether it is already in the whitelist and provides you with a little "status button" at the bottom.
If anybody is interested I could upload the scripts, just dunno where.

Offline

#825 2010-03-19 12:27:48

aeosynth
Member
From: California
Registered: 2010-02-06
Posts: 115
Website

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

There's a bug with the default config, line 167:

@ebind  <Home>       = event SET_CURSOR_POS

should be

@ebind  <Home>       = event SET_CURSOR_POS 0

0 or 1 both work.

Last edited by aeosynth (2010-03-19 12:28:44)

Offline

Board footer

Powered by FluxBB