From 7079466458a8fe891544102ad656c1043c156258 Mon Sep 17 00:00:00 2001 From: Artyom Date: Thu, 15 Jun 2023 23:19:03 +0300 Subject: [PATCH] Made script working with slideshow (kinda) --- .scripts/termcolors | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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