mirror of
https://github.com/Raymo111/i3lock-color.git
synced 2024-11-11 13:50:52 -05:00
462 lines
14 KiB
Groff
462 lines
14 KiB
Groff
.de Vb \" Begin verbatim text
|
||
.ft CW
|
||
.nf
|
||
.ne \\$1
|
||
..
|
||
.de Ve \" End verbatim text
|
||
.ft R
|
||
.fi
|
||
..
|
||
|
||
.TH i3lock-color 1 "JANUARY 2012" Linux "User Manuals"
|
||
|
||
.SH NAME
|
||
i3lock-color \- improved screen locker
|
||
|
||
.SH SYNOPSIS
|
||
.B i3lock
|
||
.RB [\|\-v\|]
|
||
.RB [\|\-n\|]
|
||
.RB [\|\-b\|]
|
||
.RB [\|\-i
|
||
.IR image.png \|]
|
||
.RB [\|\-c
|
||
.IR color \|]
|
||
.RB [\|\-t\|]
|
||
.RB [\|\-p
|
||
.IR pointer\|]
|
||
.RB [\|\-u\|]
|
||
.RB [\|\-e\|]
|
||
.RB [\|\-f\|]
|
||
.RB [\|\-m\|]
|
||
|
||
.SH DESCRIPTION
|
||
.B i3lock-color
|
||
is a simple screen locker like slock. After starting it, you will see a white
|
||
screen (you can configure the color/an image). You can return to your screen by
|
||
entering your password.
|
||
|
||
.SH IMPROVEMENTS
|
||
.IP \[bu] 2
|
||
i3lock forks, so you can combine it with an alias to suspend to RAM
|
||
(run "i3lock && echo mem > /sys/power/state" to get a locked screen after waking up your computer from suspend to RAM)
|
||
.IP \[bu]
|
||
You can specify either a background color or a PNG image which will be displayed while your screen is locked.
|
||
.IP \[bu]
|
||
You can specify whether i3lock should bell upon a wrong password.
|
||
.IP \[bu]
|
||
i3lock uses PAM and therefore is compatible with LDAP, etc.
|
||
|
||
.SH OPTIONS
|
||
.TP
|
||
.B \-v, \-\-version
|
||
Display the version of your
|
||
.B i3lock
|
||
|
||
.TP
|
||
.B \-n, \-\-nofork
|
||
Don't fork after starting.
|
||
|
||
.TP
|
||
.B \-b, \-\-beep
|
||
Enable beeping. Be sure to not do this when you are about to annoy other people,
|
||
like when opening your laptop in a boring lecture.
|
||
|
||
.TP
|
||
.B \-u, \-\-no\-unlock\-indicator
|
||
Disable the unlock indicator. i3lock will by default show an unlock indicator
|
||
after pressing keys. This will give feedback for every keypress and it will
|
||
show you the current PAM state (whether your password is currently being
|
||
verified or whether it is wrong).
|
||
|
||
.TP
|
||
.BI \-i\ path \fR,\ \fB\-\-image= path
|
||
Display the given PNG image instead of a blank screen.
|
||
|
||
.TP
|
||
.BI \fB\-\-raw= format
|
||
Read the image given by \-\-image as a raw image instead of PNG. The argument is the image's format
|
||
as <width>x<height>:<pixfmt>. The supported pixel formats are:
|
||
\'native', 'rgb', 'xrgb', 'rgbx', 'bgr', 'xbgr', and 'bgrx'.
|
||
The "native" pixel format expects a pixel as a 32-bit (4-byte) integer in
|
||
the machine's native endianness, with the upper 8 bits unused. Red, green and blue are stored in
|
||
the remaining bits, in that order.
|
||
|
||
.BR Example:
|
||
.Vb 6
|
||
\& --raw=1920x1080:rgb
|
||
.Ve
|
||
You can use ImageMagick’s
|
||
.IR convert(1)
|
||
program to feed raw images into i3lock:
|
||
|
||
.Vb 6
|
||
\& convert wallpaper.jpg RGB:- | i3lock --raw 3840x2160:rgb --image /dev/stdin
|
||
.Ve
|
||
This allows you to load a variety of image formats without i3lock having to
|
||
support each one explicitly.
|
||
You can also use it to resize images to the screen ratio:
|
||
|
||
.Vb 6
|
||
\& convert wallpaper.jpg -resize $(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\1/') RGB:- | i3lock --raw $(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\1/'):rgb --image /dev/stdin
|
||
.Ve
|
||
Note that $(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\1/')
|
||
gets you the current screen dimensions in the wxh (e.g. 1920x1080) format.
|
||
|
||
.TP
|
||
.BI \-c\ rrggbbaa \fR,\ \fB\-\-color= rrggbbaa
|
||
Turn the screen into the given color instead of white. Color must be given in 4-byte
|
||
format: rrggbbaa (i.e. ff0000ff is opaque red).
|
||
Use the last byte for alpha. Setting this below FF (i.e. ff000088) will allow your screen to be shown translucently if you use a compositor (e.g. compton, xcompmgr).
|
||
|
||
.TP
|
||
.B \-t, \-\-tiling
|
||
If an image is specified (via \-i) it will display the image tiled all over the screen
|
||
(with a multi-monitor setup, the image is visible on all screens).
|
||
|
||
.TP
|
||
.B \-C, \-\-centered
|
||
If an image is specified (via \-i) it will display the image centered on the screen
|
||
(with a multi-monitor setup, the image is visible on all screens).
|
||
|
||
.TP
|
||
.BI \-p\ win|default \fR,\ \fB\-\-pointer= win|default
|
||
If you specify "default",
|
||
.B i3lock
|
||
does not hide your mouse pointer. If you specify "win",
|
||
.B i3lock
|
||
displays a hardcoded Windows-Pointer (thus enabling you to mess with your
|
||
friends by using a screenshot of a Windows desktop as a locking-screen).
|
||
|
||
.TP
|
||
.B \-e, \-\-ignore\-empty\-password
|
||
When an empty password is provided by the user, do not validate
|
||
it. Without this option, the empty password will be provided to PAM
|
||
and, if invalid, the user will have to wait a few seconds before
|
||
another try. This can be useful if the XF86ScreenSaver key is used to
|
||
put a laptop to sleep and bounce on resume or if you happen to wake up
|
||
your computer with the enter key.
|
||
|
||
.TP
|
||
.B \-f, \-\-show\-failed\-attempts
|
||
Show the number of failed attempts, if any.
|
||
|
||
.TP
|
||
.B \-\-debug
|
||
Enables debug logging.
|
||
Note, that this will log the password used for authentication to stdout.
|
||
|
||
.SH i3lock-color options
|
||
.TP
|
||
.B \-S=number, \-\-screen=number
|
||
Specifies which display to draw the unlock indicator and clock on. By default, they'll be placed on every screen.
|
||
Note that this number is zero indexed. The ordering is dependent on libxinerama.
|
||
|
||
.TP
|
||
.B \-B=sigma, \-\-blur=sigma
|
||
Captures the screen and blurs it using the given sigma (radius).
|
||
Images may still be overlaid over the blurred screenshot.
|
||
As an alternative to this option, you could specify a translucent background color
|
||
(-c option) with a fully transparent or translucent color, and use a compositor to perform blurring (e.g. compton, picom).
|
||
|
||
.TP
|
||
.B \-\-indicator
|
||
Forces the indicator to always be visible, instead of only showing on activity.
|
||
|
||
.TP
|
||
.B \-\-keylayout mode
|
||
Displays the keylayout. Positionable similar to date, time, and indicator. Modes are as follows:
|
||
.RS
|
||
.RS
|
||
0 - Displays the full string returned by the query, i.e. "English (US)"
|
||
1 - Displays up until the first parenthesis, i.e. "English"
|
||
2 - Displays just the contents of the parenthesis, i.e. "US"
|
||
.RE
|
||
.RE
|
||
|
||
.TP
|
||
.B \-k, \-\-clock, \-\-force\-clock
|
||
Displays the clock. \-\-force\-clock also displays the clock when there's indicator text
|
||
(useful for when the clock is not positioned with the indicator).
|
||
|
||
.TP
|
||
.B \-\-composite
|
||
Some compositors have problems with i3lock trying to render over them, so this argument is disabled by default.
|
||
However, some will work properly with it, so it's been left enabled.
|
||
|
||
.TP
|
||
.B \-\-pass\-media\-keys
|
||
Allow the following keys to be used while the screen is locked by passing them through:
|
||
XF86AudioPlay, XF86AudioPause, XF86AudioStop, XF86AudioPrev, XF86AudioNext, XF86AudioMute, XF86AudioLowerVolume, XF86AudioRaiseVolume.
|
||
|
||
.TP
|
||
.B \-\-pass\-screen\-keys
|
||
Allow the following keys to be used while the screen is locked by passing them through:
|
||
XF86MonBrightnessUp, XF86MonBrightnessDown.
|
||
|
||
.TP
|
||
.B \-\-pass\-power\-keys
|
||
Allow the following keys to be used while the screen is locked by passing them through:
|
||
XF86PowerDown, XF86PowerOff, XF86Sleep.
|
||
|
||
.TP
|
||
.B \-\-insidevercolor=rrggbbaa
|
||
Sets the interior circle color while the password is being verified.
|
||
|
||
.TP
|
||
.B \-\-insidewrongcolor=rrggbbaa
|
||
Sets the interior circle color for during flash for an incorrect password.
|
||
|
||
.TP
|
||
.B \-\-insidecolor=rrggbbaa
|
||
Sets the default "resting" color for the interior circle.
|
||
|
||
.TP
|
||
.B \-\-ringvercolor=rrggbbaa
|
||
Sets the ring color while the password is being verified.
|
||
|
||
.TP
|
||
.B \-\-ringwrongcolor=rrggbbaa
|
||
Sets the ring color during the flash for an incorrect password.
|
||
|
||
.TP
|
||
.B \-\-ringcolor=rrggbbaa
|
||
Sets the default ring color.
|
||
|
||
.TP
|
||
.B \-\-linecolor=rrggbbaa
|
||
Sets the color for the line separating the inside circle, and the outer ring.
|
||
|
||
.TP
|
||
.B \-\-line\-uses\-ring
|
||
Conflicts with \-\-line\-uses\-inside. Overrides \-\-linecolor. The line will match the ring color.
|
||
|
||
.TP
|
||
.B \-\-line\-uses\-inside
|
||
Conflicts with \-\-line\-uses\-ring. Overrides \-\-linecolor; the line will match the inside color.
|
||
|
||
.TP
|
||
.B \-\-keyhlcolor=rrggbbaa
|
||
Sets the color of the ring 'highlight' strokes that appear upon keypress.
|
||
|
||
.TP
|
||
.B \-\-bshlcolor=rrggbbaa
|
||
Sets the color of the ring 'highlight' strokes that appear upon backspace.
|
||
|
||
.TP
|
||
.B \-\-separatorcolor=rrggbbaa
|
||
Sets the color of the 'separtor', which is at both ends of the ring highlights.
|
||
|
||
.TP
|
||
.B \-\-verifcolor=rrggbbaa
|
||
Sets the color of the status text while verifying.
|
||
|
||
.TP
|
||
.B \-\-wrongcolor=rrggbbaa
|
||
Sets the color of the status text when "wrong".
|
||
|
||
.TP
|
||
.B \-\-layoutcolor=rrggbbaa
|
||
Sets the color of the keyboard layout text.
|
||
|
||
.TP
|
||
.B \-\-indpos="x position:y position"
|
||
Sets the position for the unlock indicator. Valid variables include:
|
||
.RS
|
||
.RS
|
||
x - x position of the current display. Corresponds to the leftmost row of pixels on that display.
|
||
y - y position of the current display. Corresponds to the topmost row of pixels on that display.
|
||
w - width of the current display.
|
||
h - height of the current display.
|
||
r - the unlock indicator radius.
|
||
.RE
|
||
.RE
|
||
|
||
.TP
|
||
.B \-\-timecolor=rrggbbaa
|
||
Sets the color of the time in the clock.
|
||
|
||
.TP
|
||
.B \-\-timestr="%H:%M:%S"
|
||
Sets the format used for generating the time string. See strftime(3) for a full list of format specifiers.
|
||
|
||
.TP
|
||
.B \-\-timepos="x position:y position"
|
||
Sets the position for the time string. All the variables from \-\-indpos may be used, in addition to:
|
||
.RS
|
||
.RS
|
||
ix - the x value of the indicator on the current display.
|
||
iy - the y value of the indicator on the current display.
|
||
.RE
|
||
.RE
|
||
|
||
.TP
|
||
.B \-\-time\-align, \-\-date\-align, \-\-layout\-align, \-\-verif\-align, \-\-wrong\-align, \-\-modif\-align, \-\-greeter\-align
|
||
Sets the text alignment of the time, date, keylayout, verification text, wrong text, modifier text and greeter text.
|
||
.RS
|
||
.RS
|
||
0 - centered (default)
|
||
1 - left aligned
|
||
2 - right aligned
|
||
.RE
|
||
.RE
|
||
|
||
.TP
|
||
.B \-\-datecolor=rrggbbaa
|
||
Sets the color of the date in the clock.
|
||
|
||
.TP
|
||
.B \-\-datestr="%A, %m %Y"
|
||
Sets the format used for generating the date string. See strftime(3) for a full list of format specifiers.
|
||
|
||
.TP
|
||
.B \-\-{time, date, layout, verif, wrong, greeter}\-font=sans\-serif
|
||
Sets the font used to render various strings.
|
||
|
||
.TP
|
||
.B \-\-{time, date, layout, verif, wrong, greeter}size=number
|
||
Sets the font size used to render various strings.
|
||
|
||
.TP
|
||
.B \-\-datepos="x position:y position"
|
||
Sets the position for the date string. All the variables from \-\-indpos and \-\-timepos may be used, in addition to:
|
||
.RS
|
||
.RS
|
||
tx - the computed x value of the timestring, for the current display.
|
||
ty - the computed y value of the timestring, for the current display.
|
||
.RE
|
||
.RE
|
||
|
||
.TP
|
||
.B \-\-greetertext="text"
|
||
Sets the greeter text. Defaults to "".
|
||
|
||
.TP
|
||
.B \-\-greetercolor=rrggbbaa
|
||
Sets the color of the greeter text.
|
||
|
||
.TP
|
||
.B \-\-greeterpos="x position:y position"
|
||
Sets the position for the date string. All the variables from \-\-indpos and \-\-timepos may be used.
|
||
|
||
.TP
|
||
.B \-\-refresh\-rate=seconds\-as\-double
|
||
The refresh rate of the indicator, given in seconds. This should automatically align itself, but is somewhat buggy currently.
|
||
Values less than one will work, but may result in poor system performance.
|
||
|
||
.TP
|
||
.B \-\-veriftext="text"
|
||
Sets the string to be shown while verifying the password/input/key/etc. Defaults to "verifying…".
|
||
|
||
.TP
|
||
.B \-\-wrongtext="text"
|
||
Sets the string to be shown upon entering an incorrect password. Defaults to "wrong!".
|
||
|
||
.TP
|
||
.B \-\-noinputtext="text"
|
||
Sets the string to be shown upon pressing backspace without anything to delete. Defaults to "no input".
|
||
|
||
.TP
|
||
.B \-\-locktext="text"
|
||
Sets the string to be shown while acquiring pointer and keyboard focus. Defaults to "locking…".
|
||
|
||
.TP
|
||
.B \-\-lockfailedtext="text"
|
||
Sets the string to be shown after failing to acquire pointer and keyboard focus. Defaults to "lock failed!".
|
||
|
||
.TP
|
||
.B \-\-radius
|
||
The radius of the circle. Defaults to 90.
|
||
|
||
.TP
|
||
.B \-\-ring\-width
|
||
The width of the ring unlock indicator. Defaults to 7.0.
|
||
|
||
.TP
|
||
.B \-\-bar\-indicator
|
||
Replaces the usual ring indicator with a bar indicator, with a variety of options.
|
||
|
||
.TP
|
||
.B \-\-redraw\-thread
|
||
Starts a separate thread for redrawing the screen. Potentially worse for security, but makes the bar indicator still do
|
||
its usual periodic redraws when PAM is authenticating.
|
||
|
||
.TP
|
||
.B \-\-bar\-direction={0, 1, 2}
|
||
Sets the direction the bars grow in. 0 is the default (downwards, or rightwards, depending on the bar orientation). 1 is the reverse, and 2 is both.
|
||
|
||
.TP
|
||
.B \-\-bar\-width=15
|
||
Sets the width of the minibars in the bar.
|
||
|
||
.TP
|
||
.B \-\-bar\-orientation={vertical,horizontal}
|
||
Sets whether the bar is vertically or horizontally oriented. Defaults to horizontal.
|
||
|
||
.TP
|
||
.B \-\-bar\-step
|
||
Sets the step that each bar decreases by when a key is pressed. A random bar is set to its max height,
|
||
and then each neighbor is set to (height - step*distance).
|
||
|
||
.TP
|
||
.B \-\-bar\-max\-height
|
||
The maximum height a bar can get to. When a key is pressed, a random bar is set to this value,
|
||
and then its neighbors are set to its height, minus the step value.
|
||
|
||
.TP
|
||
.B \-\-bar\-base\-width
|
||
The thickness of the "base" bar that all the bars originate from.
|
||
This bar also takes on the ring verif and wrong colors to give authentication feedback.
|
||
|
||
.TP
|
||
.B \-\-bar\-color
|
||
Sets the default color of the bar base.
|
||
|
||
.TP
|
||
.B \-\-bar\-periodic\-step
|
||
The value by which the bars decrease each time the screen is redrawn.
|
||
|
||
.TP
|
||
.B \-\-bar\-position
|
||
Works similarly to the time/date/indicator expressions. If the bar is horizontal, this sets the vertical offset from the top edge.
|
||
If it's vertically oriented, this sets the horizontal offset from the left edge.
|
||
|
||
.TP
|
||
.B \-\-no\-verify
|
||
Do not verify the password entered by the user and unlock immediately.
|
||
.B Use only for quickly testing new configurations and remember to remove to actually lock your screen!
|
||
|
||
.SH DPMS
|
||
The \-d (\-\-dpms) option was removed from i3lock in version 2.8. There were
|
||
plenty of use-cases that were not properly addressed, and plenty of bugs
|
||
surrounding that feature. While features are not normally removed from i3 and
|
||
its tools, we felt the need to make an exception in this case.
|
||
Users who wish to explicitly enable DPMS only when their screen is locked can
|
||
use a wrapper script around i3lock like the following:
|
||
.Vb 6
|
||
\& #!/bin/sh
|
||
\& revert() {
|
||
\& xset dpms 0 0 0
|
||
\& }
|
||
\& trap revert HUP INT TERM
|
||
\& xset +dpms dpms 5 5 5
|
||
\& i3lock -n
|
||
\& revert
|
||
.Ve
|
||
The \-I (\-\-inactivity\-timeout=seconds) was removed because it only makes sense with DPMS.
|
||
|
||
.SH SEE ALSO
|
||
.IR xautolock(1)
|
||
\- use i3lock as your screen saver
|
||
|
||
.IR convert(1)
|
||
\- feed a wide variety of image formats to i3lock
|
||
|
||
.SH AUTHOR
|
||
Michael Stapelberg <michael+i3lock at stapelberg dot de>
|
||
|
||
Jan-Erik Rediger <badboy at archlinux.us>
|
||
|
||
Pandora <pandora at techfo dot xyz>
|
||
|
||
Raymond Li <i3lock-color at raymond.li>
|