mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2026-03-23 14:05:11 +00:00
Fixes for issue https://github.com/lcpz/awesome-copycats/issues/275 and https://github.com/lcpz/awesome-copycats/issues/273
This commit is contained in:
parent
f2d6c00a72
commit
fa1fed1ac7
|
|
@ -89,11 +89,12 @@ local themes = {
|
||||||
local chosen_theme = themes[5]
|
local chosen_theme = themes[5]
|
||||||
local modkey = "Mod4"
|
local modkey = "Mod4"
|
||||||
local altkey = "Mod1"
|
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 editor = os.getenv("EDITOR") or "vim"
|
||||||
local gui_editor = "gvim"
|
local gui_editor = os.getenv("GUI_EDITOR") or "gedit"
|
||||||
local browser = "firefox"
|
local browser = os.getenv("BROWSER") or "firefox"
|
||||||
local guieditor = "atom"
|
local guieditor = os.getenv("GUI_EDITOR") or "aton"
|
||||||
local scrlocker = "slock"
|
local scrlocker = "slock"
|
||||||
|
|
||||||
awful.util.terminal = terminal
|
awful.util.terminal = terminal
|
||||||
|
|
@ -751,7 +752,7 @@ end)
|
||||||
|
|
||||||
-- Enable sloppy focus, so that focus follows mouse.
|
-- Enable sloppy focus, so that focus follows mouse.
|
||||||
client.connect_signal("mouse::enter", function(c)
|
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)
|
end)
|
||||||
|
|
||||||
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
|
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue