aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-11 15:22:26 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-11 15:22:26 +0100
commiteb53e8f87133640e891719ac9974b82869105f06 (patch)
tree1086af2dfeccd47c313ea8994bc7e468750c9d76 /src
parentpng conversion is no longer done in a separate process. (diff)
downloadscrotty-eb53e8f87133640e891719ac9974b82869105f06.tar.gz
scrotty-eb53e8f87133640e891719ac9974b82869105f06.tar.bz2
scrotty-eb53e8f87133640e891719ac9974b82869105f06.tar.xz
add shell tab-completion + fix translation
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'src')
-rw-r--r--src/scrotty.auto-completion23
-rw-r--r--src/scrotty.sv.auto-completion23
2 files changed, 46 insertions, 0 deletions
diff --git a/src/scrotty.auto-completion b/src/scrotty.auto-completion
new file mode 100644
index 0000000..8e9e91f
--- /dev/null
+++ b/src/scrotty.auto-completion
@@ -0,0 +1,23 @@
+((value command scrotty)
+ (default (arg FILENAME-PATTERN) (files -0) (suggest filename)
+ (desc 'Pattern for the filenames of saved images.'))
+
+ (unargumented (options -h --help) (complete --version)
+ (desc 'Print usage information.'))
+
+ (unargumented (options -v --version) (complete --version)
+ (desc 'Print program name and version.'))
+
+ (unargumented (options -c --copyright) (complete --copyright)
+ (desc 'Print copyright information.'))
+
+ (unargumented (options -r --raw) (complete --raw)
+ (desc 'Save in PNM rather than in PNG.'))
+
+ (argumented (options -e --exec) (complete --exec) (arg COMMAND) (files -0)
+ (desc 'Command to run for each saved image.'))
+
+ (suggestion filename (verbatim '%Y-%m-%d_%H:%M:%S_$wx$h.$i.png'
+ '%Y-%m-%d_%H:%M:%S.$i.png'))
+)
+
diff --git a/src/scrotty.sv.auto-completion b/src/scrotty.sv.auto-completion
new file mode 100644
index 0000000..24bd201
--- /dev/null
+++ b/src/scrotty.sv.auto-completion
@@ -0,0 +1,23 @@
+((value command scrotty)
+ (default (arg FILNAMNSMÖNSTER) (files -0) (suggest filename)
+ (desc 'Filnamnsmönster för sparade bilder.'))
+
+ (unargumented (options -h --help) (complete --version)
+ (desc 'Skriv ut burksanvisningar.'))
+
+ (unargumented (options -v --version) (complete --version)
+ (desc 'Skriv ut programmets namn och version.'))
+
+ (unargumented (options -c --copyright) (complete --copyright)
+ (desc 'Skriv ut upphovsrättsinformation.'))
+
+ (unargumented (options -r --raw) (complete --raw)
+ (desc 'Spara som PNM-bild snarare än som PNG-bild.'))
+
+ (argumented (options -e --exec) (complete --exec) (arg KOMMANDO) (files -0)
+ (desc 'Kör ett Kommando för varje sparad bild.'))
+
+ (suggestion filename (verbatim '%Y-%m-%d_%H:%M:%S_$wx$h.$i.png'
+ '%Y-%m-%d_%H:%M:%S.$i.png'))
+)
+