-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from marcelohdez/manpages
Add a manpage
- Loading branch information
Showing
2 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
DIM(1) | ||
|
||
# NAME | ||
|
||
dim - A Wayland screen dimmer. | ||
|
||
# USAGE | ||
|
||
dim [OPTIONS] | ||
|
||
# DESCRIPTION | ||
|
||
dim requires a Wayland compositor with suport for the single pixel buffer | ||
protocol, e.g. Sway 1.8+, river, Hyprland. | ||
|
||
Upon running, dim will create a black overlay with the given alpha (see | ||
OPTIONS) and wait for the given duration (see OPTIONS). If any mouse, touch or | ||
keyboard input is detected, an error will be thrown. Otherwise, when the | ||
duration is reached without input, dim will quit successfully, allowing you to | ||
chain commands. For example, if using `swayidle` you may set: | ||
|
||
``` | ||
timeout 270 'dim && swaylock' | ||
``` | ||
|
||
Making it so at 270 seconds, or 5 minutes, dim is run, and if no input is | ||
detected after its timeout, swaylock will be run, locking the screen. | ||
|
||
# OPTIONS | ||
|
||
\-d, --duration <DURATION> | ||
Set the duration in seconds. 0 Will be considered as infinite. The default is | ||
30. | ||
|
||
\-a, --alpha <ALPHA> | ||
Set the *alpha* value of the overlay, 0.0 being transparent and 1.0 being | ||
solid black. Default is 0.5. | ||
|
||
\--gen-completions <PATH> | ||
Generates completions for all supported shells at the given path. | ||
|
||
\-c, --config <PATH> | ||
Read config file at given PATH instead of default location (see CONFIGURATION | ||
below.) | ||
|
||
\-h, --help | ||
Print help information | ||
|
||
\-V, --version | ||
Print the binary's version | ||
|
||
# CONFIGURATION | ||
|
||
dim can be configured through a TOML configuration file, which is by default | ||
looked for at `$XDG_CONFIG_HOME/dim/config.toml`, or, if `$XDG_CONFIG_HOME` is | ||
not set, it will instead default to searching at `~/.config/dim/config.toml`. | ||
|
||
The options set here will be overriden by any arguments passed in. Valid | ||
options are alpha and duration as seen above, example config: | ||
|
||
``` | ||
# i am a comment! | ||
duration = 30 | ||
alpha = 0.5 | ||
``` |