Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 49eb66641c |
11
README.md
11
README.md
@@ -3,9 +3,18 @@ Based on this: https://superuser.com/questions/1594667/how-can-i-make-a-screensh
|
||||
|
||||
|
||||
## Usage
|
||||
Copy the files in systemd to: `~/.config/systemd/user/`
|
||||
Copy the files in systemd to: `~/.config/systemd/user/`:
|
||||
```bash
|
||||
cp systemd/* ~/.config/systemd/user/
|
||||
```
|
||||
|
||||
Modify the paths in them so they point to wherever this repo is.
|
||||
```bash
|
||||
nano ~/.config/systemd/user/screenshot.service
|
||||
```
|
||||
|
||||
Run:
|
||||
```bash
|
||||
systemctl --user enable screenshot.service screenshot.timer
|
||||
systemctl --user start screenshot.service screenshot.timer
|
||||
```
|
||||
@@ -13,7 +13,7 @@ SCR_NEW="$DIR/$DAY/$TIME.$FORMAT"
|
||||
SCR_LAST=`ls -t $DIR/$DAY/*.png | head -n1`
|
||||
|
||||
# do a screenshot
|
||||
if [ "$DESKTOP_SESSION" = "plasmawayland" ]
|
||||
if [ "$XDG_CURRENT_DESKTOP" = "KDE" ]
|
||||
then
|
||||
spectacle -bn -o $SCR_NEW
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user