You are not logged in.
I think you have to add a * to apply it globally like this:
/* Fonts and Dimensions */
* {font-size: 16pt !important;}
If this still does not work, there might be something wrong with the syntax in your globals.lua.
Edit: The correct syntax would be something like this:
domain_props = {
["all"] = {
enable_scripts = true,
enable_plugins = true,
enable_private_browsing = false,
user_stylesheet_uri = "file://" .. luakit.data_dir .. "/styles/custom.css",
},
}
Last edited by bratmaxe (2012-03-21 11:37:41)
Offline
thanks. the asterisk made no difference.
i have:
domain_props = {
["all"] = {
["enable-scripts"] = true,
["enable-plugins"] = true,
["enable-private-browsing"] = true,
["user-stylesheet-uri"] = "file://" .. luakit.data_dir .. "/styles/custom.css",
},
["youtube.com"] = {
["enable-scripts"] = true,
["enable-plugins"] = true,
},
["bbs.archlinux.org"] = {
["user-stylesheet-uri"] = "file://" .. luakit.data_dir .. "/styles/dark.css",
["enable-private-browsing"] = true,
},
}
Offline
The custom.css has to be in ~/.local/share/luakit/styles/
If that's the case, i have no idea why this does not work. I tested your custom.css with my domain_props which I posted above, and it works. (But i had to add the *)
Last edited by bratmaxe (2012-03-21 12:09:51)
Offline
yes, the file is in ~/.local/share/luakit/styles, but the font size doesn't change. not sure why.
Offline
Okay I think I found the problem by testing your config. You have to replace the - with _ in your domain_props properties names. For example user_stylesheet_uri instead of user-stylesheet-uri.
Offline
strange. i tried changing that line to match what you have, but that had no effect.
Offline
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.
Ah, that makes sense. Thanks forr your help. I'll use dwb for now.
Offline
strange. i tried changing that line to match what you have, but that had no effect.
i copied over the stock config files and tried redoing everything. now the custom css file works, but only for some pages. for example, gmail uses large fonts, but the arch linux forum does not. but this is most likely not a luakit issue now.
Offline
I am a new user and I have some questions:
- how to change the start page?
- how to change the default downlaods directory?
- how to change default search engine? (by default is google but I want to use google encrypted)
- what is the history quickmark?
Thanks.
Last edited by Draven94 (2012-03-23 10:45:13)
Offline
Er ... Draven, you'll probably quickly find that the arch community is very fast to help those who at least try to help themselves.
Most of those questions, however, show that you have not even tried any basic steps or done any research of your own. Perhaps you'll get lucky on this thread, but I'd advise against keeping up such questions lest you get referred to the "help vampire" sites.
I will give you a direction as a freebie: read the *.lua files in ~/.config/luakit/ or put them there as pacman instructed if they aren't there yet.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Ok, I solved my questions
Offline
Glad to hear my worries were inflated. Please do feel free to ask questions if/when you get stuck - but always give it a shot on your own first.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
At long last, luakit version 2012.03.25!
Luakit-2012.03.25 Release Notes
Enjoy folks,
As usual if you have any problems with luakit ask here or raise an issue on github and I'll get to it as soon as possible.
Offline
I have another question:
I have a login problem with a web site. Is it possible to change the user agent in global.lua? (only for this site I think that it is not possible)
Offline
At long last, luakit version 2012.03.25!
I see that we still have luakit 2011.07.22-3 in the repos. Should it be marked out-of-date?
Offline
mason.larobina wrote:At long last, luakit version 2012.03.25!
I see that we still have luakit 2011.07.22-3 in the repos. Should it be marked out-of-date?
Yes, just about to do that. Slowly getting there
Edit: and done.
Last edited by mason.larobina (2012-03-26 12:47:10)
Offline
I have another question:
I have a login problem with a web site. Is it possible to change the user agent in global.lua? (only for this site I think that it is not possible)
It's a lot of hassle to change the useragent on a per-site basis. I'd recommend using a recent Chrome/chromium useragent.
(And to change the useragent add this somewhere after the `require "globals"` line in your rc.lua or edit globals.lua directly)
globals.useragent = "Mozilla/5.0 ..."
Offline
Draven94 wrote:I have another question:
I have a login problem with a web site. Is it possible to change the user agent in global.lua? (only for this site I think that it is not possible)It's a lot of hassle to change the useragent on a per-site basis. I'd recommend using a recent Chrome/chromium useragent.
(And to change the useragent add this somewhere after the `require "globals"` line in your rc.lua or edit globals.lua directly)
globals.useragent = "Mozilla/5.0 ..."
Thank you, it works well
Offline
Hi, I've been using Luakit for a little while and it's great but I've tried to get the link hints in follow mode to be alphanumeric as per the instructions in the wiki but the files are different. There is no follow.lua anymore; there is a follow folder but I checked all files for one of the modules and it wasn't there. Anyway help would be appreciated! Thanks.
Clever Linux quote.
Offline
Hi, I've been using Luakit for a little while and it's great but I've tried to get the link hints in follow mode to be alphanumeric as per the instructions in the wiki but the files are different. There is no follow.lua anymore; there is a follow folder but I checked all files for one of the modules and it wasn't there. Anyway help would be appreciated! Thanks.
pretty sure it's in the rc.lua
-- To use a custom character set for the follow hint labels un-comment and
-- modify the following:
--local s = follow.styles
--follow.style = s.sort(s.reverse(s.charset("asdfqwerzxcv"))) -- I'm a lefty
Offline
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 doesn't seem to work when luakit isn't attach to a terminal (it must be something with mktor I think), I didn't find a better solution than to use tmux like this instead:
local cmd = string.format("tmux new -d \"mktor '%s'\"", uri)
Last edited by bootleg (2012-03-27 17:50:29)
Offline
Mason, great work on luakit, but I recently found a stumbling block. I hope you, or someone else here, can provide some information.
A couple sites I have to use regularly have content linked via a javascript function that looks like the following
javascript:__doPostBack(...)
The dots are, of course, parameters and are different in each instance.
As I only barely dabble in Javascript I'm not familiar with this function. But while all other javascript seems to work - and javascript test pages give me positive results - these __doPostBack links do nothing. In other browsers (eg chromium) the link opens a pdf file. I'm at a loss of how to proceed.
Any help would be appreciated.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Hi,
Can someone tell me how to configure luakit so that every tab is oppened in a new window, because I would like my window manager to handle tabbing.
Thanks.
Offline
Well, I have the complete opposite. This is in my rc.lua
-- always open new window as a new tab
webview.init_funcs.window_decision = function (view, w)
view:add_signal("new-window-decision", function (v, uri, reason)
w:new_tab(uri)
return true
end)
end
Might be a starting point.
Offline
Yeah I think just replacing w:new_tab by window.new({uri}) can do the trick. I didn't tested though.
Offline