diff options
author | xero <x@xero.nu> | 2014-03-09 21:14:10 -0400 |
---|---|---|
committer | xero <x@xero.nu> | 2014-03-09 21:14:10 -0400 |
commit | 6173be1a58d2433962bda50059d9043b37c85205 (patch) | |
tree | e3e728e44bc83ad57367f77aebb6eb3842f548cb /.config/awesome | |
parent | 91dda2aabf851ebe4c86d99c871dae6ed7c47a4a (diff) | |
download | dotfiles_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')
-rw-r--r-- | .config/awesome/config.lua | 1 | ||||
-rwxr-xr-x | .config/awesome/rc.lua | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/.config/awesome/config.lua b/.config/awesome/config.lua index efa6e3e..eeb466f 100644 --- a/.config/awesome/config.lua +++ b/.config/awesome/config.lua @@ -18,6 +18,7 @@ tag_icon = "◊" tag_icon_active = "◆" clock_format = " %a %m/%d %H:%M " -- http://linux.die.net/man/3/strftime battery_id = "BAT1" +sloppy_focus = false -- █▓▒░ preffered apps terminal = "urxvtc" 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 |