Made script working with slideshow (kinda)

This commit is contained in:
Artyom 2023-06-15 23:19:03 +03:00
parent 484ed70a3a
commit 7079466458
No known key found for this signature in database
GPG key ID: EEFBB39006B28920

View file

@ -1,4 +1,13 @@
#! /bin/sh
cat ~/.config/plasma-org.kde.plasma.desktop-appletsrc | rg Image | sed 's/\Image=//g' | tail -n +1 > ~/.cache/curwal > ~/.cache/curwal && sed -i '/Preview/d' ~/.cache/curwal
# Comment one of lower lines if u want to one of the modes works
# General image mode
cat ~/.config/plasma-org.kde.plasma.desktop-appletsrc | rg Image | sed 's:Image=::' | sed 's/file:\///g' | head -1 > ~/.cache/curwal
# Slide-show mode
# cat ~/.config/plasma-org.kde.plasma.desktop-appletsrc | rg Image | sed 's:Image=::' | sed 's/file:\///g' | sed 's:/::' | tail -n +2 > ~/.cache/curwal
# Don't touch this lines
wallust $(cat ~/.cache/curwal) -qs
rm ~/.cache/curwal