Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/Junker/stumpwm-screenshot-maim
- Owner: Junker
- Created: 2022-05-26T12:59:39.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-11T08:17:18.000Z (12 months ago)
- Last Synced: 2024-08-02T21:38:32.293Z (6 months ago)
- Topics: maim, screenshot, stumpwm
- Language: Common Lisp
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-stumpwm - screenshot-maim - Screenshot module (Modules)
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)