From 683071987d58bacaaed5d5852dd3ec80ba129416 Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 21 Sep 2021 15:49:33 +0200 Subject: Force screen activation --- rc.lua | 37 ++++++++++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/rc.lua b/rc.lua index b545b39..0109fb1 100644 --- a/rc.lua +++ b/rc.lua @@ -261,6 +261,24 @@ local lastIp = '' local lastInt = '' local lastEssid = '' +function fuckingAct() + + local list=client.get() + for k, c in pairs(list) do + awful.client.shape.update.all(c) + awful.client.shape.update.bounding(c) + awful.client.shape.update.clip(c) + end + + awful.tag.viewnext() + awful.tag.viewnext() + gears.timer.delayed_call(awful.tag.viewnext) + act() + gears.timer.start_new (0.05, awful.tag.viewprev) + gears.timer.start_new (0.05, awful.tag.viewprev) +end + + function act() -- vicious.force(mpdwidget) --{{ Batterie notification @@ -698,9 +716,7 @@ awful.key({ modkey, "Shift" }, "s", hotkeys_popup.show_help, {descriptio {description = "Next screen", group = "awesome"}), awful.key({ modkey, "Control" }, "Right", function() awful.screen.focus_relative( 1) end, {description = "Previous screen", group = "awesome"}), - awful.key({ modkey, }, "Escape", awful.tag.history.restore), - - + awful.key({ modkey, }, "Escape", fuckingAct), awful.key({ modkey, }, "Tab", function () awful.client.focus.byidx( 1) @@ -845,9 +861,14 @@ awful.key({ modkey, "Shift" }, "s", hotkeys_popup.show_help, {descriptio clientkeys = awful.util.table.join( awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end, {description = "Set active client fullscreen", group = "client"}), +awful.key({ modkey, "Mod1" }, "t", function (c) c.ontop = not c.ontop end, + {description = "Set active client on top", group = "client"}), awful.key({ modkey, }, "c", function (c) c:kill() end), + awful.key({ modkey, }, "v", function (c) + awful.util.spawn("xdotool click 2") + end), awful.key({ modkey, "Mod1" }, "h", function (c) c:kill() end), @@ -1109,10 +1130,12 @@ awful.rules.rules = { -awful.util.spawn_with_shell("xbindkeys") -awful.util.spawn_with_shell("autoWall") -awful.util.spawn_with_shell("setxkbmap -option grab:break_actions") -awful.util.spawn_with_shell("xss-lock -n /usr/lib/xsecurelock/dimmer -l -- /usr/bin/xsecurelock") + awful.util.spawn_with_shell("autoWall") -- Have to be here, to write other the fucking wallpaper of awesome. + + -- awful.util.spawn_with_shell("xbindkeys") + -- awful.util.spawn_with_shell("setxkbmap -option grab:break_actions") + -- awful.util.spawn_with_shell("xss-lock -n /usr/lib/xsecurelock/dimmer -l -- /usr/bin/xsecurelock") + -- -- All moved to .xinitrc. client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end) client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end) -- cgit v1.2.3