-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves #16. Signed-off-by: Artem Senichev <artemsen@gmail.com>
- Loading branch information
Showing
9 changed files
with
210 additions
and
4 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
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,21 @@ | ||
# Swayimg configuration file. | ||
|
||
# This file contains the default configuration. | ||
# The viewer searches for the config file in the following locations: | ||
# 1. $XDG_CONFIG_HOME/swayimg/config | ||
# 2. $HOME/.config/swayimg/config | ||
# See `man swayimgrc` for details. | ||
|
||
# Initial scale (default, fit, or real) | ||
scale = default | ||
|
||
# Start in full screen mode (yes/no) | ||
fullscreen = no | ||
|
||
# Background mode/color (grid or RGB, e.g. 112233) | ||
background = grid | ||
|
||
# Show image info: format, size, EXIF, and current scale (yes/no) | ||
info = no | ||
|
||
# vim: filetype=dosini |
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,50 @@ | ||
.\" Swayimg configuration file format. | ||
.\" Copyright (C) 2022 Artem Senichev <artemsen@gmail.com> | ||
.TH SWAYIMG 5 2022-02-09 swayimg "Swayimg configuration" | ||
.SH NAME | ||
swayimgrc \- Swayimg configuration file | ||
.\" possible file locations | ||
.SH SYNOPSIS | ||
.SY \fI$XDG_CONFIG_HOME\fR/swayimg/config | ||
.SY \fI$HOME\fR/.config/swayimg/config | ||
.\" format description | ||
.SH DESCRIPTION | ||
.SS General format description | ||
The Swayimg configuration file is a text-based INI file used to override the | ||
default settings. | ||
.PP | ||
The basic element contained in the INI file is the key or property. | ||
Every key has a name and a value, delimited by an equals sign (=). | ||
The name appears to the left of the equals sign. The value can contain any | ||
character. Kay and values are case sensitive. | ||
.PP | ||
The number sign (#) at the beginning of the line indicates a comment. | ||
Empty lines and comments are ignored. | ||
.SS Properties | ||
.PP | ||
.IP "\fBscale\fR: initial image scale:" | ||
.nf | ||
\fIdefault\fR: 100% or less to fit to window; | ||
\fIfit\fR: fit to window; | ||
\fIreal\fR: real size (100%); | ||
.IP "\fBfullscreen\fR: start in dull screen mode, possible values are \fIyes\fR or \fIno\fR" | ||
.IP "\fBbackground\fR: background mode or color, possible values are \fIgrid\fR or RGB hex color (e.g. \fI1a2b3c\fR)" | ||
.IP "\fBinfo\fR: show image meta information: format, size, EXIF, and current scale, possible values are \fIyes\fR or \fIno\fR" | ||
.\" example file | ||
.SH EXAMPLES | ||
.EX | ||
# comment | ||
scale = default | ||
fullscreen = no | ||
background = grid | ||
info = no | ||
.EE | ||
.\" related man pages | ||
.SH SEE ALSO | ||
swayimg(1) | ||
.\" link to homepage | ||
.SH BUGS | ||
For suggestions, comments, bug reports etc. visit the | ||
.UR https://github.com/artemsen/swayimg | ||
project homepage | ||
.UE . |
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
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
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
e7a8731
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really good work. Thank you @artemsen
e7a8731
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are welcome!