Command Line Arguments#
When starting vimiv form the command line you have the ability to pass a number of different argument to vimiv.
Examples#
In the following we present a few use cases of command line arguments.
Start in library view with the thumbnail grid displayed:
vimiv * --command "enter thumbnail" --command "enter library"
Start in read-only mode. This prevents accidental modification (renaming, moving, editing etc.) of any images:
vimiv --set read_only true
Change WM_CLASS_INSTANCE to identify a vimiv instance:
vimiv --qt-args "--name myVimivInstance"
Print the last selected image to STDOUT when quitting:
vimiv --output "%"
Use vimiv as Rofi for Images to make a selection from candidate images:
mySel=$(echo $myCand | vimiv --input --output "%m" --command "enter thumbnail")
Print debug logs of your amazing plugin you are writing and of the api._mark module which does not behave as you are expecting:
vimiv --debug myAmazingPlugin api._mark
Grab image from the web and open it:
curl https://i.imgur.com/somefile.png | vimiv -
Command Line Arguments#
The general calling structure is:
vimiv [PATH] [--help|-h] [--fullscreen|-f] [--version|-v] [--geometry
WIDTHxHEIGHT|-g WIDTHxHEIGHT] [--temp-basedir] [--config FILE] [--keyfile FILE]
[--set OPTION VALUE|-s OPTION VALUE] [--log-level LEVEL] [--command COMMAND]
[--basedir DIRECTORY|-b DIRECTORY] [--output TEXT|-o TEXT] [--input|-i] [-]
[--debug MODULE] [--qt-args ARGS]
The following is an exhaustive list of all available arguments:
Command |
Description |
---|---|
|
Paths to open |
Command |
Description |
---|---|
|
show this help message and exit |
|
Start fullscreen |
|
Print version information and exit |
|
Set the starting geometry |
|
Use a temporary basedir |
|
Use FILE as local configuration file |
|
Use FILE as keybinding file |
|
Set a temporary setting |
|
Set log level to LEVEL |
|
Run COMMAND on startup, usable multiple times |
|
Directory to use for all storage |
|
Wildcard expanded string to print to standard output upon quit |
|
Read paths to open from standard input |
|
Read binary image to open from standard input |
Command |
Description |
---|---|
|
Force showing debug log messages of MODULE |
|
Arguments to pass to qt directly, use quotes to pass multiple arguments |