package sun

  1. Overview
  2. Docs
Take screenshot under Wayland

Install

Dune Dependency

Authors

Maintainers

Sources

0.1.tar.gz
sha256=360ee3228b2bbcf066d87a3f5e158531237e087d0b746d399752df82404445ca
sha512=cbf98697bf607f7342663a0e9dfa023bc0bebfdf2080e52f76dfb43fb1cbadb75627dc4789c55d6bfe7a80df2c75266e39a2e8b3df41481ef4d377f77ed9ef40

Description

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

README

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/sun.scfg with the following content:

output_dir /home/winniethepooh/screenshots

About

Dependencies (5)

  1. scfg
  2. directories
  3. cmdliner >= "1.1.0"
  4. ocaml >= "4.13"
  5. dune >= "2.9"

Dev Dependencies (1)

  1. odoc with-doc

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.