From dd588ae86ab036c88335c4373fe752078f0920dd Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Tue, 13 Aug 2024 22:59:55 +0200 Subject: [PATCH] wallpaper fix --- bin/mb-jgtools | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/mb-jgtools b/bin/mb-jgtools index 4cc96cd..ac71931 100755 --- a/bin/mb-jgtools +++ b/bin/mb-jgtools @@ -490,7 +490,7 @@ esac if [ $panels_heightpos == "full" ]; then -read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2) +read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | tail -1 | cut -d'=' -f2) THUMBDIR="$HOME/.cache/colorizer/thumbs" mkdir -p ${THUMBDIR} NAME=${WALLPATH////_} @@ -777,7 +777,7 @@ if [[ -x "$(command -v VBoxManage)" ]]; then [[ $places_vboxes == true ]] && vboxes=". $HOME/.config/mabox/vboxes.csv" || vboxes="" fi if [ $panels_heightpos == "full" ]; then -read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2) +read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | tail -1 | cut -d'=' -f2) THUMBDIR="$HOME/.cache/colorizer/thumbs" mkdir -p ${THUMBDIR} NAME=${WALLPATH////_} @@ -909,7 +909,7 @@ then fi #wmctrl -k on -read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2) +read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | tail -1 | cut -d'=' -f2) THUMBDIR="$HOME/.cache/colorizer/thumbs" mkdir -p ${THUMBDIR} NAME=${WALLPATH////_}