-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
83 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"words": [ | ||
"Aire-One", | ||
"capi", | ||
"constructorfct", | ||
"fatalwarnings", | ||
"fullscreen", | ||
"hasitem", | ||
"JohnnyMorganz", | ||
"ldoc", | ||
"luacheck", | ||
"lunarmodules", | ||
"mousebindings", | ||
"staticfct", | ||
"stylua" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- $default-branch | ||
pull_request: | ||
|
||
jobs: | ||
luacheck: | ||
needs: [] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: lunarmodules/luacheck@v1 | ||
|
||
stylua: | ||
needs: [] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: JohnnyMorganz/stylua-action@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
version: v0.20.0 | ||
args: --check . | ||
|
||
ldoc: | ||
needs: [] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: lunarmodules/[email protected] | ||
with: | ||
args: --fatalwarnings . | ||
|
||
spellcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: streetsidesoftware/cspell-action@v6 | ||
with: | ||
incremental_files_only: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
local client_slots = {} | ||
|
||
function client_slots.append_mousebindings(params) | ||
local amouse = require "awful.mouse" | ||
local mouse = require "awful.mouse" | ||
|
||
for _, bindings in pairs(params.mousebindings) do | ||
amouse.append_client_mousebindings(bindings) | ||
mouse.append_client_mousebindings(bindings) | ||
end | ||
end | ||
|
||
function client_slots.append_keybindings(params) | ||
local akeyboard = require "awful.keyboard" | ||
local keyboard = require "awful.keyboard" | ||
|
||
for _, bindings in pairs(params.keybindings) do | ||
akeyboard.append_client_keybindings(bindings) | ||
keyboard.append_client_keybindings(bindings) | ||
end | ||
end | ||
|
||
return client_slots | ||
|
||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
local aslot_slots = {} | ||
local 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" | ||
slots.client = require "awesome-slot.slots.client" | ||
slots.ruled = require "awesome-slot.slots.ruled" | ||
slots.screen = require "awesome-slot.slots.screen" | ||
slots.tag = require "awesome-slot.slots.tag" | ||
|
||
return aslot_slots | ||
|
||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 | ||
return slots |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
local ruled_slots = {} | ||
|
||
function ruled_slots.append_client_rules(params) | ||
local rclient = require "ruled.client" | ||
local client = require "ruled.client" | ||
|
||
for _, rule in pairs(params.rules) do | ||
rclient.append_rule(rule) | ||
client.append_rule(rule) | ||
end | ||
end | ||
|
||
function ruled_slots.append_notification_rules(params) | ||
local rnotification = require "ruled.notification" | ||
local notification = require "ruled.notification" | ||
|
||
for _, rule in pairs(params.rules) do | ||
rnotification.append_rule(rule) | ||
notification.append_rule(rule) | ||
end | ||
end | ||
|
||
return ruled_slots | ||
|
||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
local tag_slots = {} | ||
|
||
function tag_slots.default_layouts(params) | ||
local alayout = require "awful.layout" | ||
local layout = require "awful.layout" | ||
|
||
alayout.append_default_layouts(params.layouts) | ||
layout.append_default_layouts(params.layouts) | ||
end | ||
|
||
return tag_slots | ||
|
||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 |