Skip to content

Commit

Permalink
add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Gabriel committed Feb 12, 2024
1 parent bf13ff9 commit 30598d7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,20 @@ All configuration is done either at the config file in `XDG_CONFIG_DIR/.config/s

```toml
[general]
# Start Satty in fullscreen mode
fullscreen = true
# Exit directly after copy/save action
early-exit = true
# Select the tool on startup [possible values: pointer, crop, line, arrow, rectangle, text, marker, blur, brush]
initial-tool = "brush"
# Configure the command to be called on copy, for example `wl-copy`
copy-command = "wl-copy"
# Increase or decrease the size of the annotations
annotation-size-factor = 2
# Filename to use for saving action. Omit to disable saving to file. Might contain format specifiers: https://docs.rs/chrono/latest/chrono/format/strftime/index.html
output-filename = "/tmp/test-%Y-%m-%d_%H:%M:%S.png"

# custom colours for the colour palette
[color-palette]
first= "#00ffff"
second= "#a52a2a"
Expand All @@ -81,7 +88,7 @@ Options:
--fullscreen
Start Satty in fullscreen mode
--output-filename <OUTPUT_FILENAME>
Filename to use for saving action, omit to disable saving to file
Filename to use for saving action. Omit to disable saving to file. Might contain format specifiers: https://docs.rs/chrono/latest/chrono/format/strftime/index.html
--early-exit
Exit directly after copy/save action
--initial-tool <TOOL>
Expand Down
22 changes: 22 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[general]
# Start Satty in fullscreen mode
fullscreen = true
# Exit directly after copy/save action
early-exit = true
# Select the tool on startup [possible values: pointer, crop, line, arrow, rectangle, text, marker, blur, brush]
initial-tool = "brush"
# Configure the command to be called on copy, for example `wl-copy`
copy-command = "wl-copy"
# Increase or decrease the size of the annotations
annotation-size-factor = 2
# Filename to use for saving action. Omit to disable saving to file. Might contain format specifiers: https://docs.rs/chrono/latest/chrono/format/strftime/index.html
output-filename = "/tmp/test-%Y-%m-%d_%H:%M:%S.png"

# custom colours for the colour palette
[color-palette]
first= "#00ffff"
second= "#a52a2a"
third= "#dc143c"
fourth= "#ff1493"
fifth= "#ffd700"
custom= "#008000"
3 changes: 2 additions & 1 deletion src/command_line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ pub struct CommandLine {
#[arg(long)]
pub fullscreen: bool,

/// Filename to use for saving action, omit to disable saving to file
/// Filename to use for saving action. Omit to disable saving to file. Might contain format
/// specifiers: https://docs.rs/chrono/latest/chrono/format/strftime/index.html.
#[arg(long)]
pub output_filename: Option<String>,

Expand Down

0 comments on commit 30598d7

Please sign in to comment.