diff --git a/.scripts/termcolors b/.scripts/termcolors index 7286587..3f4b96b 100755 --- a/.scripts/termcolors +++ b/.scripts/termcolors @@ -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