package sun
 sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >
  
  
On This Page
  
  
  Take screenshot under Wayland
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
  
    
      0.1.tar.gz
    
    
        
    
  
  
  
    
  
  
    
  
        sha256=360ee3228b2bbcf066d87a3f5e158531237e087d0b746d399752df82404445ca
    
    
  sha512=cbf98697bf607f7342663a0e9dfa023bc0bebfdf2080e52f76dfb43fb1cbadb75627dc4789c55d6bfe7a80df2c75266e39a2e8b3df41481ef4d377f77ed9ef40
    
    
  doc/README.html
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 sunIf 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.pngThe output file can be specified like this:
$ sun /tmp/cheese.png
screenshot saved at /tmp/cheese.pngBy 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/screenshotsAbout
 sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >
  
  
  On This Page