parent
cf38140254
commit
61cbed0c52
|
@ -0,0 +1,12 @@
|
|||
# EditorConfig is awesome: https://EditorConfig.org
|
||||
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
2
init.lua
2
init.lua
|
@ -191,3 +191,5 @@ function awesome_slot.mt:__call(params) -- luacheck: ignore unused argument self
|
|||
end
|
||||
|
||||
return setmetatable(awesome_slot, awesome_slot.mt)
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -1,19 +1,21 @@
|
|||
local client_slots = {}
|
||||
|
||||
function client_slots.append_mousebindings (params)
|
||||
local amouse = require 'awful.mouse'
|
||||
function client_slots.append_mousebindings(params)
|
||||
local amouse = require "awful.mouse"
|
||||
|
||||
for _,bindings in pairs(params.mousebindings) do
|
||||
for _, bindings in pairs(params.mousebindings) do
|
||||
amouse.append_client_mousebindings(bindings)
|
||||
end
|
||||
end
|
||||
|
||||
function client_slots.append_keybindings (params)
|
||||
local akeyboard = require 'awful.keyboard'
|
||||
function client_slots.append_keybindings(params)
|
||||
local akeyboard = require "awful.keyboard"
|
||||
|
||||
for _,bindings in pairs(params.keybindings) do
|
||||
for _, bindings in pairs(params.keybindings) do
|
||||
akeyboard.append_client_keybindings(bindings)
|
||||
end
|
||||
end
|
||||
|
||||
return client_slots
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
local aslot_slots = {}
|
||||
|
||||
aslot_slots.client = require 'awesome-slot.slots.client'
|
||||
aslot_slots.ruled = require 'awesome-slot.slots.ruled'
|
||||
aslot_slots.screen = require 'awesome-slot.slots.screen'
|
||||
aslot_slots.tag = require 'awesome-slot.slots.tag'
|
||||
aslot_slots.client = require "awesome-slot.slots.client"
|
||||
aslot_slots.ruled = require "awesome-slot.slots.ruled"
|
||||
aslot_slots.screen = require "awesome-slot.slots.screen"
|
||||
aslot_slots.tag = require "awesome-slot.slots.tag"
|
||||
|
||||
return aslot_slots
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -1,19 +1,21 @@
|
|||
local ruled_slots = {}
|
||||
|
||||
function ruled_slots.append_client_rules (params)
|
||||
local rclient = require 'ruled.client'
|
||||
function ruled_slots.append_client_rules(params)
|
||||
local rclient = require "ruled.client"
|
||||
|
||||
for _,rule in pairs(params.rules) do
|
||||
for _, rule in pairs(params.rules) do
|
||||
rclient.append_rule(rule)
|
||||
end
|
||||
end
|
||||
|
||||
function ruled_slots.append_notification_rules (params)
|
||||
local rnotification = require 'ruled.notification'
|
||||
function ruled_slots.append_notification_rules(params)
|
||||
local rnotification = require "ruled.notification"
|
||||
|
||||
for _,rule in pairs(params.rules) do
|
||||
for _, rule in pairs(params.rules) do
|
||||
rnotification.append_rule(rule)
|
||||
end
|
||||
end
|
||||
|
||||
return ruled_slots
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
local screen_slots = {}
|
||||
|
||||
function screen_slots.wallpaper (screen, params)
|
||||
local beautiful = require 'beautiful'
|
||||
local gwallpaper = require 'gears.wallpaper'
|
||||
function screen_slots.wallpaper(screen, params)
|
||||
local beautiful = require "beautiful"
|
||||
local gwallpaper = require "gears.wallpaper"
|
||||
|
||||
params = params or {
|
||||
wallpaper = beautiful.wallpaper
|
||||
wallpaper = beautiful.wallpaper,
|
||||
}
|
||||
|
||||
local wallpaper = params.wallpaper
|
||||
|
||||
if wallpaper then
|
||||
-- If wallpaper is a function, call it with the screen
|
||||
if type(wallpaper) == 'function' then
|
||||
if type(wallpaper) == "function" then
|
||||
wallpaper = wallpaper(screen)
|
||||
end
|
||||
|
||||
|
@ -21,3 +21,5 @@ function screen_slots.wallpaper (screen, params)
|
|||
end
|
||||
|
||||
return screen_slots
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
local tag_slots = {}
|
||||
|
||||
function tag_slots.default_layouts (params)
|
||||
local alayout = require 'awful.layout'
|
||||
function tag_slots.default_layouts(params)
|
||||
local alayout = require "awful.layout"
|
||||
|
||||
alayout.append_default_layouts(params.layouts)
|
||||
end
|
||||
|
||||
return tag_slots
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
column_width = 80
|
||||
line_endings = "Unix"
|
||||
indent_type = "Spaces"
|
||||
indent_width = 4
|
||||
quote_style = "AutoPreferDouble"
|
||||
no_call_parentheses = true
|
Loading…
Reference in New Issue