From 71d312ed03cfdf8a5227d5838d43c703a3a24bf4 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Sat, 6 May 2023 23:51:20 +0200 Subject: Add additional rules for games and related programs --- .config/awesome/rc.lua | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index be780d1..de5131f 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -221,9 +221,9 @@ globalkeys = gears.table.join( {description = "swap with next client by index", group = "client"}), awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end, {description = "swap with previous client by index", group = "client"}), - awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative(-1) end, + awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_bydirection("right") end, {description = "focus the next screen", group = "screen"}), - awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative( 1) end, + awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_bydirection("left") end, {description = "focus the previous screen", group = "screen"}), awful.key({ modkey, }, "u", awful.client.urgent.jumpto, {description = "jump to urgent client", group = "client"}), @@ -487,6 +487,21 @@ awful.rules.rules = { }, }, + { -- Tag rules for fun + rule_any = { + class = { + "wow.exe", + "battle.net.exe", + "tsmapplication.exe", + "lutris", + "pathofexile.exe", + }, + }, + properties = { + tag = "fun", + }, + }, + { -- Tag rules for media rule_any = { class = { @@ -498,6 +513,19 @@ awful.rules.rules = { }, }, + { -- Wine clients need to behave + rule_any = { + class = { + "wow.exe", + "pathofexile.exe", + }, + }, + properties = { + floating = false, + fullscreen = false, + }, + }, + -- Floating clients. { rule_any = { instance = { -- cgit v1.1