You are not logged in.
Already tried. Don't work here.
That was a fail paste, there is the closing bracket missing.
Offline
I edit my previous post.
---
Edit:
referring to my previous post, I'd try with a Bash "if... else" conditional statement in the "spawnSync" function. Or not?
Escaping work.
"Else... if" in "spawnSync" don't.
Last edited by rix (2012-10-04 20:32:42)
Offline
I will not turn this thread into a javascript tutorial, you could parse stdout directly in javascript but if you want to do it in bash i would recommend to write a bash script and call that script with spawnSync, if you need some more hints, there is also an irc channel on freenode.
Offline
@ portix:
that wasn't my intention.
Thanks for your precious suggestions.
Offline
@ portix:
portix wrote:[...] I don't understand why you want this information in the statusbar of a webbrowser. [...]
Because I want a minimal system (also for the lack of memory).
For me, a minimal system also includes the idea of keeping it simple to configure and not patching up a program with hundreds of JS scripts just to show the time. That means a tmux statusbar is probably enough and when you've got another window open, just Ctrl+Tab¹ and you see today's date. Or you try tint2, a very good-looking and tiny panel. Integrates wonderfully with my tmux statusbar (and yes, it doubles some feature, but it saves me a lot of other trouble…)
Army: I tried bandcamp with cookies allowed for it… no avail. But as I said, this is probably just a codec/package issue then
edit:
¹ I meant Alt+Tab, sorry
Last edited by jakob (2012-10-04 22:24:05)
Offline
@ jakob:
you're quite right for me. "Quite" because in this case the patching wasn't so hard (thanks to portix) and everything here are working fine. And then it was just one Js for the entire status bar.
Also I don't get the "Ctrl+Tab" thing.
But we're already enough OT.
Thanks for your suggestions.
@ portix:
one Dwb related thing (not Js).
Is it possible some way to have a function that will make a search of the hilighted word in a search engine? In FireFox I used to select the word, right click for the menu, and do "Search with Google for [word]".
Thanks
Last edited by rix (2012-10-04 21:34:29)
Offline
If you select text you can press pP, that will search for the text with your default searchengine. Or you can after selecting text with the left mouse button keep the left mouse button pressed and press the right mouse button, that will also search with your default searchengine.
Control+Tab just switches between the current and the last focused tab.
Offline
Can someone verify/help with link following on 4fuckr.com (imageboard, sometimes NSFW)? Pressing 'f' and then XY just reloads the page. ';i' doesn't help either, since they're using some "funky" JS trying to hide stuff.
Other than that, I must say I'm pretty much impressed, tried it yesterday (coming from luakit) and pretty much everything works ootb - except for the tiling, which unfortunately has been removed(I'm sometimes forced to use a webchat, thus having a small window always visible would have been nice).
Offline
Check your widget packing too.
Ah, that did it. Changing from Twds to twds produces the desired behaviour. Tanks.
Offline
@ portix:
thank so much.
About <^Tab> I think jakob was referring to Tmux.
Offline
I have been getting lots of failed SSL handshakes on https websites. Any idea what is causing this?
Offline
About <^Tab> I think jakob was referring to Tmux.
I wasn't exactly referring to tmux rather to your wm that probably has alt+tab functionality, but I mistyped it. Corrected my post.
Offline
Disable ssl-strict...
Offline
Thanks.
Offline
[...]
Other than that, I must say I'm pretty much impressed, tried it yesterday (coming from luakit) and pretty much everything works ootb - except for the tiling, which unfortunately has been removed(I'm sometimes forced to use a webchat, thus having a small window always visible would have been nice).
There's still some left, though; use xv to toggle visibility of a tab... Other than that, then just use two instances...
Offline
@ portix:
is it possible text selecting through keyboard?
Thanks.
Offline
Offline
@ portix:
I've missed the option. Sorry.
Now I've found and enable it but I don't understand how does it work.
Offline
If you enable it you have a cursor on the web page, you can then navigate with cursor keys and mark text with shift. You don't have vi-like keybindings because it's a webkit builtin setting.
Offline
@ portix:
but I must do a click on the page first. Or am I wrong?
So it is click for start selecting text and Esc for start using vi-like keybindings again?
Last edited by rix (2012-10-05 20:37:32)
Offline
I don't know if anyone has reported this yet or not, but hint mode doesn't support voting on comments on Reddit. The arrows get hints, but typing the hints results in nothing happening.
Offline
@ portix:
but I must do a click on the page first. Or am I wrong?
So it is click for start selecting text and Esc for start using vi-like keybindings again?
I've also noticed that often Dwb crashes while browsing. If you need more infos (such is sure) let me know.
---
Edit:
this isn't directly inherent to the thread but I've noticed that the "X: maximum number clients reached" issue is still there. Even with Dwb and without Firefox.
Last edited by rix (2012-10-08 20:14:12)
Offline
I was currently editing my band's homepage via CMS, when dwb crashed. Tried it again, dwb crashed again. Then I started dwb from a terminal. Here's the interesting lines
STACK: [value] [anonymous] [[native code]]
Received SIGSEGV, trying to clean up.
Last 6 stack frames:
6: dwb() [0x40d050]
5: dwb() [0x41fb05]
4: /usr/lib/libc.so.6(+0x35020) [0x7f901044f020]
3: /usr/lib/libjavascriptcoregtk-1.0.so.0(_ZNK3JSC7JSValue3getEPNS_9ExecStateERKNS_10IdentifierERNS_12PropertySlotE+0x31) [0x7f9010c3ed41]
2: /usr/lib/libjavascriptcoregtk-1.0.so.0(cti_op_get_by_id+0x5f) [0x7f9010c6d7af]
1: [0x7f8fc4ba7148]
[1] 5501 segmentation fault (core dumped) dwb
Maybe this helps. In the last few days dwb seemed to crash more often. Might be because right now I'm searching on sites which are crap, but maybe it's caused by something else.
edit: What I forgot to say: I didn't test it with other webkit browsers, so it might be (and I suspect it is) a pure webkit problem.
Last edited by Army (2012-10-09 17:07:20)
Offline
That seems to be a bug in the script-code, to confirm this you could disable all scripts and see if it still crashes. A backtrace would also be helpful.
Offline
I suspected that this is the case here. But is a bug in a javascript code supposed to be able to crash a browser? I really don't know much about such stuff, but that doesn't look good to me!
Offline