fetch browser and terminal variables, closes #273; added option for vi-like client focus (default to false), closes #275
This commit is contained in:
parent
f3cd5275dd
commit
f6eff86394
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue