Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Junker/stumpwm-screenshot-maim

Screenshot module for StumpWM
https://github.com/Junker/stumpwm-screenshot-maim

maim screenshot stumpwm

Last synced: 3 months ago
JSON representation

Screenshot module for StumpWM

Awesome Lists containing this project

README

        

# StumpWM Screenshot-maim

Screenshot module for StumpWM

## Requirements

- [maim](https://github.com/naelstrof/maim) CLI screenshot tool
- [xdotool](https://github.com/jordansissel/xdotool) CLI Xorg automation tool
- [xclip](https://github.com/astrand/xclip) CLI tool to access X11 clipboard

## Installation

```bash
cd ~/.stumpwm.d/modules/
git clone https://github.com/Junker/stumpwm-screenshot-maim screenshot-maim
```

```lisp
(stumpwm:add-to-load-path "~/.stumpwm.d/modules/screenshot-maim")
(load-module "screenshot-maim")
```

## Usage

```lisp
(define-key *top-map* (kbd "Print") "screenshot")
(define-key *top-map* (kbd "C-Print") "screenshot-area")
(define-key *top-map* (kbd "M-Print") "screenshot-window")
```

### Parameters

- **screenshot-maim:\*path\*** - path to save screens (default: "/var/tmp/")
- **screenshot-maim:\*ask-filename\*** - show input prompt with filename (default: t)
- **screenshot-maim:\*save-to-clipboard\*** - save the screenshot into clipboard (default: nil)
- **screenshot-maim:\*xclip-selection\*** - used selection for saving screenshots (default: "clipboard")
- **screenshot-maim:\*format\*** - file format, if \*ask-filename\* is nil.
(default: "png". Currently supports 'png', 'jpg', 'bmp' and 'webp')
- **screenshot-maim:\*quality\*** - An integer from 1 to 10 that determines the
compression quality. (default: 10)
- **screenshot-maim:\*delay\*** - time in seconds to wait before taking a
screenshot. (default: 0.2)
- **screenshot-maim:\*hide-cursor\*** - By default maim super-imposes the cursor
onto the image, you can disable that behavior with this flag. (default: nil)