zapashcanon cdbc4dcceb
add CI
2025-01-20 04:03:55 +01:00
2025-01-20 04:03:55 +01:00
2025-01-03 19:54:49 +01:00
2022-01-30 22:19:22 +01:00
2024-12-29 19:13:43 +01:00
0.1
2023-01-24 20:40:39 +01:00
2023-01-25 17:59:20 +01:00
2022-01-30 22:19:22 +01:00
2023-01-25 17:59:20 +01:00

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

You can use environment variables this way:

output_dir $(HOME)/screenshots

About

Description
No description provided
Readme
Languages
OCaml 100%