diff options
author | Patrick Spek <p.spek@tyil.nl> | 2023-05-06 23:51:20 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-05-06 23:51:20 +0200 |
commit | 71d312ed03cfdf8a5227d5838d43c703a3a24bf4 (patch) | |
tree | 9ab13db06ee7c701130cda8e68cb59e922c99940 | |
parent | 3295e3bd80310bac35250b0bde321ebbb80da150 (diff) | |
download | dotfiles-71d312ed03cfdf8a5227d5838d43c703a3a24bf4.tar.gz dotfiles-71d312ed03cfdf8a5227d5838d43c703a3a24bf4.tar.bz2 |
Add additional rules for games and related programs
-rw-r--r-- | .config/awesome/rc.lua | 32 |
1 files 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 = { |