-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
84 lines (62 loc) · 2.05 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
title: MagickShot – ImageMagick Screenshot
output: amaryaml::github
---
MagickShot is a program to take screenshots using ImageMagick.
It is more minimal than using scrot but more convenient than using ImageMagick.
It is the perfect balance between the two.
It also supports notification sounds.
# Usage
```sh
`# user` magickshot --selection # take a screenshot of the selection
`# user` magickshot --window # take a screenshot of the specied window (default is focused window)
`# user` magickshot --selection --window # use the cursor to select a window to screenshot
`# user` magickshot --monitor # take a screenshot of the specified monitor (default option) (default is focused monitor, count starts from 0)
`# user` magickshot --display # take a screenshot of the entire display
```
# Dependencies
#. imagemagick
#. xdotool
#. xrandr
#. [printmon](https://github.com/amarakon/printmon)
## Optional
The following is used for notification sounds:
#. any media player (set the `PLAYER` environment variable, the default is mpv)
#. deepin-sound-theme
# Installation
## Universal
```sh
`# user` git clone https://github.com/amarakon/magickshot
`# user` cd magickshot
`# root` make install
```
## Gentoo
```sh
`# root` eselect repository add amarlay git https://github.com/amarakon/amarlay
`# root` emerge --sync amarlay
`# root` emerge media-gfx/magickshot
```
# Uninstallation
## Universal
```sh
`# user` cd magickshot
`# root` make uninstall
```
## Gentoo
```sh
`# root` emerge -c media-gfx/magickshot
# Remove my overlay (optional)
`# root` eselect-repository remove -f amarlay
`# root` emerge --sync
```
# Configuration
You can change the default options for MagickShot via the configuration file.
The configuration file is located in the configuration directory, so usually `~/.config/magickshot/magickshot.conf`.
Here is an example configuration:
```sh
output_directory=~/Images/Screenshots
title="%Y-%d_%R:%S"
sound_directory=/usr/share/sounds/deepin/stereo
sound_success=$sound_directory/complete-print.wav
sound_failure=$sound_directory/dialog-error-serious.wav
```