Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Cleaner/saner separation of rules for gamex / not

  • Loading branch information...
commit 86d00ac7b24c6846aa9c2b051f6414f5bf9b4660 1 parent bb54f83
Russell Pickett authored

Showing 1 changed file with 23 additions and 22 deletions. Show diff stats Hide diff stats

  1. +23 22 .config/awesome/rules.lua
45 .config/awesome/rules.lua
... ... @@ -1,25 +1,26 @@
1 1 require("awful.rules")
  2 +require("beautiful")
2 3
3   -if gamex() then
4   - awful.rules.rules = {
5   - { rule = { },
6   - properties = { keys = clientkeys,
7   - buttons = clientbuttons } },
8   - }
9   -else
10   - awful.rules.rules = {
11   - -- All clients will match this rule.
12   - { rule = { },
13   - properties = { border_width = beautiful.border_width,
14   - border_color = beautiful.border_normal,
15   - focus = true,
16   - keys = clientkeys,
17   - buttons = clientbuttons } },
18   - { rule = { class = "MPlayer" }, properties = { floating = true } },
19   - { rule = { class = "pinentry" }, properties = { floating = true } },
20   - { rule = { class = "gimp" }, properties = { floating = true } },
21   - { rule = { class = "Pavucontrol" },
22   - properties = { floating = true },
23   - callback = awful.placement.centered },
24   - }
  4 +-- all screens
  5 +awful.rules.rules = {
  6 + { rule = { },
  7 + properties = { border_width = beautiful.border_width,
  8 + border_color = beautiful.border_normal,
  9 + focus = true,
  10 + keys = clientkeys,
  11 + buttons = clientbuttons } },
  12 + { rule = { instance = "pylotro.exe" }, properties = { floating = true } },
  13 +}
  14 +
  15 +-- not for game/wine X server
  16 +if not gamex() then
  17 + awful.rules.rules = awful.util.table.join(
  18 + awful.rules.rules,
  19 + {
  20 + { rule = { class = "MPlayer" }, properties = { floating = true } },
  21 + { rule = { class = "pinentry" }, properties = { floating = true } },
  22 + { rule = { class = "gimp" }, properties = { floating = true } },
  23 + { rule = { class = "Eog" }, properties = { floating = true } },
  24 + }
  25 + )
25 26 end

0 comments on commit 86d00ac

Please sign in to comment.
Something went wrong with that request. Please try again.