Skip to content

Commit

Permalink
Initial commit to add some structure
Browse files Browse the repository at this point in the history
  • Loading branch information
houz committed Dec 10, 2014
1 parent 2c1ad4b commit 16156a3
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*~
.*.swp
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
lua-scripts
===========

the lua scripts in this repository are meant to be used together with darktable. either copy them individually to `~/.config/darktable/lua` (you might have to create that folder) or just copy/symlink the whole repository there. that allows to update all your scripts with a simple call to `git pull`.

to enable one of the scripts you have to add a line like `require "official/hello_world"` which would enable the example script in `official/hello_world.lua`.

in order to have your own scripts added here they have to be under a free license (GPL2+ will definitely work, others can be discussed). scripts in the `official/` subfolder are maintained by the darktable community, those under `contrib/` are meant to have an "owner" who maintains them.
1 change: 1 addition & 0 deletions contrib/README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scripts in this folder are meant to have an "owner" who maintains them.
1 change: 1 addition & 0 deletions official/README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scripts in this folder are maintained by the darktable community.
21 changes: 21 additions & 0 deletions official/hello_world.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--[[
This file is part of darktable,
copyright (c) 2014 Tobias Ellinghaus
darktable is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
darktable is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with darktable. If not, see <http://www.gnu.org/licenses/>.
]]

local dt = require "darktable"

dt.print("hello, world")

0 comments on commit 16156a3

Please sign in to comment.