Some rules
This commit is contained in:
parent
4d38d2cff5
commit
758dd8348d
23
rules.lua
23
rules.lua
|
@ -60,13 +60,20 @@ local function setup(self)
|
||||||
}},
|
}},
|
||||||
properties = { floating = true, size_hints_honor = true }
|
properties = { floating = true, size_hints_honor = true }
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
rule = { class = "Firefox", instance = "Navigator" },
|
rule = { class = "Firefox", instance = "Navigator" },
|
||||||
properties = {
|
properties = {
|
||||||
tag = tags[rule_screen][2],
|
tag = tags[rule_screen][2],
|
||||||
floating = false, minimized = false
|
floating = false, minimized = false
|
||||||
}
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
rule = { class = "Whatsapp", instance = "Navigator" },
|
||||||
|
properties = {
|
||||||
|
tag = tags[rule_screen][3],
|
||||||
|
floating = false, minimized = false
|
||||||
|
},
|
||||||
|
callback = awful.client.setslave
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
rule_any = { class = {"Pidgin"}, instance = {"Weechat"} },
|
rule_any = { class = {"Pidgin"}, instance = {"Weechat"} },
|
||||||
|
@ -92,10 +99,14 @@ local function setup(self)
|
||||||
properties = {
|
properties = {
|
||||||
tag = tags[rule_screen][3],
|
tag = tags[rule_screen][3],
|
||||||
},
|
},
|
||||||
callback = function(c)
|
callback = awful.client.setslave
|
||||||
awful.client.setslave(c)
|
},
|
||||||
callback = popup_urgent("new chat message")(c)
|
{
|
||||||
end
|
rule = { class = "Telegram" },
|
||||||
|
properties = {
|
||||||
|
tag = tags[rule_screen][3],
|
||||||
|
},
|
||||||
|
callback = awful.client.setslave
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
rule = { class = "Steam", name = "Steam" },
|
rule = { class = "Steam", name = "Steam" },
|
||||||
|
|
|
@ -230,7 +230,7 @@ widgets.add.battery = batterywidget
|
||||||
local function wifiwidget(name, parent, interface) --{{{
|
local function wifiwidget(name, parent, interface) --{{{
|
||||||
wlist[parent.screen][name] = wibox.widget.textbox()
|
wlist[parent.screen][name] = wibox.widget.textbox()
|
||||||
vicious.register(wlist[parent.screen][name], vicious.widgets.wifi,
|
vicious.register(wlist[parent.screen][name], vicious.widgets.wifi,
|
||||||
"WLAN ${ssid} @ ${sign}, Q:${link}/70", 31, interface)
|
"WLAN ${ssid} @ ${sign}dBm, Q:${link}/70", 31, interface)
|
||||||
parent.layout:add(wlist[parent.screen][name])
|
parent.layout:add(wlist[parent.screen][name])
|
||||||
end --}}}
|
end --}}}
|
||||||
widgets.add.wifi = wifiwidget
|
widgets.add.wifi = wifiwidget
|
||||||
|
|
Loading…
Reference in a new issue