From 49c05a4f1b369675883d8037312a26ead4893a5c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 21 Sep 2017 16:14:31 -0300 Subject: Major update compatible with current upstream --- config.dot/luakit.link/globals.lua | 95 -------------------------------------- 1 file changed, 95 deletions(-) delete mode 100644 config.dot/luakit.link/globals.lua (limited to 'config.dot/luakit.link/globals.lua') diff --git a/config.dot/luakit.link/globals.lua b/config.dot/luakit.link/globals.lua deleted file mode 100644 index eb51a3e..0000000 --- a/config.dot/luakit.link/globals.lua +++ /dev/null @@ -1,95 +0,0 @@ --- Environment -homedir = os.getenv("HOME") - --- Global variables for luakit -globals = { - -- homepage = homedir .. "/html/index.html", - -- homepage = "http://luakit.org/", - -- homepage = "http://github.com/mason-larobina/luakit", - scroll_step = 40, - zoom_step = 0.1, - max_cmd_history = 100, - max_srch_history = 100, - -- proxy must now be set through proxy command; environment variable is broken - default_window_size = "800x600", - term = "x-terminal-emulator", - - -- Disables loading of hostnames from /etc/hosts (for large host files) - -- load_etc_hosts = false, - -- Disables checking if a filepath exists in search_open function - -- check_filepath = false, -} - --- Make useragent -local _, arch = luakit.spawn_sync("uname -sm") --- Only use the luakit version if in date format (reduces identifiability) -local lkv = string.match(luakit.version, "^(%d+.%d+.%d+)") -globals.useragent = string.format("Mozilla/5.0 (%s) AppleWebKit/%s+ (KHTML, like Gecko) WebKitGTK+/%s luakit%s", - string.sub(arch, 1, -2), luakit.webkit_user_agent_version, - luakit.webkit_version, (lkv and ("/" .. lkv)) or "") - --- Search common locations for a ca file which is used for ssl connection validation. -local ca_files = { - -- $XDG_DATA_HOME/luakit/ca-certificates.crt - luakit.data_dir .. "/ca-certificates.crt", - "/etc/certs/ca-certificates.crt", - "/etc/ssl/certs/ca-certificates.crt", -} --- Use the first ca-file found -for _, ca_file in ipairs(ca_files) do - if os.exists(ca_file) then - soup.ssl_ca_file = ca_file - break - end -end - --- Stop navigation sites with invalid or expired ssl certificates -soup.ssl_strict = true - --- Set cookie acceptance policy --- Valid values are always, never or no_third_party -soup.accept_policy = "always" - --- List of search engines. Each item must contain a single %s which is --- replaced by URI encoded search terms. All other occurances of the percent --- character (%) may need to be escaped by placing another % before or after --- it to avoid collisions with lua's string.format characters. --- See: http://www.lua.org/manual/5.1/manual.html#pdf-string.format -search_engines = { - luakit = "http://luakit.org/search/index/luakit?q=%s", - imdb = "http://imdb.com/find?s=all&q=%s", - netflix = "http://dvd.netflix.com/Search?v1=%s", - google = "https://google.com/search?q=%s", - duck = "https://duckduckgo.com/?q=%s&t=debian", - wikipedia = "https://en.wikipedia.org/wiki/Special:Search?search=%s", - debbugs = "https://bugs.debian.org/%s", - sourceforge = "https://sf.net/search/?words=%s", - debian = "https://packages.debian.org/search?keywords=%s", - searx = "https://searx.org/?q=%s" -} - --- Set fallback search engine -search_engines.default = search_engines.duck --- Use this instead to disable auto-searching ---search_engines.default = "%s" - --- Per-domain webview properties --- See http://webkitgtk.org/reference/WebKitWebSettings.html -domain_props = { --[[ - ["all"] = { - enable_scripts = false, - enable_plugins = false, - enable_private_browsing = false, - user_stylesheet_uri = "", - }, - ["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, - }, ]] -} - --- vim: et:sw=4:ts=8:sts=4:tw=80 -- cgit v1.2.3