Compare commits

1 Commits

2 changed files with 11 additions and 2 deletions

View File

@@ -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
```

View File

@@ -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