From fa1fed1ac7a7bf0999dd5cdc4e330998681ebcd7 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 13 Nov 2019 13:59:07 +0000 Subject: [PATCH] Fixes for issue https://github.com/lcpz/awesome-copycats/issues/275 and https://github.com/lcpz/awesome-copycats/issues/273 --- rc.lua.template | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/rc.lua.template b/rc.lua.template index db10f14..eae0513 100644 --- a/rc.lua.template +++ b/rc.lua.template @@ -89,11 +89,12 @@ local themes = { local chosen_theme = themes[5] local modkey = "Mod4" local altkey = "Mod1" -local terminal = "urxvtc" +local vi_focus = false +local terminal = os.getenv("TERMINAL") or "urxvtc" local editor = os.getenv("EDITOR") or "vim" -local gui_editor = "gvim" -local browser = "firefox" -local guieditor = "atom" +local gui_editor = os.getenv("GUI_EDITOR") or "gedit" +local browser = os.getenv("BROWSER") or "firefox" +local guieditor = os.getenv("GUI_EDITOR") or "aton" local scrlocker = "slock" awful.util.terminal = terminal @@ -751,7 +752,7 @@ end) -- Enable sloppy focus, so that focus follows mouse. client.connect_signal("mouse::enter", function(c) - c:emit_signal("request::activate", "mouse_enter", {raise = true}) + c:emit_signal("request::activate", "mouse_enter", {raise = vi_focus}) end) client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)