SEARCH

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

You are not logged in.

#1 2011-01-18 19:39:23

benj1
Wiki Wizard
From: Yorkshire, England
Registered: 2009-09-05
Posts: 1,084

Luakit

Just start using Luakit a few days ago, and so far I'm liking it, I've tried Uzbl in the past but didn't realy get past setting it up, Luakit is ironically usable out of the box, its in the early stages of development but I haven't had any problems using it, it uses webkit so everything works (I haven't had any problems using it anyway)
any other crunchbangers using it?

link to arch forums pagehttps://bbs.archlinux.org/viewtopic.php?id=97375
and debian sid .deb http://packages.debian.org/unstable/main/luakit


- - - - - - - - Wiki Pages - - - - - - -
#! install guide           *autostart programs, modify the menu & keybindings
configuring Conky       *installing scripts

Offline

Help fund CrunchBang, donate to the project!

#2 2011-02-06 22:26:56

jeffreyC
#! Die Hard
Registered: 2010-09-02
Posts: 532

Re: Luakit

Installing it now, it's in the Wheezy repository


There's a reason you separate military and the police. One fights the enemies of the state, the other serves and protects the people. When the military becomes both, then the enemies of the state tend to become the people.

Offline

#3 2011-02-07 01:44:59

corenominal
WRONG
From: Lincoln, UK
Registered: 2008-11-20
Posts: 5,057
Website

Re: Luakit

Luakit looks interesting, I think I will have a play. Thanks for sharing. smile

Offline

#4 2011-06-28 14:26:05

Laudan
#! CrunchBanger
Registered: 2010-12-02
Posts: 109

Re: Luakit

How can I download from the sid repository?
Could you please provide the apt-get instructions?
Thanks

EDIT: if you can, please provide the exact command-line to install luakit

Last edited by Laudan (2011-06-28 14:26:57)

Offline

#5 2011-06-28 15:00:19

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,418

Offline

#6 2012-01-02 21:30:22

sunfizz98
Carbonated Orange Juice
From: su terminal
Registered: 2011-05-12
Posts: 1,876
Website

Re: Luakit

Thought I'd revive this thread since I have started using it since yesterday and loving it.  The defaults are wonderful since it uses the vimperator plugin and has noscript baked right into the browser.  Oh and it runs and loads faster than the heavier apps like iceweasel or chrome (almost instant boot).

Current problems:
1. How to clear history [SOLVED]
2. Userscripts can be installed, but they're not working as intended.
3. How to install userstyles from userstyles.org
4. xmarks support?

Last edited by sunfizz98 (2012-01-03 18:22:00)

Offline

#7 2012-01-02 21:38:21

Laudan
#! CrunchBanger
Registered: 2010-12-02
Posts: 109

Re: Luakit

After installing it, I was not able to do anything with it.
Where is the address bar?

Offline

#8 2012-01-02 21:39:25

sunfizz98
Carbonated Orange Juice
From: su terminal
Registered: 2011-05-12
Posts: 1,876
Website

Re: Luakit

^Press "o" and then type your desired address.

Offline

#9 2012-01-02 21:43:09

Laudan
#! CrunchBanger
Registered: 2010-12-02
Posts: 109

Re: Luakit

sunfizz98 wrote:

^Press "o" and then type your desired address.

Thanks. Where can I find the instructions for the other commands?

Offline

#10 2012-01-02 21:52:46

sunfizz98
Carbonated Orange Juice
From: su terminal
Registered: 2011-05-12
Posts: 1,876
Website

Re: Luakit

^Luakit beginner's guide

This should get your feet wet for the time being.  It's very similar to firefox's vimperator extension so you can try googling a manual for vimperator.

Offline

#11 2012-01-03 03:35:29

2ManyDogs
dv#!
From: elsewhere
Registered: 2011-11-22
Posts: 1,346

Re: Luakit

Also take a look at the "/etc/xdg/luakit/binds.lua" file -- it contains the default key bindings.

I've been playing with luakit a bit today and I have to say it's growing on me, especially when I see how fast it loads and how little memory it uses.


Be eggsalad to each other.

Offline

#12 2012-01-03 14:11:27

2ManyDogs
dv#!
From: elsewhere
Registered: 2011-11-22
Posts: 1,346

Re: Luakit

sunfizz98 wrote:

Current problems:
1. How to clear history

according to this thread you can clear your history by deleting ~/.local/share/luakit/history.db.


Be eggsalad to each other.

Offline

#13 2012-01-08 20:05:43

2ManyDogs
dv#!
From: elsewhere
Registered: 2011-11-22
Posts: 1,346

Re: Luakit

dammit! now I try to use "b" to go back a page in iceweasel.


Be eggsalad to each other.

Offline

#14 2012-01-08 20:23:56

sunfizz98
Carbonated Orange Juice
From: su terminal
Registered: 2011-05-12
Posts: 1,876
Website

Re: Luakit

^Why is that? vimperator/luakit usually has "ctrl+o" for going back one page.

Offline

#15 2012-01-09 00:02:13

2ManyDogs
dv#!
From: elsewhere
Registered: 2011-11-22
Posts: 1,346

Re: Luakit

binds.lua:

-- History
    key({},          "H",           function (w, m) w:back(m.count)    end),
    key({},          "L",           function (w, m) w:forward(m.count) end),
    key({},          "b",           function (w, m) w:back(m.count)    end),
    key({},          "XF86Back",    function (w, m) w:back(m.count)    end),
    key({},          "XF86Forward", function (w, m) w:forward(m.count) end),
    key({"Control"}, "o",           function (w, m) w:back(m.count)    end),
    key({"Control"}, "i",           function (w, m) w:forward(m.count) end),

"Ctrl-o" and "b" both work. I learned "b" first.


Be eggsalad to each other.

Offline

#16 2012-01-09 02:19:30

sunfizz98
Carbonated Orange Juice
From: su terminal
Registered: 2011-05-12
Posts: 1,876
Website

Re: Luakit

huh...I learned something new today.  Btw, is there a way to....

1. copy selected text from keyboard
2. always open links in new tabs instead of new window panes
3. save passwords

Offline

#17 2012-01-09 17:49:14

2ManyDogs
dv#!
From: elsewhere
Registered: 2011-11-22
Posts: 1,346

Re: Luakit

sunfizz98 wrote:

Btw, is there a way to....
1. copy selected text from keyboard
2. always open links in new tabs instead of new window panes
3. save passwords

1. Should be possible; I'll see if it's easy.

2. Ctrl-left mouse click will open a link in a new tab now. If you want it to always work like this (never open a new window for navigation), copy /etc/xdg/luakit/webview.lua to your home folder ~/.config/luakit and edit it as follows:

find this section:

-- Action to take on window open request.
    window_decision = function (view, w)
        -- 'link' contains the download link
        -- 'reason' contains the reason of the request (i.e. "link-clicked")
        -- return TRUE to handle the request by yourself or FALSE to proceed
        -- with default behaviour
        view:add_signal("new-window-decision", function (v, uri, reason)
            info("New window decision: %s (%s)", uri, reason)
            if reason == "link-clicked" then
                window.new({uri})
            else
                w:new_tab(uri)
            end
            return true
        end)
    end,

and edit it to remove the window.new decision portion:

-- Action to take on window open request.
    window_decision = function (view, w)
         view:add_signal("new-window-decision", function (v, uri, reason)
            -- always open a new tab, never a new window
               w:new_tab(uri)
            return true
        end)
    end,

So far this seems to work with no issues, but it may prevent a window from being opened when we want it to be, so proceed with caution (back up the file first, all that).

3. I probably won't work on this; I never save passwords in the browser.

Last edited by 2ManyDogs (2012-01-10 03:05:00)


Be eggsalad to each other.

Offline

#18 2012-01-09 18:35:26

2ManyDogs
dv#!
From: elsewhere
Registered: 2011-11-22
Posts: 1,346

Re: Luakit

sunfizz98 wrote:

1. copy selected text from keyboard

Not sure exactly what you mean here. If you select text with the mouse and right click, you get the copy option. Do you want a "copy with keystrokes" option?

If so, you can add this to binds.lua in the "yanking" section:

buf("^ys$",                     function (w)
                                        local uri = luakit.selection.primary
                                        if not uri then w:error("Empty selection.") return end
                                        luakit.selection.clipboard = uri
                                        w:notify("Yanked selection: " .. uri)
                                        luakit.selection.primary = ""
                                    end),

and then after you select text (with the mouse) type ^ys to copy the selection to the clipboard. You can paste into the destination with ctrl-V as usual.

If that's not what you mean let me know.

Last edited by 2ManyDogs (2012-01-09 19:13:45)


Be eggsalad to each other.

Offline

#19 2012-01-31 03:58:19

ADeadCat
New Member
Registered: 2012-01-31
Posts: 1

Re: Luakit

@2ManyDogs

Your last post was extremely useful, but I'm new to Lua, and when I added your code to enable copying with keystrokes, it just displays the following error:

    Error: In bind call: /etc/xdg/luakit/binds.lua:188: attempt to index field 'selection' (a nil value)

Any help would be appreciated, and thanks in advance

Offline

#20 2012-03-15 20:21:35

gensym
#! Junkie
Registered: 2011-10-17
Posts: 447

Re: Luakit

So.. I  am having trouble logging in to the #!-Forums with luakit (#! forums claim that I don't allow cookies).
Here are the cookie related parts of my luakit config files. Am I missing something?
rc.lua

-- Add sqlite3 cookiejar                                                                                                                                                                        
require "cookies"

-- Cookie blocking by domain (extends cookies module)                                                                                                                                           
-- Add domains to the whitelist at "$XDG_CONFIG_HOME/luakit cookie.whitelist"                                                                                                                   
-- and blacklist at "$XDG_CONFIG_HOME/luakit/cookie.blacklist".                                                                                                                                 
-- Each domain must be on it's own line and you may use "*" as                                                                                                                                 
-- wildcard character (I.e. "*google.com")                                                                                                                                                      
-- cookies default.allow = false                                                                                                                                            
                    

globals.lua

cookie_policy = { always = 0, never = 1, no_third_party = 2 }
soup.accept_policy = cookie_policy.always

I'd be glad if someone could help me with that.
Thanks in Advance.

Last edited by gensym (2012-03-16 09:00:49)


'Multiple exclamation marks,' he went on, shaking his head, 'are a sure sign of a diseased mind.', {Eric}

Offline

#21 2012-03-16 03:50:15

2ManyDogs
dv#!
From: elsewhere
Registered: 2011-11-22
Posts: 1,346

Re: Luakit

Did you get this sorted yet? I'm no luakit expert, but I use it to browse #! every day (including right now). The only thing I see different in my rc.lua is this section you did not mention:

-- Block all cookies by default (unless whitelisted)
--cookies.default_allow = false

It's right after --require "cookie blocking" in my rc.lua.


Be eggsalad to each other.

Offline

#22 2012-03-16 08:58:32

gensym
#! Junkie
Registered: 2011-10-17
Posts: 447

Re: Luakit

Yes. It's there and commented out, I must have missed it when copying.
Edith says: Can anyone suggest a method of overriding the font specified in the html file of the website with user specified fonts (like firefox does). Maybe a client side css can do that, but I am not terribly good at creating css files, any ideas?

Edith says:
This does the trick.

* {
        font-family: "Font-Family-Name" !important
}

Last edited by gensym (2012-03-18 23:28:05)


'Multiple exclamation marks,' he went on, shaking his head, 'are a sure sign of a diseased mind.', {Eric}

Offline

#23 2012-03-18 17:31:06

gensym
#! Junkie
Registered: 2011-10-17
Posts: 447

Re: Luakit

An update:

The issue is not luakit related. I see this message with every browser except for firefox.

Googling the error message,

#! wrote:

You appear to have logged in successfully, however a cookie has not been set. Please check your settings and if applicable, enable cookies for this website.

I have found the following thread: Clicky

I also found another link which gives some possible user workarounds for the problem. I'll post if the user workarounds solve my problem.


Edith says: Yay! Clicking the automatic login button did the trick.

Last edited by gensym (2012-03-18 17:42:51)


'Multiple exclamation marks,' he went on, shaking his head, 'are a sure sign of a diseased mind.', {Eric}

Offline

#24 2012-05-03 09:19:05

384403
#! Member
Registered: 2012-03-29
Posts: 50

Re: Luakit

I've been using Luakit for a while on an old laptop, it's a great little browser. I'd like it to block ads, like adblock for Firefox. I'm using privoxy but it seems slow. I found some scripts for adblock for Luakit, but I don't know how to use them, I've put them in /etc/xdg/luakit and linked to them in /etc/xdg/luakit/rc.lua, but they don't work.

Offline

Help fund CrunchBang, donate to the project!

#25 2012-05-03 16:58:46

ivanovnegro
Ivan #000000
From: unstable madness
Registered: 2011-06-02
Posts: 5,423

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.

Debian Logo