WIP: Somewm migration
This commit is contained in:
parent
f5caff6684
commit
ce56320097
17 changed files with 342 additions and 238 deletions
22
rules.lua
22
rules.lua
|
|
@ -1,8 +1,8 @@
|
|||
local awful = require("awful")
|
||||
awful.rules = require("awful.rules")
|
||||
local localconf = require("localconf")
|
||||
|
||||
local beautiful = require("beautiful")
|
||||
local awful = require("awful")
|
||||
local localconf = require("localconf")
|
||||
local ruled = require("ruled")
|
||||
|
||||
local naughty = require("naughty")
|
||||
local binder = require("separable.binder")
|
||||
local log = require("talkative")
|
||||
|
|
@ -11,7 +11,7 @@ local log = require("talkative")
|
|||
local function popup_urgent(client, message)
|
||||
client:connect_signal("property::urgent", function(c)
|
||||
if c.urgent and not c.focus then
|
||||
naughty.notify({ text = message })
|
||||
naughty.notification({ text = message })
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
|
@ -19,12 +19,12 @@ end
|
|||
local function keyboard_layer(num)
|
||||
return function(client)
|
||||
client:connect_signal("focus", function(c)
|
||||
awful.util.spawn("kontroll-launch set-layer --index " .. num)
|
||||
naughty.notify({ text = "kontroll: switching to layer " .. num })
|
||||
awful.spawn("kontroll-launch set-layer --index " .. num)
|
||||
naughty.notification({ text = "kontroll: switching to layer " .. num })
|
||||
end)
|
||||
client:connect_signal("unfocus", function(c)
|
||||
awful.util.spawn("kontroll-launch set-layer --index 0")
|
||||
naughty.notify({ text = "kontroll: switching to base layer" })
|
||||
awful.spawn("kontroll-launch set-layer --index 0")
|
||||
naughty.notification({ text = "kontroll: switching to base layer" })
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
|
@ -41,7 +41,7 @@ function startswith(str, start)
|
|||
return str:sub(1, #start) == start
|
||||
end
|
||||
|
||||
awful.rules.rules = {
|
||||
ruled.client.append_rules({
|
||||
-- All clients will match this rule.
|
||||
{
|
||||
rule = {},
|
||||
|
|
@ -158,4 +158,4 @@ awful.rules.rules = {
|
|||
rule = { class = "zenity" },
|
||||
properties = { ontop = true, floating = true, placement = awful.placement.centered },
|
||||
},
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue