File tree 6 files changed +60
-38
lines changed
6 files changed +60
-38
lines changed Original file line number Diff line number Diff line change 2
2
"$schema" : " https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json" ,
3
3
"version" : " 0.2" ,
4
4
"useGitignore" : true ,
5
- "ignorePaths" : [" .git" ],
5
+ "ignorePaths" : [
6
+ " .git"
7
+ ],
6
8
"enableGlobDot" : true ,
7
9
"words" : [
8
10
" Aire-One" ,
14
16
" dryrun" ,
15
17
" fatalwarnings" ,
16
18
" fullscreen" ,
19
+ " halign" ,
17
20
" hasitem" ,
21
+ " imagebox" ,
18
22
" JohnnyMorganz" ,
19
23
" keygrabber" ,
20
24
" ldoc" ,
30
34
" rockspec" ,
31
35
" rockspecs" ,
32
36
" staticfct" ,
33
- " stylua"
37
+ " stylua" ,
38
+ " wibox"
34
39
]
35
40
}
Original file line number Diff line number Diff line change @@ -16,3 +16,15 @@ package.loaded["ruled.notification"] = {}
16
16
package.loaded [" awful.keyboard" ] = {
17
17
append_client_keybindings = function () end ,
18
18
}
19
+
20
+ package.loaded [" awful.mouse" ] = {}
21
+
22
+ package.loaded [" beautiful" ] = {}
23
+
24
+ package.loaded [" wibox.widget.imagebox" ] = {}
25
+
26
+ package.loaded [" wibox.container.tile" ] = {}
27
+
28
+ package.loaded [" awful.wallpaper" ] = {}
29
+
30
+ package.loaded [" awful.layout" ] = {}
Original file line number Diff line number Diff line change
1
+ local keyboard = require " awful.keyboard"
2
+ local mouse = require " awful.mouse"
3
+
1
4
local client_slots = {}
2
5
3
6
function client_slots .append_mousebindings (params )
4
- local mouse = require " awful.mouse"
5
-
6
- for _ , bindings in pairs (params .mousebindings ) do
7
- mouse .append_client_mousebindings (bindings )
7
+ return function ()
8
+ mouse .append_client_mousebindings (params .mousebindings )
8
9
end
9
10
end
10
11
11
12
function client_slots .append_keybindings (params )
12
- local keyboard = require " awful.keyboard"
13
-
14
- for _ , bindings in pairs (params .keybindings ) do
15
- keyboard .append_client_keybindings (bindings )
13
+ return function ()
14
+ keyboard .append_client_keybindings (params .keybindings )
16
15
end
17
16
end
18
17
Original file line number Diff line number Diff line change
1
+ local client = require " ruled.client"
2
+ local notification = require " ruled.notification"
3
+
1
4
local ruled_slots = {}
2
5
3
6
function ruled_slots .append_client_rules (params )
4
- local client = require " ruled.client"
5
-
6
- for _ , rule in pairs (params .rules ) do
7
- client .append_rule (rule )
7
+ return function ()
8
+ client .append_rules (params .rules )
8
9
end
9
10
end
10
11
11
12
function ruled_slots .append_notification_rules (params )
12
- local notification = require " ruled.notification"
13
-
14
- for _ , rule in pairs (params .rules ) do
15
- notification .append_rule (rule )
13
+ return function ()
14
+ notification .append_rules (params .rules )
16
15
end
17
16
end
18
17
Original file line number Diff line number Diff line change 1
- local screen_slots = {}
2
-
3
- function screen_slots .wallpaper (screen , params )
4
- local beautiful = require " beautiful"
5
- local wallpaper = require " gears.wallpaper"
6
-
7
- params = params or {
8
- wallpaper = beautiful .wallpaper ,
9
- }
1
+ local beautiful = require " beautiful"
2
+ local imagebox = require " wibox.widget.imagebox"
3
+ local tile = require " wibox.container.tile"
4
+ local wallpaper = require " awful.wallpaper"
10
5
11
- local w = params .wallpaper
12
-
13
- if w then
14
- -- If wallpaper is a function, call it with the screen
15
- if type (w ) == " function" then
16
- w = w (screen )
17
- end
6
+ local screen_slots = {}
18
7
19
- wallpaper .maximized (w , screen , true )
8
+ function screen_slots .wallpaper (params )
9
+ return function (screen )
10
+ wallpaper {
11
+ screen = screen ,
12
+ widget = {
13
+ {
14
+ image = params .wallpaper or beautiful .wallpaper ,
15
+ upscale = true ,
16
+ downscale = true ,
17
+ widget = imagebox ,
18
+ },
19
+ valign = " center" ,
20
+ halign = " center" ,
21
+ tiled = false ,
22
+ widget = tile ,
23
+ },
24
+ }
20
25
end
21
26
end
22
27
Original file line number Diff line number Diff line change
1
+ local layout = require " awful.layout"
2
+
1
3
local tag_slots = {}
2
4
3
5
function tag_slots .default_layouts (params )
4
- local layout = require " awful.layout "
5
-
6
- layout . append_default_layouts ( params . layouts )
6
+ return function ()
7
+ layout . append_default_layouts ( params . layouts )
8
+ end
7
9
end
8
10
9
11
return tag_slots
You can’t perform that action at this time.
0 commit comments