You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zapashcanon ccf757d99d
fix cmdliner lower bound
4 months ago
src proper use of directories and scfg, remove useless files 4 months ago
.gitignore add boilerplate 1 year ago
.ocamlformat proper use of directories and scfg, remove useless files 4 months ago
CHANGES.md 0.1 4 months ago
LICENSE.md add boilerplate 1 year ago
README.md fix typo 4 months ago
dune-project fix cmdliner lower bound 4 months ago
sun.opam fix cmdliner lower bound 4 months ago

README.md

sun

sun is an OCaml executable to take screenshot from the command line in Wayland, using grim and slurp.

Installation

sun can be installed with opam:

opam install sun

If you don't have opam, you can install it following the how to install opam guide.

If you can't or don't want to use opam, consult the opam file for build instructions.

Quickstart

Taking a screenshot is as simple as:

$ sun
screenshot saved at /home/doratheexplorer/img/20230124_20h01m04s_sun.png

The output file can be specified like this:

$ sun /tmp/cheese.png
screenshot saved at /tmp/cheese.png

By default, the XDG Base Directory Specification and xdg-user-dirs are used to compute the output directory. It will be the XDG_PICTURES_DIR value in ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs.

You can overwrite this by writing a configuration file for sun in ${XDG_CONFIG_HOME:-~/.config}/sun/config.scfg with the following content:

output_dir /home/winniethepooh/screenshots

About