You are not logged in.
I apologize if this has been asked before. I tried to search for the answer and couldn't find it.
My question is, is there be a way to bind keys to emacs-style editing commands, such as Ctl-a and Ctl-e for moving the cursor to the beginning and the end of a line, respectively, while in insert mode?
Jay
Offline
Hello
I have question is there's any way or option to change the default color of the bar?
Thanks for help
I apologize if this has been asked before. I tried to search for the answer and couldn't find it.
My question is, is there be a way to bind keys to emacs-style editing commands, such as Ctl-a and Ctl-e for moving the cursor to the beginning and the end of a line, respectively, while in insert mode?
Jay
What do you mean by moving cursor to beginning and of the just line of whole website?
Last edited by SpeedVin (2009-07-28 13:56:10)
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline
Hello
I have question is there's any way or option to change the default color of the bar?
Thanks for helpjt512 wrote:I apologize if this has been asked before. I tried to search for the answer and couldn't find it.
My question is, is there be a way to bind keys to emacs-style editing commands, such as Ctl-a and Ctl-e for moving the cursor to the beginning and the end of a line, respectively, while in insert mode?
Jay
What do you mean by moving cursor to beginning and of the just line of whole website?
I'm talking about binding keys to emacs-style text editing commands for editing text in text entry fields in webpages. I gave moving the cursor to the beginning or end of a line as two examples of many such possibilities.
Jay
Offline
Hello
I have question is there's any way or option to change the default color of the bar?
Yes! By changing the status_background variable in your uzbl config file like this:
set status_background = #440077
Offline
SpeedVin wrote:Hello
I have question is there's any way or option to change the default color of the bar?Yes! By changing the status_background variable in your uzbl config file like this:
set status_background = #440077
Ok now I see it thank you vey much for help
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline
Hello again do someone work with follow_Numbers.js script?
When I start it fl* i got error:
File 'home/user/.config/uzbl/scripts/follow_Numbers_Stringsi.js' not be read.
(uzbl:1666): GLib-CRITICAL **: g_strsplit: assertion `string != NULL' failed
(uzbl:1666): GLib-CRITICAL **: g_strjoinv: assertion `str_array != NULL' failed
Last edited by SpeedVin (2009-07-30 15:32:59)
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline
Hello again do someone work with follow_Numbers.js script?
When I start it fl* i got error:File 'home/user/.config/uzbl/scripts/follow_Numbers_Stringsi.js' not be read. (uzbl:1666): GLib-CRITICAL **: g_strsplit: assertion `string != NULL' failed (uzbl:1666): GLib-CRITICAL **: g_strjoinv: assertion `str_array != NULL' failed
Proof read your config file. You got one 'i' too many.
Offline
That's strange becouse I don't have too much i in my config (It's default from uzbl.org form experimental branch).
Here is my config:
1 # example uzbl config.
2 # all settings are optional. you can use uzbl without any config at all (but it won't do much)
3
4 # keyboard behavior in this sample config is sort of vimstyle
5 set download_handler = spawn $XDG_DATA_HOME/uzbl/scripts/download.sh
6 #set new_window = sh 'echo uri "$8" > $4' # open in same window
7 set new_window = sh 'uzbl -u $8' # equivalent to the default behaviour
8 set load_start_handler = set status_message = <span foreground="khaki">wait</span>
9 set load_commit_handler = set status_message = <span foreground="green">recv</span>
10 set load_finish_handler = set status_message = <span foreground="gold">done</span>
1 # example uzbl config.
1 # example uzbl config.
2 # all settings are optional. you can use uzbl without any config at all (but it won't do much)
3
4 # keyboard behavior in this sample config is sort of vimstyle
5 set download_handler = spawn $HOME/.config/uzbl/scripts/download.sh
6 #set new_window = sh 'echo uri "$8" > $4' # open in same window
7 set new_window = sh 'uzbl -u $8' # equivalent to the default behaviour
8 set load_start_handler = set status_message = <span foreground="khaki">wait</span>
9 set load_commit_handler = set status_message = <span foreground="green">recv</span>
10 set load_finish_handler = set status_message = <span foreground="gold">done</span>
11
12
13
14 # Behaviour and appearance
15 set show_status = 1
16 set status_background = #000000
17 set status_format = <span font_family="monospace"><span background="khaki" foreground="black">[\@[\@MODE]\@]</span> [<span weight="bold" foregrou nd="red">\@[\@keycmd]\@</span>] <span foreground="#606060"> \@[\@LOAD_PROGRESSBAR]\@ </span><span foreground="#99FF66">\@[\@uri]\@</span> <span foreg round="khaki">\@[\@NAME]\@</span> <span foreground="orange">\@status_message</span><span foreground="#606060"> \@[\@SELECTED_URI]\@</span></span>
18 set status_top = 0
19 set insert_indicator = I
20 set command_indicator = C
21 set useragent = Uzbl (Webkit @WEBKIT_MAJOR.@WEBKIT_MINOR.@WEBKIT_MICRO) (@(uname -s)@ @(uname -n)@ @(uname -r)@ @(uname -v)@ @(uname -m)@ [@ARC H_UZBL]) (Commit @COMMIT)
22
23 set fifo_dir = /tmp
24 set socket_dir = /tmp
25 set shell_cmd = sh -c
26
27 # Keyboard interface
28 set modkey = Mod1
29 # like this you can enter any command at runtime, interactively. prefixed by ':'
30 bind :_ = chain '%s'
31
32 bind j = scroll_vert 20
33 bind k = scroll_vert -20
34 bind h = scroll_horz -20
35 bind l = scroll_horz 20
36 bind << = scroll_begin
37 bind >> = scroll_end
38 bind b = back
39 bind m = forward
40 bind S = stop
41 bind r = reload
42 bind R = reload_ign_cache
43 bind + = zoom_in
44 bind - = zoom_out
45 bind T = toggle_zoom_type
46 bind 1 = sh "echo set zoom_level = 1.0 > $4"
47 bind 2 = sh "echo set zoom_level = 2.0 > $4"
48 bind t = toggle_status
49 bind /* = search %s
50 bind ?* = search_reverse %s
51 #jump to next
52 bind n = search
53 bind N = search_reverse
54 bind gh = uri http://www.uzbl.org
55 # shortcut to set the uri. TODO: i think we can abandon the uri command in favor of 'set uri = ..'
56 bind o _ = uri %s
57 # shortcut to set variables
58 bind s _ = set %s
59 bind \wiki _ = uri http://wiki.archlinux.org/index.php/Special:Search?search=%s&go=Go
60 bind gg _ = uri http://www.google.com/search?q=%s
61 bind i = toggle_insert_mode
62 # disable insert mode (1 to enable). note that Esc works to disable, regardless of this setting
63 bind I = toggle_insert_mode 0
64 # Enclose the executable in quotes if it has spaces. Any additional parameters you use will
65 # appear AFTER the default parameters
66 bind B = spawn $XDG_DATA_HOME/uzbl/scripts/insert_bookmark.sh
67 bind U = spawn $XDG_DATA_HOME/uzbl/scripts/load_url_from_history.sh
68 bind u = spawn $XDG_DATA_HOME/uzbl/scripts/load_url_from_bookmarks.sh
69 # with the sample yank script, you can yank one of the arguments into clipboard/selection
70 bind yurl = spawn $XDG_DATA_HOME/uzbl/scripts/yank.sh 6 primary
71 bind ytitle = spawn $XDG_DATA_HOME/uzbl/scripts/yank.sh 7 clipboard
72 # does the same as yurl but without needing a script
73 bind y2url = sh 'echo -n $6 | xclip'
74 # go the page from primary selection
75 bind p = sh 'echo "uri `xclip -selection primary -o`" > $4'
76 # go to the page in clipboard
77 bind P = sh 'echo "uri `xclip -selection clipboard -o`" > $4'
78 # start a new uzbl instance from the page in primary selection
79 bind 'p = sh 'exec uzbl --uri $(xclip -o)'
80 bind ZZ = exit
81 bind Xs = js alert("hi");
82 # example showing how to use sh
83 # it sends a command to the fifo, whose path is told via a positional param
84 # if fifo_dir is not set, it'll echo to a file named (null) somewhere >:) remember to delete it
85 # The body of the shell command should be one parameter, so if it has spaces like here,
86 # you must enclose it in quotes. Remember to escape (and double-escape) quotes and backslashes
87 # in the body. Any additional parameters you use will appear AFTER the default parameters (cfg file
88 # path, fifo & socket dirs, etc.)
89 bind XS = sh 'echo "js alert (\\"This is sent by the shell via a fifo\\")" > "$4"'
90
91 bind !dump = sh "echo dump_config > $4"
92 bind !reload = sh 'cat $1 > $4'
93
94 # this script allows you to configure (per domain) values to fill in form fields (eg login information) and to fill in these values automatically
95 bind za = spawn $XDG_DATA_HOME/uzbl/scripts/formfiller.sh
96 bind ze = spawn $XDG_DATA_HOME/uzbl/scripts/formfiller.sh edit
97 bind zn = spawn $XDG_DATA_HOME/uzbl/scripts/formfiller.sh new
98 bind zl = spawn $XDG_DATA_HOME/uzbl/scripts/formfiller.sh load
99
100 # other - more advanced - implementation using perl: (could not get this to run - Dieter )
101 bind LL = spawn $XDG_DATA_HOME/uzbl/scripts/formfiller.pl load
102 bind LN = spawn $XDG_DATA_HOME/uzbl/scripts/formfiller.pl new
103 bind LE = spawn $XDG_DATA_HOME/uzbl/scripts/formfiller.pl edit
104
105 # we ship some javascripts to do keyboard based link hinting/following. (webkit does not have C DOM bindings yet)
106 # this is similar to how it works in vimperator (and konqueror)
107 # TODO: did we resolve: "no click() event for hyperlinks so no referrer set" ?
108 #hit F to toggle the Hints (now in form of link numbering)
109 bind F = script $XDG_DATA_HOME/uzbl/scripts/hint.js
110 # the most stable version:
111 bind fl* = script $XDG_DATA_HOME/uzbl/scripts/follow_Numbers.js %s
112 # using strings, not polished yet:
113 bind fL* = script $XDG_DATA_HOME/uzbl/scripts/follow_Numbers_Strings.js %s
114
115
116 # "home" page if you will
117 set uri = uzbl.org
~
This numbers are from vim
Last edited by SpeedVin (2009-07-31 06:53:34)
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline
I have a very small patch to the uzbl master branch to make uzbl_tabbed.py work again. In the experimental branch it seems to have been majorly reworked, I didn't dig into that one. this patch just makes the python script for a tabbed uzbl work again.
at the moment it crashes because "self" is not defined or something like this.
diff --git a/examples/data/uzbl/scripts/uzbl_tabbed.py b/examples/data/uzbl/scripts/uzbl_tabbed.py
index bf5ee97..bb6311a 100755
--- a/examples/data/uzbl/scripts/uzbl_tabbed.py
+++ b/examples/data/uzbl/scripts/uzbl_tabbed.py
@@ -1064,7 +1064,7 @@ if __name__ == "__main__":
uzbl.new_tab(line, False)
if not len(urls):
- self.new_tab()
+ uzbl.new_tab()
else:
uzbl.new_tab()
Offline
I apologize if this has been asked before. I tried to search for the answer and couldn't find it.
My question is, is there be a way to bind keys to emacs-style editing commands, such as Ctl-a and Ctl-e for moving the cursor to the beginning and the end of a line, respectively, while in insert mode?
Jay
no(t yet)
< Daenyth> and he works prolifically
4 8 15 16 23 42
Offline
I get the impression that there's a plan for dealing with the cookie-handling performance problem, but I haven't seen any specifics on this plan. Got anything to share about it?
Offline
I get the impression that there's a plan for dealing with the cookie-handling performance problem, but I haven't seen any specifics on this plan. Got anything to share about it?
the code for the solution is already there (have a socket "daemon" script and communicate with it through socket). the code basically just needs to be finetuned and merged in
< Daenyth> and he works prolifically
4 8 15 16 23 42
Offline
I have a very small patch to the uzbl master branch to make uzbl_tabbed.py work again. In the experimental branch it seems to have been majorly reworked, I didn't dig into that one. this patch just makes the python script for a tabbed uzbl work again.
at the moment it crashes because "self" is not defined or something like this.diff --git a/examples/data/uzbl/scripts/uzbl_tabbed.py b/examples/data/uzbl/scripts/uzbl_tabbed.py index bf5ee97..bb6311a 100755 --- a/examples/data/uzbl/scripts/uzbl_tabbed.py +++ b/examples/data/uzbl/scripts/uzbl_tabbed.py @@ -1064,7 +1064,7 @@ if __name__ == "__main__": uzbl.new_tab(line, False) if not len(urls): - self.new_tab() + uzbl.new_tab() else: uzbl.new_tab()
This problem was identified weeks ago and since then uzbl_tabbed.py has gone under massive changes fixing a lot of those bugs and more.
Check out the wiki page for more information: http://www.uzbl.org/wiki/uzbl_tabbed or just wget the latest version:
wget http://github.com/mason-larobina/uzbl/raw/experimental/examples/data/uzbl/scripts/uzbl_tabbed.py
Offline
Hello
Today relase are fine but I have few issuse with it.
I have copied script's to $HOME/.local/share and I have no errors about script's but when I try fl or u nothing happen's no message/errors but F work's fine and I got message:
[object HTMLDivElement]
I use default config from /usr/share/uzbl I use experimental branch
Thank's for advice.
Ok problem solved I just copied new script's from /usr/share/uzbl and all are working fine
Thanks to all developer's of uzbl for such great browser!
Last edited by SpeedVin (2009-08-08 11:35:05)
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline
I get the impression that there's a plan for dealing with the cookie-handling performance problem, but I haven't seen any specifics on this plan. Got anything to share about it?
You can read about my lightning fast python cookie daemon here: http://www.uzbl.org/wiki/cookie_daemon.py (brand new wiki-page, expect to find some typos ).
Offline
ataraxia wrote:I get the impression that there's a plan for dealing with the cookie-handling performance problem, but I haven't seen any specifics on this plan. Got anything to share about it?
You can read about my lightning fast python cookie daemon here: http://www.uzbl.org/wiki/cookie_daemon.py (brand new wiki-page, expect to find some typos ).
if it's so good, why is it not in the mainline?
I released a new version today with the talk_to_socket functionality enabled, but no socket-based sample cooke handler yet..
< Daenyth> and he works prolifically
4 8 15 16 23 42
Offline
So far i really like the browser , it works fine with XMonad and tabbed layout. And does almost everything i want. So i didn't want to dig in the C, and started working on some scripts:
- Download manager - i created one that is based on dget.sh but uses the main bar and not the extra dzen2 bar. This works fine for one download but multiple downloads fill the bar. So i am looking for a nice solution :
- external bar/window ( wouldnt be usefull for tiling wm users
- seperate uzbl window with some html code
- just fill the main bar ( my monitor is 23" so i dont care )
But i am undecided what to choose / what is the best way to do it, if you have an opion or idea just mail/reply.
Next in line i made a session restore option that works with multiple uzbl windows open and just writes the url's in a txt file , and reads them if you start the script. AFter reading the README this script could get some adjustemts /modification.
And then i might want to work on the further implementation of the history.sh script. I was thinking of making a viewer in gtk/zenity/uzbl window or try to make the vimperator bar wich pops op if you hit tab after some keywords ( the last idea might be a bit too hard for me )
all my scripts are on github .
Offline
So far i really like the browser , it works fine with XMonad and tabbed layout. And does almost everything i want. So i didn't want to dig in the C, and started working on some scripts:
- Download manager - i created one that is based on dget.sh but uses the main bar and not the extra dzen2 bar. This works fine for one download but multiple downloads fill the bar. So i am looking for a nice solution :
- external bar/window ( wouldnt be usefull for tiling wm users
- seperate uzbl window with some html code
- just fill the main bar ( my monitor is 23" so i dont care )But i am undecided what to choose / what is the best way to do it, if you have an opion or idea just mail/reply.
Next in line i made a session restore option that works with multiple uzbl windows open and just writes the url's in a txt file , and reads them if you start the script. AFter reading the README this script could get some adjustemts /modification.
And then i might want to work on the further implementation of the history.sh script. I was thinking of making a viewer in gtk/zenity/uzbl window or try to make the vimperator bar wich pops op if you hit tab after some keywords ( the last idea might be a bit too hard for me )
all my scripts are on github .
Hello thanks for the script I try to use I but but I get following erors:
/home/user/.local/share/uzbl/scripts/dbar.sh: line 5: !DOCTYPE: No such file or directory
/home/user/.local/share/uzbl/scripts/dbar.sh: line 6: syntax error near unexpected token `newline'
/home/use/.local/share/uzbl/scripts/dbar.sh: line 6: ` "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
Thanks for advice
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline
Hello thanks for the script I try to use I but but I get following erors:
/home/user/.local/share/uzbl/scripts/dbar.sh: line 5: !DOCTYPE: No such file or directory /home/user/.local/share/uzbl/scripts/dbar.sh: line 6: syntax error near unexpected token `newline' /home/use/.local/share/uzbl/scripts/dbar.sh: line 6: ` "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
Thanks for advice
Did you specify the location where the files need to be downloaded ?
Offline
speedvin wrote:Hello thanks for the script I try to use I but but I get following erors:
/home/user/.local/share/uzbl/scripts/dbar.sh: line 5: !DOCTYPE: No such file or directory /home/user/.local/share/uzbl/scripts/dbar.sh: line 6: syntax error near unexpected token `newline' /home/use/.local/share/uzbl/scripts/dbar.sh: line 6: ` "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
Thanks for advice
Did you specify the location where the files need to be downloaded ?
I just see the downlaoded file (dbar.sh) but I was xml file from your github repo I use Download Linked File
Ok I have your script working I have to download something bigger becouse with Tarballs from AUR I don't see the progress bar but file are downloading
Last edited by SpeedVin (2009-08-10 09:00:33)
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline
Hmm I don't see the progress bar of dowload maybe I need some option in config in set status_format?
Shell Scripter | C/C++/Python/Java Coder | ZSH
Offline
hmm well it isn't really read yet, if you catch some bugs tell me
Offline
Hello guys,
I am discovering uzbl and it kicks ass! On my PC I use dark background almost everywhere (xterm, emacs, etc.) So at the moment the shiny white of the web pages is pain for the eye
Has anyone managed to force user stylesheet?
I set the option has mentionned in the README, and I use the css found in the example folder however that doesn't change anything.
Any tip welcome
For information:
Option in uzbl config file point to my css file
set stylesheet_uri = /home/strom/.uzbl/style.css
CSS
uzbl_highlight {
background-color: orange;
}
uzbl_h_first {
background-color: green;
}
uzbl_follow {
border-style: dotted;
border-width: thin;
}
#uzbl_hint > div {
display: inline;
border: 2px solid green;
background-color: blue;
color: red;
font-size: 9px;
font-weight: bold;
line-height: 9px;
margin: 0px;
padding: 0px;
position: absolute;
z-index: 1000;
-webkit-border-radius: 6px;
text-decoration: none;
-wekit-transform: scale(1) rotate(0deg) translate(-6px,-5px);
}
Offline
You might want to add !important before the semicolon for each instruction; that will make it override whatever is defined in a web page's CSS.
But yeah, I'm with you, I just need to find a decent global Zenburn CSS and I'm all set.
Offline
I have tried Uzbl a couple of times but it was still to "alpha" to use day-to-day for me. Until now, it works completely fine, cookies are handled nicely, I understand the config file ( ) and I use it now on a day to day basis.
And I made a script for it. It's amazing how easy it is to do. The thing I missed most from firefox were keywords. So that you only have to type arch to go to the arch forums. The -k switch in the add bookmark line from vimperator. You can find it here: http://www.uzbl.org/wiki/keyword-bookmarks
Offline