Skip to content

Commit 16156a3

Browse files
committed
Initial commit to add some structure
1 parent 2c1ad4b commit 16156a3

File tree

5 files changed

+31
-0
lines changed

5 files changed

+31
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*~
2+
.*.swp

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
lua-scripts
22
===========
3+
4+
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`.
5+
6+
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`.
7+
8+
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.

contrib/README

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
scripts in this folder are meant to have an "owner" who maintains them.

official/README

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
scripts in this folder are maintained by the darktable community.

official/hello_world.lua

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
--[[
2+
This file is part of darktable,
3+
copyright (c) 2014 Tobias Ellinghaus
4+
5+
darktable is free software: you can redistribute it and/or modify
6+
it under the terms of the GNU General Public License as published by
7+
the Free Software Foundation, either version 3 of the License, or
8+
(at your option) any later version.
9+
10+
darktable is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
GNU General Public License for more details.
14+
15+
You should have received a copy of the GNU General Public License
16+
along with darktable. If not, see <http://www.gnu.org/licenses/>.
17+
]]
18+
19+
local dt = require "darktable"
20+
21+
dt.print("hello, world")

0 commit comments

Comments
 (0)