menyoki.conf5
Menyoki configuration file
Usage
$MENYOKI_CONFIG, $HOME/.config/menyoki.conf, $HOME/.config/menyoki/menyoki.conf, $HOME/.config/menyoki/config
Overview
It’s possible to override the default command line arguments with a configuration file. It can be specified via --config option or $MENYOKI_CONFIG environment variable. Also, it can be placed to a location where menyoki looks for as default.
General
Options that belong to the [general] section.
|
Increase logging verbosity |
|---|---|
|
Do not show output |
color <HEX>
|
Set the main color [default: 3AA431] |
Record
Options that belong to the [record] section.
|
Record the root window |
|---|---|
|
Record the focused window |
|
Select the window to record |
|
Record the parent of the window |
|
Record with the alpha channel |
|
Disable the action keys while recording |
|
Select the window with mouse click |
action-keys <KEYS>
|
Set the action keys [default: LAlt-S,LAlt-Enter] |
cancel-keys <KEYS>
|
Set the cancel keys [default: LControl-D,Escape] |
border <BORDER>
|
Set the border width [default: 1] |
padding <T:R:B:L>
|
Set the record area padding |
size <WxH>
|
Set the record area size |
duration <S>
|
Set the duration for recording [default: ∞] |
countdown <S>
|
Set the countdown before recording [default: 3] |
timeout <S>
|
Set the timeout for window selection [default: 300] |
interval <MS>
|
Set the refresh interval for window selection [default: 10] |
font <FONT>
|
Set the font to use for window selection |
monitor <NUM>
|
Set the monitor to record as root window |
|
Set the command to run |
Split
Options that belong to the [split] section.
dir <DIRECTORY>
|
Set the output directory |
|---|---|
|
Set the animation file |
Make
Options that belong to the [make] section.
|
Use frames in the order given |
|---|---|
fps <FPS>
|
Set the FPS [default: 20] |
quality <QUALITY>
|
Set the frame quality (1-100) [default: 75] |
repeat <REPEAT>
|
Set the number of repetitions [default: ∞] |
dir <DIRECTORY>
|
Set the directory to read frames |
format <FORMAT>
|
Set the animation format [default: gif] [possible values: gif, apng] |
Capture
Options that belong to the [capture] section.
|
Capture the root window |
|---|---|
|
Capture the focused window |
|
Select the window to capture |
|
Capture the parent of the window |
|
Capture with the alpha channel |
|
Select the window with mouse click |
action-keys <KEYS>
|
Set the action keys [default: LAlt-S,LAlt-Enter] |
cancel-keys <KEYS>
|
Set the cancel keys [default: LControl-D,Escape] |
border <BORDER>
|
Set the border width [default: 1] |
padding <T:R:B:L>
|
Set the capture area padding |
size <WxH>
|
Set the capture area size |
countdown <S>
|
Set the countdown before capturing [default: 0] |
timeout <S>
|
Set the timeout for window selection [default: 300] |
interval <MS>
|
Set the refresh interval for window selection [default: 10] |
font <FONT>
|
Set the font to use for window selection |
monitor <NUM>
|
Set the monitor to capture as root window |
|
Set the command to run |
Edit
Options that belong to the [edit] section.
convert-
Convert image using the given encoder
grayscale-
Convert image to grayscale
invert-
Invert the colors of the image
- crop <T:R:B:L>
-
Apply padding to crop the image
- resize <WxH>
-
Resize the image without keeping the aspect ratio
- ratio <RATIO>
-
Resize the image proportionally by aspect ratio [default: 1.0]
- rotate <ROTATE>
-
Rotate the image (clockwise) [possible values: 90, 180, 270]
- flip <FLIP>
-
Flip the image [possible values: horizontal, vertical]
- blur <SIGMA>
-
Blur the image [default: 0.0]
- hue <HUE>
-
Adjust the hue of the image [default: ±0]
- contrast <CONTRAST>
-
Adjust the contrast of the image [default: ±0.0]
- brightness <BRIGHTNESS>
-
Adjust the brightness of the image [default: ±0]
- filter <FILTER>
-
Set the sampling filter for scaling [default: lanczos3] [possible values: nearest, triangle, catmull-rom, gaussian, lanczos3]
file-
Set the input file
Analyze
Options that belong to the [analyze] section.
|
Use Unix timestamp for report dates |
|---|---|
time-zone <TIMEZONE>
|
Set the time zone of the report [default: utc] [possible values: utc, local] |
|
Set the image file |
View
Options that belong to the [view] section.
|
Display transparent image with transparent background |
|---|---|
|
Set the image file |
Save
Options that belong to the [save] section.
|
Always save the file with an extension |
|---|---|
|
Add Unix timestamp to the file name |
date <FORMAT>
|
Add formatted date/time to the file name [default: %Y%m%dT%H%M%S] |
|
Set the output file |
Gif
Options that belong to the [gif] section.
|
Use the gifski encoder |
|---|---|
|
Encode 3 times faster (gifski) |
fps <FPS>
|
Set the FPS [default: 20] |
quality <QUALITY>
|
Set the frame quality (1-100) [default: 75] |
repeat <REPEAT>
|
Set the number of repetitions [default: ∞] |
speed <SPEED>
|
Set the animation speed [default: 1.0] |
cut-beginning <S>
|
Cut the beginning of the animation [default: 0.0] |
cut-end <S>
|
Cut the end of the anim [default: 0.0] |
Apng
Options that belong to the [apng] section.
fps <FPS>
|
Set the FPS [default: 20] |
|---|---|
repeat <REPEAT>
|
Set the number of repetitions [default: ∞] |
speed <SPEED>
|
Set the animation speed [default: 1.0] |
cut-beginning <S>
|
Cut the beginning of the animation [default: 0.0] |
cut-end <S>
|
Cut the end of the anim [default: 0.0] |
PNG
Options that belong to the [png] section.
- compression <COMPRESSION>
-
Set the compression level [default: fast] [possible values: default, fast, best]
- filter <FILTER>
-
Set the filter algorithm [default: sub] [possible values: none, sub, up, avg, paeth]
JPG
Options that belong to the [jpg] section.
- quality <QUALITY>
-
Set the image quality (1-100) [default: 90]
Webp
Options that belong to the [webp] section.
quality <QUALITY>
|
Set the lossy encoding quality (1-100) [default: 80] |
|---|---|
|
Use lossless encoding |
PNM
Options that belong to the [pnm] section.
- format <FORMAT>
-
Set the PNM format [default: pixmap] [possible values: bitmap, graymap, pixmap, arbitrary]
- encoding <ENCODING>
-
Set the encoding for storing the samples [default: binary] [possible values: binary, ascii]
Environment
Corresponding environment variables can be set for overriding the command line flags and options. The general prototype of the variables that menyoki checks are the following:
MENYOKI_{SECTION}_{ARGUMENT}=value
Additionally, MENYOKI_WINDOW_SYSTEM can be set to x11 or wayland for overriding the window system that is otherwise detected from the presence of WAYLAND_DISPLAY.
Examples
| Command | Environment Variables |
menyoki --quiet | MENYOKI_GENERAL_QUIET=true |
menyoki record gif --fps 10 save --timestamp | MENYOKI_GIF_FPS=10 MENYOKI_SAVE_TIMESTAMP=true |
menyoki capture --size 200x300 jpg --quality 100 | MENYOKI_CAPTURE_SIZE=200x300 MENYOKI_JPG_QUALITY=100 |
menyoki edit test.png --ratio 2.0 --filter triangle | MENYOKI_EDIT_RATIO=2.0 MENYOKI_EDIT_FILTER=triangle |
menyoki split test.gif --dir frames/ pnm --format graymap | MENYOKI_SPLIT_DIR=frames/ MENYOKI_PNM_FORMAT=graymap |
menyoki analyze test.png --timestamp save --date %H%M%S | MENYOKI_ANALYZE_TIMESTAMP=true MENYOKI_SAVE_DATE=%H%M%S |
menyoki view test.png --transparent | MENYOKI_VIEW_TRANSPARENT=true |