Compare commits

..

No commits in common. "08102153b1556b0c158c04cebb4a8fa9832b60af" and "d0dda9399e25a04887699878060ef86b5b58530d" have entirely different histories.

7 changed files with 38 additions and 64 deletions

View File

@ -2,9 +2,7 @@
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"version": "0.2", "version": "0.2",
"useGitignore": true, "useGitignore": true,
"ignorePaths": [ "ignorePaths": [".git"],
".git"
],
"enableGlobDot": true, "enableGlobDot": true,
"words": [ "words": [
"Aire-One", "Aire-One",
@ -16,9 +14,7 @@
"dryrun", "dryrun",
"fatalwarnings", "fatalwarnings",
"fullscreen", "fullscreen",
"halign",
"hasitem", "hasitem",
"imagebox",
"JohnnyMorganz", "JohnnyMorganz",
"keygrabber", "keygrabber",
"ldoc", "ldoc",
@ -34,7 +30,6 @@
"rockspec", "rockspec",
"rockspecs", "rockspecs",
"staticfct", "staticfct",
"stylua", "stylua"
"wibox"
] ]
} }

View File

@ -19,10 +19,6 @@ description = {
}, },
} }
dependencies = {
"lua >= 5.1, < 5.5",
}
build = { build = {
type = "builtin", type = "builtin",
modules = { modules = {

View File

@ -16,15 +16,3 @@ package.loaded["ruled.notification"] = {}
package.loaded["awful.keyboard"] = { package.loaded["awful.keyboard"] = {
append_client_keybindings = function() end, append_client_keybindings = function() end,
} }
package.loaded["awful.mouse"] = {}
package.loaded["beautiful"] = {}
package.loaded["wibox.widget.imagebox"] = {}
package.loaded["wibox.container.tile"] = {}
package.loaded["awful.wallpaper"] = {}
package.loaded["awful.layout"] = {}

View File

@ -1,17 +1,18 @@
local keyboard = require "awful.keyboard"
local mouse = require "awful.mouse"
local client_slots = {} local client_slots = {}
function client_slots.append_mousebindings(params) function client_slots.append_mousebindings(params)
return function() local mouse = require "awful.mouse"
mouse.append_client_mousebindings(params.mousebindings)
for _, bindings in pairs(params.mousebindings) do
mouse.append_client_mousebindings(bindings)
end end
end end
function client_slots.append_keybindings(params) function client_slots.append_keybindings(params)
return function() local keyboard = require "awful.keyboard"
keyboard.append_client_keybindings(params.keybindings)
for _, bindings in pairs(params.keybindings) do
keyboard.append_client_keybindings(bindings)
end end
end end

View File

@ -1,17 +1,18 @@
local client = require "ruled.client"
local notification = require "ruled.notification"
local ruled_slots = {} local ruled_slots = {}
function ruled_slots.append_client_rules(params) function ruled_slots.append_client_rules(params)
return function() local client = require "ruled.client"
client.append_rules(params.rules)
for _, rule in pairs(params.rules) do
client.append_rule(rule)
end end
end end
function ruled_slots.append_notification_rules(params) function ruled_slots.append_notification_rules(params)
return function() local notification = require "ruled.notification"
notification.append_rules(params.rules)
for _, rule in pairs(params.rules) do
notification.append_rule(rule)
end end
end end

View File

@ -1,27 +1,22 @@
local beautiful = require "beautiful"
local imagebox = require "wibox.widget.imagebox"
local tile = require "wibox.container.tile"
local wallpaper = require "awful.wallpaper"
local screen_slots = {} local screen_slots = {}
function screen_slots.wallpaper(params) function screen_slots.wallpaper(screen, params)
return function(screen) local beautiful = require "beautiful"
wallpaper { local wallpaper = require "gears.wallpaper"
screen = screen,
widget = { params = params or {
{ wallpaper = beautiful.wallpaper,
image = params.wallpaper or beautiful.wallpaper,
upscale = true,
downscale = true,
widget = imagebox,
},
valign = "center",
halign = "center",
tiled = false,
widget = tile,
},
} }
local w = params.wallpaper
if w then
-- If wallpaper is a function, call it with the screen
if type(w) == "function" then
w = w(screen)
end
wallpaper.maximized(w, screen, true)
end end
end end

View File

@ -1,11 +1,9 @@
local layout = require "awful.layout"
local tag_slots = {} local tag_slots = {}
function tag_slots.default_layouts(params) function tag_slots.default_layouts(params)
return function() local layout = require "awful.layout"
layout.append_default_layouts(params.layouts) layout.append_default_layouts(params.layouts)
end end
end
return tag_slots return tag_slots