You are not logged in.
Hi,
I was wondering if there was a way to open links with other apps according to the protocol, to manage 'mailto' or ftp links for instance.
Offline
mailto to gmail would be swell too
Offline
Hi,
I was wondering if there was a way to open links with other apps according to the protocol, to manage 'mailto' or ftp links for instance.
Offline
Nice, thanks!
Offline
Where do I find a config file for this thing? I just installed it, but it did not generate anything in ~/,config/luakit, and I can't find any generic config online.
I need to set default things like:
window position
window size
disable status bar
Offline
pacman -Ql luakit
will show you the contents of the package. The files you are looking for are in /etc/xdg/luakit
About your defaults: I think window position is managed by the window manager. Window size can be adjusted in the globals.lua (default_window_size). Disabling the status bar might be a bit more tricky. Do you want to disable it completely?
Last edited by Army (2012-02-27 20:27:59)
Offline
Where do I find a config file for this thing? I just installed it, but it did not generate anything in ~/,config/luakit, and I can't find any generic config online.
Also pay better attention to pacman. It told you where configs are upon install.
http://sprunge.us/CVAj
PLEASE read and try to FIX/FILE BUGS instead of assuming other have/will.
Offline
Is it possible to block domains completely in luakit? I'm looking for a way to block domains for me but not for everyone else (read: facebook).
Offline
Is it possible to block domains completely in luakit? I'm looking for a way to block domains for me but not for everyone else (read: facebook).
Yes! Use https://gist.github.com/1073680, put it in your ~/.config/luakit, named e.g. adblock.lua, edit your rc.lua and include
require "adblock"
Then create a file ~/.config/luakit/adblock.blacklist according to the comment in the adblock.lua. Here's what works for facebook
facebook%.com
Offline
+1, thanks.
Offline
@Army: your mailto snippet works, but I can't adapt it to auto-add magnet links to transmission :s
Offline
Sorry, I don't know how to do that, I didn't write that code, I just took it from the mailing list to this thread so everyone sees it, because obviously it's pretty cool stuff.
Offline
Oh I see! yes it's awesome stuff! well if anyone know how to make transmission open "magnet:" links do tell
Offline
-cut-
nvm i guess it's documented and a webkit problem (http://luakit.org/issues/24)
Last edited by sonkei (2012-02-28 22:30:09)
Offline
I tried changing the default window size by
set_default_size = function (w)
local size = globals.default_window_size or "1251x767"
but it doesn't work.
I also was unable to find an option to keep window position on browser close/open and how to disable the statusbar.
Offline
Oh I see! yes it's awesome stuff! well if anyone know how to make transmission open "magnet:" links do tell
Here is how I made it work with rTorrent:
webview.init_funcs.magned_hook = function (view, w)
view:add_signal("navigation-request", function (v, uri)
if string.match(uri, "^magnet:") then
local cmd = string.format("%s %q", "mktor", uri)
luakit.spawn(cmd)
return false
end
end)
end
this should work with any bittorrent client I think.
(see pyroscope for mktor)
Last edited by bootleg (2012-02-29 09:24:46)
Offline
Great!! I'll check this one out soon!
Here's a script which translates hosts files for adblocking into an adblock.blacklist file. Use it as an example only!
Offline
@bootleg: thanks it works
any news on luakit's code working?
Offline
is there a way to change the default font and font size of webpages?
Offline
Trying to compile luakit on CRUX and getting this: http://paste.lisp.org/+2R34
Offline
Any thoughts? Is there more information I need to provide?
Offline
What compiler are you using? You using the latest source from git?
EDIT:
Try setting CC to clang. At the very least, it has better error messages. I don't get any error messages or warnings at all with clang or gcc. The ones you're getting don't seem to actually point to any incorrect code.
Oh! Hum. It looks like our lua is out of date, and the new version changes the API around a bit.
Last edited by Bellum (2012-03-21 02:18:05)
Offline
Thank you for the reply.
Yes, latest code from git. Compiler is set to cc, which is a symlink to gcc. Output of gcc -v:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.5.3/configure --prefix=/usr --mandir=/usr/man --libexecdir=/usr/lib --enable-languages=c,c++,objc --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-shared --disable-nls --with-x=no --with-system-zlib --with-pkgversion=CRUX
Thread model: posix
gcc version 4.5.3 (CRUX)
My version of lua is 5.2.0, which I am led to believe is the latest version. I don't understand your comment about 'our' lua being out of date.
CRUX has no clang port. Do I really have to install a new compiler to resolve this?
Perhaps I shouldn't have snipped the output. Here is all of it: http://paste.lisp.org/display/128458
Offline
No, no. I was just commenting that clangs output is more human-friendly so it would be easier for me see what's going on. But after looking around a bit, I think I see what's going on.
By "our" lua, I mean Arch Linux, which uses 5.1. 5.2 seems to break backwards compatibility a bit. In which case it's just a matter of either installing lua 5.1 or waiting for luakit to be ported to 5.2.
Offline
is there a way to change the default font and font size of webpages?
i tried to solve this by creating a custom css file with the following code:
/* Fonts and Dimensions */
{font-size: 16pt !important;}
i have the following line in globals.lua:
["user-stylesheet-uri"] = "file://" .. luakit.data_dir .. "/styles/custom.css"
but the font size doesn't change. did i miss something?
Offline