You are not logged in.
Thanks for answer and explanations. It's complete my understanding.
I have already prerequisites to launch the script: userscripts and greasemonkey directory.
I'll try to force all 'video' tags in all page to stop preloading so here the script:
var videos = document.getElementsByTagName("video");
for (var i=videos.length-1; i>=0; --i) {
videos[i].preload = "none";
}
The test's working well:
http://www.w3.org/2010/05/video/mediaevents.html
I can switch 'auto' 'none' as will.
But sadly it doesn't stop webkit to download video in cache to save bandwith.
Maybe someone have a solution.
Offline
Sorry for the dumb question, but how do I change dwb icon? I tried to change the .png in pixmaps and the icon in the .desktop file, but it had no effect.
Offline
The window icon is compiled into dwb, it cannot be changed without recompiling. If you want to change it you have to replace src/icon.xpm.
Offline
Hey, not sure if this was asked before but is there a scroll_right / scroll_left 100% or 100 or something like that? Kind of like scroll_top or scroll_bottom does for vertical scrolling? I tried scroll_right VALUE but it still just scrolls over by the predetermined factor in dwb, I guess.
Offline
No, there isn't such a shortcut. I'm not sure if i'll create one, however till i have decided you can use a simple script for it:
//!javascript
bind("^", function() {
var adjustment = tabs.current.scrolledWindow.hadjustment;
adjustment.value = adjustment.lower;
});
bind("$", function() {
var adjustment = tabs.current.scrolledWindow.hadjustment;
adjustment.value = adjustment.upper - adjustment.pageSize;
});
Last edited by portix (2014-02-23 23:47:08)
Offline
@portix: That works just how I need it to. No need to build in dwb if you don't want since userscripts like this can enable such behavior; I'm just no good with javascript! Thanks for the quick & helpful reply, as always.
Offline
I noticed a minor esthetic (autistic?) "issue". The bottom bar changes height temporarily when the loading/progress bar pops up.
It doesn't happen with all fonts; Terminus 12px and Fira Mono 9 don't have the issue, Tamzen and Tamsyn do (to give a few examples).
Offline
Any idea how I can set dwb for use with a Retina MacBook pro?
EDIT: Solved. Set default zoom to 2.00, full-content-zoom( otherwise images will still be small and text huge) and the font for ui to monospace 16 or something like that.
Last edited by regulament (2014-03-02 09:37:14)
Offline
Offline
I'm using dwb-git, happens in dwb-gtk3-git as well for me.
Last edited by moist (2014-03-02 14:29:14)
Offline
Dwb fails to go into insert mode automatically after pages (google.com for example) load. This used to work correctly...has this feature been removed?
Offline
Do you have javascript enabled for google.com?
Offline
I noticed a minor esthetic (autistic?) "issue". The bottom bar changes height temporarily when the loading/progress bar pops up.
It doesn't happen with all fonts; Terminus 12px and Fira Mono 9 don't have the issue, Tamzen and Tamsyn do (to give a few examples).
Same here (gtk3-git). But only if i change the default gtk-theme (Raleigh).
And some other minor thing i've noticed: with hidden statusbar "max-visible-completions" is ignored for the bookmark-menu.
Last edited by tonk (2014-03-03 09:08:34)
Offline
I removed webkit's default auth-dialog in git, dwb now prompts for the username and password without using a dialog.
Miraculously after updating to webkitgtk2 2.2.5-2 I now have both - the default auth-dialog and the dwb prompt which pretty much prevents me from entering my router-configuration. It only works if I ignore the default auth-dialog and use the dwb prompt (which I prefer anyway). Took me a while to figure that out. Is there a way to deactivate the auth-dialog again? I'm using dwb-git 2014.03.03.g62da639-1 .
Last edited by Mr_Kartoffelsalat (2014-03-04 10:03:40)
Offline
After removing "-Werror" from Makefile, dwb is successfully built on FreeBSD 9.1.
dwb $ gmake PREFIX=~/dwb install GTK=3
$~/dwb/bin/dwb -V
This is : dwb-git
Version : commit 2014-03-15 c51aa9c
Built : Mar 17 2014 14:07:20
Copyright : (C) 2010-2014 Stefan Bolte
License : GNU General Public License, version 3 or later
GTK+ : 3.8.8
WebKitGTK+ : 1.8.3
LibSoup : <2.42
cairo : 1.10.2
With ~/.config/dwb/settings setup correctly, dwb works now!
BTW, Are there any difference between `dwb` and `dwb --fifo` ?
Last edited by sw2wolf (2014-03-17 09:30:25)
e^(π⋅i) + 1 = 0
Offline
snip
Please use code tags when posting any code snippets or terminal output. Thank you!
All the best,
-HG
Offline
Offline
@sw2wolf: Do you use glibc or a different libc?
By removing -Werror from Makefiles, dwb builds successful now!
e^(π⋅i) + 1 = 0
Offline
portix wrote:@sw2wolf: Do you use glibc or a different libc?
By removing -Werror from Makefiles, dwb builds successful now!
That doesn't fix the problem, it just sweeps it under the rug.
Fear me! I have root! Sometimes...
Offline
Indeed, it would be nice if you could provide some more information. Are you using some *BSD? If so this is not the right place to ask but you can always ask on the irc channel on freenode.
Offline
portix wrote:I removed webkit's default auth-dialog in git, dwb now prompts for the username and password without using a dialog.
Miraculously after updating to webkitgtk2 2.2.5-2 I now have both - the default auth-dialog and the dwb prompt which pretty much prevents me from entering my router-configuration. It only works if I ignore the default auth-dialog and use the dwb prompt (which I prefer anyway). Took me a while to figure that out. Is there a way to deactivate the auth-dialog again? I'm using dwb-git 2014.03.03.g62da639-1 .
This is a bug that's showing up in midori, uzbl and luakit as well. There's been a bug report filed, but it's looking like the fix might end up being "port your application to the webkit2 API".
Offline
I'm having some stability problems with DWB lately, it's crashing randomly. It's rare but still annoying when it happens.
Is running it from a terminal and observing the output the best way to find the source of the problems?
There are two types of people in this world - those who can count to 10 by using their fingers, and those who can count to 1023.
Offline
Are you using dwb-git or dwb from the repos? I introduced several bugs the last days in dwb-git which caused dwb to crash because i merged a branch a bit too early but they all should be fixed now. To find the source you could create a backtrace and create a ticket on the bugtracker. There is a script in the repo that builds dwb with debugging symbols and runs it in gdb. You'll find the source here.
Offline
Hello Portix and friends. Trying to get a decent mouse wheel scroll rate. Unfortunately mouse wheel up/down registers "scroll_{up,down}". scroll{up,down} seems to scroll by 2 lines. Is there a way to change this value to something else like 4 or 5? Or change mouse wheel up/down to register "scroll_halfpage_{up,down}"?
Normally I navigate with scroll_halfpage_{up,down} but that is binded to D and U and so when I am relaxing in my chair, I like to hold the mouse and just scroll with one hand and read.
I tried to use the help you gave on page 72 but here is what I came up with (but doesn't work):
Signal.connect("scroll", function(w, e) {
if (e.direction == "up") {
execute("scroll_halfpage_up");
}
else if (e.direction == "down")
{
execute("scroll_halfpage_down");
}
});
Offline
You can override the default scrolling behaviour in the script:
//!javascript
Signal.connect("scroll", function(w, e) {
var adj = w.scrolledWindow.vadjustment;
if (e.direction == "up") {
adj.value = Math.max(adj.lower, adj.value - 0.5 * adj.pageSize);
return true;
}
else if (e.direction == "down") {
adj.value = Math.min(adj.upper-adj.pageSize, adj.value + 0.5 * adj.pageSize);
return true;
}
});
That script will cause the mouse to scroll a half page down/up. You can change the scrollstep by changing adj.value - 0.5 * adj.pageSize/adj.value + 0.5 * adj.pageSize to your liking.
Offline