12 lines
485 B
Bash
Executable file
12 lines
485 B
Bash
Executable file
#! /bin/sh
|
|
# 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
|