11-02-2014, 12:40 PM
Good job shaggytwodope and Valtam, and thank you for an idea bitsanpcs.
I would just add the check if there are Recent items in the whisker menu.
Something like this.
I would just add the check if there are Recent items in the whisker menu.
Something like this.
Code:
#!/bin/bash
# check if whisker menu has recent items
if [ -z "$(cat $HOME/.config/xfce4/panel/whiskermenu-1.rc | grep "^recent=" | cut -d '=' -f2)" ]; then
whisker_recent=(FALSE "Clean Whisker Recent" "Whisker" "Safe" "Whisker menu has no recent items" )
else
whisker_test=$(cat $HOME/.config/xfce4/panel/whiskermenu-1.rc | grep "^recent=" | cut -d '=' -f2 | sed 's/,/ /g'| wc -w)
whisker_recent=(FALSE "Clean Whisker Recent" "Whisker" "Safe" "You can currently remove $whisker_test recent items from your whisker menu" )
fi
zenity --list --width=800 --checklist --title="example" --column="select" --column=" " --column=" " --column=" " --column=" " "${whisker_recent[@]}"