mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-25 11:18:33 +02:00
uxrvt: put URxvt class into a configuration variable
This commit is contained in:
parent
9420b74c08
commit
92d23f4153
3 changed files with 3 additions and 2 deletions
1
rc.lua
1
rc.lua
|
@ -46,6 +46,7 @@ os.execute("test -d " .. awful.util.getdir("cache") ..
|
||||||
modkey = "Mod4"
|
modkey = "Mod4"
|
||||||
config = {}
|
config = {}
|
||||||
config.terminal = "urxvtcd --perl-lib " .. awful.util.getdir("config") .. "/lib/rxvt"
|
config.terminal = "urxvtcd --perl-lib " .. awful.util.getdir("config") .. "/lib/rxvt"
|
||||||
|
config.termclass = "URxvt"
|
||||||
config.layouts = {
|
config.layouts = {
|
||||||
awful.layout.suit.tile,
|
awful.layout.suit.tile,
|
||||||
awful.layout.suit.tile.left,
|
awful.layout.suit.tile.left,
|
||||||
|
|
|
@ -36,7 +36,7 @@ awful.rules.rules = {
|
||||||
properties = { }, callback = awful.client.setslave },
|
properties = { }, callback = awful.client.setslave },
|
||||||
-- Should not be master
|
-- Should not be master
|
||||||
{ rule_any = { class =
|
{ rule_any = { class =
|
||||||
{ "URxvt",
|
{ config.termclass,
|
||||||
"Transmission-gtk",
|
"Transmission-gtk",
|
||||||
"Keepassx",
|
"Keepassx",
|
||||||
}, instance = { "Download" }},
|
}, instance = { "Download" }},
|
||||||
|
|
|
@ -61,7 +61,7 @@ shifty.config.apps = {
|
||||||
tag = "im",
|
tag = "im",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
match = { "URxvt" },
|
match = { config.termclass },
|
||||||
startup = {
|
startup = {
|
||||||
tag = "xterm"
|
tag = "xterm"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue