SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2014-06-27 19:37:28

drp6
#! Member
Registered: 2013-06-30
Posts: 52

The dwb browser thread

I wanted to start a thread for everyone that's using the dwb browser so we could share and discuss this browser (I don't think we have one already).

I'm just getting started with it and still trying to get familiar with the keyboard interface. If you're not familiar, dwb a fast, lightweight, minimalist webkit-based browser that's pretty good and has great potential.

dwb is in the wheezy and testing repos:

dwb:
  Installed: 20120628hg-1
  Candidate: 20120628hg-1
  Version table:
     20140415hg-1 0
        300 http://ftp.debian.org/debian/ testing/main amd64 Packages
 *** 20120628hg-1 0
        500 http://http.debian.net/debian/ wheezy/main amd64 Packages
        100 /var/lib/dpkg/status

Manuals, Guides, Discussions:

dwb homepage: portix.bitbucket.org/dwb/

dwb manual: portix.bitbucket.org/dwb/resources/manpage.html

dwb ArchWiki: wiki.archlinux.org/index.php/DWB

dwb Arch discussion topic: bbs.archlinux.org/viewtopic.php?id=95589&p=1

Last edited by drp6 (2014-06-29 17:14:07)

Offline

Help fund CrunchBang, donate to the project!

#2 2014-06-28 20:57:29

drp6
#! Member
Registered: 2013-06-30
Posts: 52

Re: The dwb browser thread

Search Engine tip:

Load a search engine in a browser, once there type gs, this will highlight the main search box on the search engine page and the prompt will look like this:

Keyword:

This is where you can enter a shortcut for the search engine. So something like 'duck' for DuckDuckGo or 'goo' for Google. dwb will then save that keyword so the next time you want to open a new tab (shifti + O) you will be able to use that keyword in front of your search terms so dwb will use that specific search engine to perform the search for the terms you entered.

The search engine at the top of the list in dwb will be the default, so if you type in a search term without a keyword in front of it - dwb will just perform the search with the default search engine.

Uses default search engine:

tabopen: dwb hacks

Using the 'goo' keybinding for Google. This will display the Google search results for 'geany config'

tabopen: goo geany config

Bookmarks Tip:

There is no way to import bookmarks, but simply open the /.config/dwb/default folder and find the bookmarks text file. Open with a text editor and you can copy paste bookmarks (including the 'http://') into this from an existing html export of your [insert favorite browser] bookmarks.

Adblock Tip:

Create a file in a text editor and save it as 'adblock' (with no extension) inside the /.config/dwb/default folder. Insert in this text file any url's you want to block.

Back in dwb type:

Ss

This opens your dwb settings, scroll down to where the bold heading 'Plugin & Scripts' is found and then check the box to enable adblocker. The next setting is 'adblocker-filterlist' in this text field type in the path to the file you created ( /home/username/.config/dwb/default/adblock). Now you are all set with adblock.

Last edited by drp6 (2014-06-29 14:44:34)

Offline

#3 2014-06-29 16:40:04

drp6
#! Member
Registered: 2013-06-30
Posts: 52

Re: The dwb browser thread

Where is dwbem which is referenced in the manuals on adding extensions at the CLI?

dwbem is not included in wheezy. I did find a reference to a bug in the extension manager to where it was left out of repos for now, but had been resolved and was available in the latest version again.

Last edited by drp6 (2014-06-29 17:14:56)

Offline

#4 2014-06-29 17:10:27

drp6
#! Member
Registered: 2013-06-30
Posts: 52

Re: The dwb browser thread

Install the latest version of dwb using git.

First, get git

$ sudo apt-get install git

Then run this command:

git clone https://portix@bitbucket.org/portix/dwb.git

This will create a folder under /home/username/dwb with the latest build from git of dwb. To install you will need to compile from the source.

switch to the new /home/username/dwb directory and then:

~/dwb$ make install

****
More to come on the install/setup...as I've run into an install bug

config.mk:82: *** Cannot find libsoup-2.4.  Stop.

Which I thought was resolved: bitbucket.org/portix/dwb/issue/376/dwb-cannot-compiled-with-libsoup-2420 but doesn't appear to be. I created a new issue (#450) in bitbucket.
****

To update dwb git version (from within the ~/dwb directory that git created when you did the clone earlier):

~/dwb$ git pull

This will either output:

Already up-to-date.

or will show several lines where it pulls in new files.

To check which version (or commit) you have installed with what is in the dwb repository (bitbucket.org/portix/dwb) in the terminal enter:

~/dwb$ git rev-parse --short HEAD

This will output the latest commit SHA-1 hash that is installed on your PC, for example this is the output from my rev-parse command:

7712b6d

You can then go to the commit page of dwb in bitbucket to check this hash against the list to see if you have the most recent commit. In this example (at the time of posting), the installed commit matches the newest commit in bitbucket '7712b6d'

Last edited by drp6 (2014-07-01 01:11:03)

Offline

#5 2014-07-19 01:40:16

Menschenkind
#! CrunchBanger
Registered: 2011-08-20
Posts: 203

Re: The dwb browser thread

This thread is hardly more than half a month old, so I thought I might as well keep it fresh, since I've been playing with uzbl and dwb today. While uzbl's default keybinds were somewhat less of a challange, it was just a bit too minimal. dwb at least features a cookie whitelist and adblock pretty much out of the box, and the readily served list of settings is sheer endless and endlessly helpful, where uzbl only provides a config and expects you to go from there. It blends well into dwm, too.

I'd just like to drop the default keys completely. Though when editing the "keys"-file while dwb is closed and starting + quitting dwb afterwards, the default keybinds are appended (rewritten) to the "keys"-file. Any ideas how to suppress this behaviour? No program-breaking conflicts thus far, but I really do get irritated with default quickmarks and bookmarks plus my own settings.

Also, I'm used to chromium's keybinds and since I'm using a notebook, my third most important combination is "Alt + left arrow" for returning to the previous page. For future reference, dwb is capable of that, too,  with these binds:

history_back=Mod1 @Left@
history_forward=Mod1 @Right@

All those difficult key-combinations always held me back, but everything is oh so easy to change. Instead of learning new binds, I'm just using those I'm used to, and the client itself now uses the same colours as my dwm setup, while providing a tab and a status bar which are as lean and small as dmw's. After all, I'm quite pleased with my experience so far. dwb is extremely fast and seems just as solid.

Offline

#6 2014-07-19 18:08:01

drp6
#! Member
Registered: 2013-06-30
Posts: 52

Re: The dwb browser thread

I'm not aware of a way to delete all key bindings and then start from scratch. I have just typed in

Sk

in dwb command line to open up the keys list and then edit whichever ones I wanted to change such as closing a window - I switched this from 'd' to '~' so I didn't close a window everytime I typed a 'd'.

Offline

#7 2014-07-19 18:52:30

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: The dwb browser thread

I used dwb for a while & liked it very much, but there were a few problems for me...
What happens in your system if you open https://projects.archlinux.org/svntogit … ckages/0ad & click on the selection box at the top right? ("packages/0AD")
In my system, the CPU spiked & froze up for a second then displayed a mis-aligned list... hmm
I've switched back to Firefox now 'cos my neckbeards grown longer & I need noscripts tongue

Offline

#8 2014-07-19 20:08:40

Menschenkind
#! CrunchBanger
Registered: 2011-08-20
Posts: 203

Re: The dwb browser thread

Head_on_a_Stick wrote:

What happens in your system if you open https://projects.archlinux.org/svntogit … ckages/0ad & click on the selection box at the top right? ("packages/0AD")

CPU usage spikes to 45%, the list takes a few seconds to load, but seems fine otherwise. I've noticed a similar behaviour when typing inside dwb. While writing a longer text post, each keystroke spiked the CPU usage a little, up to an dditional 10% (overall, not per letter) depending on the site. This is only noticable what so ever because the overall usage on the system is extremely low and almost static. I didn't like it either anyway.

Head_on_a_Stick wrote:

I've switched back to Firefox now 'cos my neckbeards grown longer & I need noscripts tongue

For me, it's whatever the browser leaves on the system. I don't want cookies to be stored longer than absolutely neccessary for example, so anything but a few persistent ones are deleted after each session (refusing third-party cookies upfront). dwb seems fine with most of my concerns, as far as I could tell. Though it doesn't change much: I never really feel like I'm in charge when it comes to browsing traces and whatever enters or leaves my system through that huge flood gate called INtarwebZ (tm).

Edit: some werds.

Edit, the day after:

drp6 wrote:

I'm not aware of a way to delete all key bindings and then start from scratch. I have just typed in

Sk

in dwb command line to open up the keys list and then edit whichever ones I wanted to change such as closing a window - I switched this from 'd' to '~' so I didn't close a window everytime I typed a 'd'.

This helped a lot, thanks. It's a very, very dirty workaround, but I've changed any keybind I won't use to "nothing". The very most of them are now bound to "nothing", actually.

Last edited by Menschenkind (2014-07-20 19:18:12)

Offline

#9 2014-07-29 15:23:53

dxm
Member
Registered: 2014-05-07
Posts: 11

Re: The dwb browser thread

I've been using dwb as my main browser at work for about three weeks ago now and I'm enjoying it (especially since most of my time at work is spent in vim, so dwb feels like less of a mental shift). I sitll have a page of key bindings pinned up behind my desk but looking at them now, most of them are already muscle memory. I don't know if I have any great tips... one useful thing is that you might want to change the cookies-store-policy settings from `session` to `persistant` to save logging in to every website every time you launch your browser again.

Offline

#10 2014-07-30 08:01:35

dxm
Member
Registered: 2014-05-07
Posts: 11

Re: The dwb browser thread

Ok, since posting yesterday I have made the most useful discovery for ages.

;e basically enables hints for editable fields... it has made my life so much easier; clicking editable fields was basically the only reason I had to reach for the mouse in dwb. It's still not perfect on some sites, but it works really well most of the time. And I think if there's just one visible input field it automatically selects it.

Offline

#11 2014-08-29 17:27:16

josephg
#! CrunchBanger
From: Surrey
Registered: 2011-10-24
Posts: 165
Website

Re: The dwb browser thread

xxxterm - even lighter than dwb


leaner code is cleaner code is more efficient code

Offline

#12 2014-08-29 18:47:43

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: The dwb browser thread

josephg wrote:

xxxterm - even lighter than dwb

Looks interesting but it won't build for me, looks like an error in the script code rather than dependency issues (I have webkit, etc)...

../xxxterm.c: In function ‘connect_socket_from_uri’:
../xxxterm.c:1516:19: error: storage size of ‘hints’ isn’t known
  struct addrinfo  hints, *res = NULL, *ai;
                   ^
../xxxterm.c:1539:23: error: invalid application of ‘sizeof’ to incomplete type ‘struct addrinfo’
  bzero(&hints, sizeof(struct addrinfo));
                       ^
../xxxterm.c:1540:19: error: ‘AI_CANONNAME’ undeclared (first use in this function)
  hints.ai_flags = AI_CANONNAME;
                   ^
../xxxterm.c:1540:19: note: each undeclared identifier is reported only once for each function it appears in
../xxxterm.c:1544:2: warning: implicit declaration of function ‘getaddrinfo’ [-Wimplicit-function-declaration]
  if ((error = getaddrinfo(su->host, port, &hints, &res))) {
  ^
../xxxterm.c:1546:7: warning: implicit declaration of function ‘gai_strerror’ [-Wimplicit-function-declaration]
       gai_strerror(errno));
       ^
../xxxterm.c:1546:7: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
../xxxterm.c:1546:7: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
../xxxterm.c:1550:28: error: dereferencing pointer to incomplete type
  for (ai = res; ai; ai = ai->ai_next) {
                            ^
../xxxterm.c:1556:9: error: dereferencing pointer to incomplete type
   if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
         ^
../xxxterm.c:1556:37: error: dereferencing pointer to incomplete type
   if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6)
                                     ^
../xxxterm.c:1558:16: error: dereferencing pointer to incomplete type
   s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
                ^
../xxxterm.c:1558:31: error: dereferencing pointer to incomplete type
   s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
                               ^
../xxxterm.c:1558:48: error: dereferencing pointer to incomplete type
   s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
                                                ^
../xxxterm.c:1564:20: error: dereferencing pointer to incomplete type
   if (connect(s, ai->ai_addr, ai->ai_addrlen) == 0)
                    ^
../xxxterm.c:1564:33: error: dereferencing pointer to incomplete type
   if (connect(s, ai->ai_addr, ai->ai_addrlen) == 0)
                                 ^
../xxxterm.c:1581:3: warning: implicit declaration of function ‘freeaddrinfo’ [-Wimplicit-function-declaration]
   freeaddrinfo(res);
   ^
../xxxterm.c:1517:29: warning: variable ‘error’ set but not used [-Wunused-but-set-variable]
  int   rv = -1, s = -1, on, error;
                             ^
../xxxterm.c:1516:19: warning: unused variable ‘hints’ [-Wunused-variable]
  struct addrinfo  hints, *res = NULL, *ai;
                   ^
../xxxterm.c: In function ‘show_ca_status’:
../xxxterm.c:3564:2: warning: ‘g_thread_create’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:100): Use 'g_thread_new' instead [-Wdeprecated-declarations]
  t->thread = g_thread_create((GThreadFunc)color_address_bar, t, TRUE, NULL);
  ^
../xxxterm.c: In function ‘mtx_lock’:
../xxxterm.c:7623:2: warning: ‘g_static_rec_mutex_lock’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:175): Use 'g_rec_mutex_lock' instead [-Wdeprecated-declarations]
  g_static_rec_mutex_lock(&my_gdk_mtx);
  ^
../xxxterm.c:7626:3: warning: ‘g_static_rec_mutex_lock’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:175): Use 'g_rec_mutex_lock' instead [-Wdeprecated-declarations]
   g_static_rec_mutex_lock(&my_gdk_mtx);
   ^
../xxxterm.c:7631:4: warning: ‘g_static_rec_mutex_unlock’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:181): Use 'g_rec_mutex_unlock' instead [-Wdeprecated-declarations]
    g_static_rec_mutex_unlock(&my_gdk_mtx);
    ^
../xxxterm.c: In function ‘mtx_unlock’:
../xxxterm.c:7655:3: warning: ‘g_static_rec_mutex_unlock_full’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:188) [-Wdeprecated-declarations]
   g_static_rec_mutex_unlock_full(&my_gdk_mtx);
   ^
../xxxterm.c:7658:2: warning: ‘g_static_rec_mutex_unlock’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:181): Use 'g_rec_mutex_unlock' instead [-Wdeprecated-declarations]
  g_static_rec_mutex_unlock(&my_gdk_mtx);
  ^
../xxxterm.c: In function ‘main’:
../xxxterm.c:7706:2: warning: ‘g_thread_init’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:261) [-Wdeprecated-declarations]
  g_thread_init(NULL);
  ^
../xxxterm.c:8084:2: warning: ‘g_static_rec_mutex_unlock_full’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:188) [-Wdeprecated-declarations]
  g_static_rec_mutex_unlock_full(&my_gdk_mtx); /* just in case */
  ^
Makefile:37: recipe for target '../xxxterm.o' failed
make: *** [../xxxterm.o] Error 1
make  4.80s user 0.56s system 89% cpu 5.979 total

sad

Last edited by Head_on_a_Stick (2014-08-29 18:48:58)

Offline

#13 2014-08-29 19:07:01

josephg
#! CrunchBanger
From: Surrey
Registered: 2011-10-24
Posts: 165
Website

Re: The dwb browser thread

xxxterm is in all the debian repos

# apt-get install xxxterm

i still use stable, and works fine for me.

Last edited by josephg (2014-08-29 19:11:52)


leaner code is cleaner code is more efficient code

Offline

#14 2014-08-29 19:10:22

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: The dwb browser thread

^ D'oh!
Arch doesn't have it...
I'll have to look at that later.

Offline

#15 2014-08-29 19:17:08

josephg
#! CrunchBanger
From: Surrey
Registered: 2011-10-24
Posts: 165
Website

Re: The dwb browser thread

it used to be? i don't use arch now.. can't quite keep up wink


leaner code is cleaner code is more efficient code

Offline

#16 2014-08-29 19:40:25

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: The dwb browser thread

2010? Might as well be the Jurassic Period as far as Arch is concerned... smile
I've got a Debian Sid box, I'll look at it on that.

Offline

#17 2014-08-30 05:13:31

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: The dwb browser thread

Re. xxxterm, I just installed it; first-run page advises that future releases are Xombrero.  Perhaps that's the name it goes by on Arch now?

Offline

#18 2014-08-30 12:11:52

Head_on_a_Stick
CatMod
From: A world of pure imagination
Registered: 2014-01-21
Posts: 4,797

Re: The dwb browser thread

pvsage wrote:

Re. xxxterm, I just installed it; first-run page advises that future releases are Xombrero.  Perhaps that's the name it goes by on Arch now?

Good call --- thanks smile
https://aur.archlinux.org/packages.php?K=Xombrero

EDIT: Yeah interesting:
2014_08_30_184113_1920x1080_scrot.jpg
I prefer dwb's non-toolkit look over the (Qt?) toolkit used on this...
Memory footprint seems roughly the same as dwb (~80MiB).

Last edited by Head_on_a_Stick (2014-08-30 17:43:34)

Offline

#19 2014-08-30 20:28:01

CBizgreat!
#! Die Hard
Registered: 2011-07-27
Posts: 1,865

Re: The dwb browser thread

Just for reference, if anyone wants to look this junk over. Post number 1 and 23 ( stats I got dorking with some of the "minimalist" nix web browsers.)

Think have tried a good chunk of the oddball browsers avail on the nix platform. Not to discourage anyone, cause it's kewl people are experimenting with diff software. For me though haven't found a browser that can touch FF + noscript. Nothing faster, lighter and many of the minimals are buggy or lacking features that make them too effort intensive for me to even bother wanting to use. Pointless 2 cents.

VLL! smile


Some common cbiz abbreviations. This will save me time and yet @ same time tell folks what the babble is supposed to mean.

Vll ! = ( Viva la gnu/Linux !)    Vl#!! = ( Viva la #! !)    Last but not least, UD ... OD ! = ( Use Debian ... or die !) tongue

Offline

#20 2014-09-20 17:50:48

eeach
New Member
Registered: 2014-09-20
Posts: 1

Re: The dwb browser thread

drp6 wrote:

I'm not aware of a way to delete all key bindings and then start from scratch. I have just typed in

Sk

in dwb command line to open up the keys list and then edit whichever ones I wanted to change such as closing a window - I switched this from 'd' to '~' so I didn't close a window everytime I typed a 'd'.

Keybindings can be found and configured in ~/.config/dwb/keys
I don't know if this is any better for your purpose, however. wink

Offline

#21 2015-03-14 02:49:38

boromeus
#! Junkie
From: BG (SRB)
Registered: 2010-09-12
Posts: 313

Re: The dwb browser thread

I've just read on Arch Wiki that dwb is now unmaintained. sad

Offline

#22 2015-03-21 21:26:53

Resident Bot
#! Die Hard
From: The Netherlands
Registered: 2012-02-17
Posts: 638

Re: The dwb browser thread

this guy seems to want to continue to develop it.
https://bbs.archlinux.org/viewtopic.php?id=190716
Though I use luakit, if I am not using Firefox -I use firefox just because of one plugin called Lastpass
found nothing as convenient on the smaller browsers
I am trying out qutebrowser at the moment, I am impressed who quickly it loads lots of photos when i did a search for "cats" compared to the speed of Firefox.
qutebrowser

Last edited by Resident Bot (2015-03-24 18:22:10)


Troll = not a fanatic
slave of #!  and arch

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo