diff options
| author | William Hua <william@attente.ca> | 2019-01-17 00:34:24 -0500 |
|---|---|---|
| committer | William Hua <william@attente.ca> | 2019-01-17 07:41:10 -0500 |
| commit | 8de5a06883b1b05553e05468178293f2592fab56 (patch) | |
| tree | 4f776b4ef48fc80d83d951dd4b82b42b9b4f439e /swaylock.1.scd | |
| parent | 0c1f193083166ccc56107028bb8b59d7aa767732 (diff) | |
Allow image file paths to contain colons
Colon characters are allowed in file paths, so if an image file named
'foo:bar.png' is passed as an --image argument, it's currently parsed as
image 'bar.png' on output 'foo'.
This fix allows the caller to pass the argument ':foo:bar.png' and treat
an output of '' the same as NULL. This is assuming there will never be
an output named '' however...
Diffstat (limited to 'swaylock.1.scd')
| -rw-r--r-- | swaylock.1.scd | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/swaylock.1.scd b/swaylock.1.scd index 9f18b5b..ef2c87b 100644 --- a/swaylock.1.scd +++ b/swaylock.1.scd @@ -43,9 +43,10 @@ Locks your Wayland session. *-u, --no-unlock-indicator* Disable the unlock indicator. -*-i, --image* [<output>:]<path> +*-i, --image* [[<output>]:]<path> Display the given image, optionally only on the given output. Use -c to set - a background color. + a background color. If the path potentially contains a ':', prefix it with another + ':' to prevent interpreting part of it as <output>. *-L, --disable-caps-lock-text* Disable the Caps Lock Text. |
