aboutsummaryrefslogtreecommitdiff
path: root/.config/awesome/rc.lua
diff options
context:
space:
mode:
authorxero <x@xero.nu>2014-03-09 21:14:10 -0400
committerxero <x@xero.nu>2014-03-09 21:14:10 -0400
commit6173be1a58d2433962bda50059d9043b37c85205 (patch)
treee3e728e44bc83ad57367f77aebb6eb3842f548cb /.config/awesome/rc.lua
parent91dda2aabf851ebe4c86d99c871dae6ed7c47a4a (diff)
downloaddotfiles_ascii-6173be1a58d2433962bda50059d9043b37c85205.tar.xz
dotfiles_ascii-6173be1a58d2433962bda50059d9043b37c85205.zip
add awesome ghost config variable to enable sloppy focus, since i guess some people like that type of thing.
Diffstat (limited to '.config/awesome/rc.lua')
-rwxr-xr-x.config/awesome/rc.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index b8a7d4b..7e8aba3 100755
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -834,6 +834,15 @@ client.connect_signal("manage", function (c, startup)
awful.placement.no_overlap(c)
awful.placement.no_offscreen(c)
end
+ -- sloppy focus
+ if sloppy_focus then
+ c:connect_signal("mouse::enter", function(c)
+ if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
+ and awful.client.focus.filter(c) then
+ client.focus = c
+ end
+ end)
+ end
end)
-- closed client