From 2631557cf2111c4a1cdc315ef97513c7b4f9bb3c Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 14 Jul 2020 09:45:13 +0200 Subject: windowmanager config update --- config/awesome/rc.lua | 33 +++++++++++++++++++-------------- config/awesome/weasel-rules.lua | 10 ++++++++++ 2 files changed, 29 insertions(+), 14 deletions(-) diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index fd3e26c..a2b44ba 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -177,7 +177,7 @@ end awful.screen.connect_for_each_screen(function(s) set_wallpaper(s) - awful.tag({ 1, 2, 3, 4, 5, "11", "12", "13", "14", "15", "21", "22", "23", "24", "25" }, s, layouts[1]) + awful.tag({ 1, 2, 3, 4, 5, "11", "12", "13", "14", "15", "21", "22", "23", "24", "25", "31", "32", "33", "34", "35" }, s, layouts[1]) -- Create a promptbox for each screen s.mypromptbox = awful.widget.prompt() @@ -405,7 +405,8 @@ globalkeys = awful.util.table.join( local tag_keys = { "1", "2", "3", "4", "5", "q", "w", "e", "r", "t", - "a", "s", "d", "f", "g" } + "a", "s", "d", "f", "g", + "z", "x", "c", "v", "b"} local modkeytag = modkey2 -- local modkeytag = modkey for i = 1, #tag_keys do @@ -666,6 +667,7 @@ end client.connect_signal("manage", function (c, startup) -- Enable sloppy focus c:connect_signal("mouse::enter", function(c) + -- gears.debug.dump("in mouse::enter") if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier and awful.client.focus.filter(c) then client.focus = c @@ -702,23 +704,26 @@ client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_n -- -- from/inspired by https://stackoverflow.com/a/30684548 do_not_reset_focus = false +focus_timer = gears.timer( { + timeout = 0.001, + callback = function() + -- gears.debug.dump(" in property::selected, timer function") + local c = mouse.current_client + if not (c == nil) then + client.focus = c + end + focus_timer:stop() + end +}) tag.connect_signal( "property::selected", function (t) + -- gears.debug.dump("in property::selected") if t.selected then + -- gears.debug.dump(" in property::selected, t.selected") if not do_not_reset_focus then - focus_timer = gears.timer( - { timeout = 0.001, - autostart = true, - callback = function() - local c = mouse.current_client - if not (c == nil) then - client.focus = c - end - focus_timer:stop() - end - } - ) + -- gears.debug.dump(" in property::selected, do_reset_focus") + focus_timer:start() end do_not_reset_focus = false end diff --git a/config/awesome/weasel-rules.lua b/config/awesome/weasel-rules.lua index 3cdacd9..9d387d5 100644 --- a/config/awesome/weasel-rules.lua +++ b/config/awesome/weasel-rules.lua @@ -8,6 +8,9 @@ function get_weasel_rules() { rule = { class = "plasmashell" }, properties = { floating = true } }, + { rule = { class = "Vncviewer" }, + properties = { floating = true } }, + { rule = { class = "mpv" }, properties = { floating = true } }, @@ -61,6 +64,13 @@ function get_weasel_rules() { rule = { class = "okular" , name = "Okular" }, properties = { floating = true } }, + { rule = { name = "Xnest" }, + properties = { floating = true } }, + { rule = { class = "Xpdf" }, + properties = { floating = true } }, + { rule = { class = "Display-im6.q16" , name = "ImageMagick: " }, + properties = { floating = true } }, + --{ rule = { maximized_horizontal = true }, -- these two should remove window borders from maximized windows because they get in the way -- properties = { border_width = 0 } }, --{ rule = { maximized_vertical = true }, -- cgit v1.2.3