blob: 219c9c3f0b75db0dbc11c312b3f9e40e091acc53 (
plain)
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
|
This is a patch to tell awesome window manager to run the script capscr[1] when
the user press the key PrtSc.
Patch rc.lua
------------
Download the patch in the directory ~/.config/awesome
$ sudo apt install wget # install wget first
$ wget https://git.yctct.com/printscreen.patch
Apply the patch to your rc.lua config file:
$ patch -i printscreen.patch
The patch should be applied; if you use git you can run $ git diff to see.
When the rc.lua file is patched you can delete the file containing the patch:
$ rm -i printscreen.patch
If you use git:
$ git add rc.lua
$ git commit -m "Apply printscreen patch"
You can remove the patch by deleting the commit.
More
----
Here is a guide showing how to do the whole set up with capscr: htpps://yctct.com/awesome-prtsc
[1] https://git.yctct.com/small/tree/capscr
|