Dynamically select "secondary screen"

This commit is contained in:
lanxu 2017-12-25 13:59:53 +02:00
parent c0f84f270b
commit b9a820ce2f

View File

@ -198,6 +198,9 @@ screen.connect_signal("property::geometry", set_wallpaper)
-- Tags -- Tags
-- Define a tag table which hold all screen tags. -- Define a tag table which hold all screen tags.
primary_screen = 1
secondary_screen = awful.screen.count
tags = { tags = {
names = { names = {
'IRC', 'IRC',
@ -570,20 +573,20 @@ awful.rules.rules = {
-- Window positioning -- Window positioning
{ rule = { class = "Firefox" }, { rule = { class = "Firefox" },
properties = { screen = 1, tag = "Net" } }, properties = { screen = primary_screen, tag = "Net" } },
{ rule = { class = "Chromium" }, { rule = { class = "Chromium" },
properties = { screen = 1, tag = "Net" } }, properties = { screen = primary_screen, tag = "Net" } },
{ rule = { class = "Inkscape" }, { rule = { class = "Inkscape" },
properties = { screen = 1, tag = "GFX" } }, properties = { screen = primary_screen, tag = "GFX" } },
{ rule = { class = "Gimp" }, { rule = { class = "Gimp" },
properties = { screen = 1, tag = "GFX" } }, properties = { screen = primary_screen, tag = "GFX" } },
{ rule = { class = "Blender" }, { rule = { class = "Blender" },
properties = { screen = 1, tag = "GFX" } }, properties = { screen = primary_screen, tag = "GFX" } },
{ rule = { class = "Steam" }, { rule = { class = "Steam" },
properties = { screen = 2, tag = "Other" } }, properties = { screen = secondary_screen, tag = "Other" } },
--{ rule = { class = "Steam", name = "Kaverit" }, --{ rule = { class = "Steam", name = "Kaverit" },
{ rule = { class = "Steam", name = "Friends" }, { rule = { class = "Steam", name = "Friends" },
properties = { screen = 2, tag = "Other", width = 200 } }, properties = { screen = secondary_screen, tag = "Other", width = 200 } },
} }
-- }}} -- }}}