fetch browser and terminal variables, closes #273; added option for vi-like client focus (default to false), closes #275

This commit is contained in:
Luca CPZ 2019-11-26 14:42:14 +00:00
parent f3cd5275dd
commit f6eff86394
No known key found for this signature in database
GPG Key ID: D44FC5FFC3500D1E
1 changed files with 4 additions and 4 deletions

View File

@ -90,10 +90,10 @@ local chosen_theme = themes[5]
local modkey = "Mod4"
local altkey = "Mod1"
local terminal = "urxvtc"
local vi_focus = true -- vi-like client focus - https://github.com/lcpz/awesome-copycats/issues/275
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 "gvim"
local browser = os.getenv("BROWSER") or "firefox"
local scrlocker = "slock"
awful.util.terminal = terminal
@ -751,7 +751,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)