From a3d27283799fcce68209e24905f5f12eed2c3cd6 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Thu, 18 Jan 2018 21:34:52 +0700 Subject: Update 2018-01-18 --- awesome/.config/awesome/rc.lua | 14 ++++++-------- luakit/.config/luakit/rc.lua | 8 ++++++-- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index 806d753..4c9aa10 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -4,6 +4,8 @@ local awful = require"awful" require"awful.autofocus" -- Widget and layout library local wibox = require"wibox" +-- Menu library +local freedesktop = require"freedesktop" -- Theme handling library local beautiful = require"beautiful" -- Notification library @@ -13,9 +15,6 @@ local hotkeys_popup = require"awful.hotkeys_popup".widget -- System data library local vicious = require"vicious" --- Load Debian menu entries -require"debian.menu" - -- {{{ Error handling -- Check if awesome encountered an error during startup and fell back to -- another config (This code will only ever execute for the fallback config) @@ -121,11 +120,10 @@ myawesomemenu = { {"quit", function() awesome.quit() end} } -mymainmenu = awful.menu{items = { - {"awesome", myawesomemenu, beautiful.awesome_icon}, - {"debian", debian.menu.Debian_menu.Debian}, - {"open terminal", terminal} -}} +mymainmenu = freedesktop.menu.build{ + before = {{"Awesome", myawesomemenu, beautiful.awesome_icon}}, + after = {{"Open terminal", terminal}} +} -- mylauncher = awful.widget.launcher{image = beautiful.awesome_icon, -- menu = mymainmenu} diff --git a/luakit/.config/luakit/rc.lua b/luakit/.config/luakit/rc.lua index 9aceccf..7f9f74d 100644 --- a/luakit/.config/luakit/rc.lua +++ b/luakit/.config/luakit/rc.lua @@ -7,7 +7,7 @@ require "lfs" require "unique_instance" -- Set the number of web processes to use. A value of 0 means 'no limit'. -luakit.process_limit = 4 +luakit.process_limit = 1 -- Set the cookie storage location soup.cookies_storage = luakit.data_dir .. "/cookies.db" @@ -27,7 +27,7 @@ local window = require "window" -- ("$XDG_CONFIG_HOME/luakit/webview.lua" or "/etc/xdg/luakit/webview.lua") local webview = require "webview" --- Add luakit;//log/ chrome page +-- Add luakit://log/ chrome page local log_chrome = require "log_chrome" window.add_signal("build", function (w) @@ -58,6 +58,10 @@ modes.add_binds("normal", { { "v", "Play video in page", function (w) end } }) local settings = require "settings" +settings.window.home_page = "luakit://newtab" +settings.window.close_with_last_tab = true +settings.window.search_engines["neoitem"] = "https://items.jellyneo.net/search/?name=%s" +settings.window.default_search_engine = "duckduckgo" require "settings_chrome" ---------------------------------- -- cgit 1.4.1