Made script working with slideshow (kinda)
This commit is contained in:
parent
484ed70a3a
commit
7079466458
1 changed files with 10 additions and 1 deletions
|
@ -1,4 +1,13 @@
|
||||||
#! /bin/sh
|
#! /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
|
wallust $(cat ~/.cache/curwal) -qs
|
||||||
rm ~/.cache/curwal
|
rm ~/.cache/curwal
|
||||||
|
|
Loading…
Reference in a new issue