Skip to content

Commit

Permalink
[eos-bash-shared] eos-wallpaper-set: added option --history for apply…
Browse files Browse the repository at this point in the history
…ing previous wallpapers
  • Loading branch information
manuel-192 committed Jun 29, 2024
1 parent 19b606a commit 3a5e66e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions eos-wallpaper-set
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,11 @@ Parameters() {
eos_yad_infomsg "$(Usage)"
exit 0
;;
--history)
local wp=$(grep ^[0-9] "$history_of_backgrounds" | awk '{print $NF}' | sort -u | fzf)
[ "$wp" ] && Main "$wp"
exit 0
;;
-*)
msg="$(printf "\n%s\n\n" "Unsupported option '$arg'." ; Usage)"
DIE "$msg"
Expand All @@ -292,8 +297,11 @@ Parameters() {

Usage() {
cat <<EOF
Usage: <b>$progname</b> [wallpaper-file | folder]
where
Usage: <b>$progname</b> [options] [wallpaper-file | folder]
Options:
-h, --help This help.
--history Select wallpaper from previously set wallpapers.
Parameters:
<i>wallpaper-file</i>
Wallpaper file name, 'DEFAULT', or 'ISO':
- absolute or relative path, with or without leading 'file://'.
Expand Down

0 comments on commit 3a5e66e

Please sign in to comment.