diff options
| author | ericmarin <maarin.eric@gmail.com> | 2026-04-29 21:12:05 +0200 |
|---|---|---|
| committer | ericmarin <maarin.eric@gmail.com> | 2026-04-29 21:14:52 +0200 |
| commit | a5d2c8d5d646673864c11f46d49412aa1c2ebae7 (patch) | |
| tree | 1153096865a877a909e8247bc06cc69849d7d178 /scripts | |
| parent | 4373c2db3d54802735105bc3ca602214d94b9f16 (diff) | |
| download | dotfiles-master.tar.gz dotfiles-master.zip | |
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/wallpapermenu | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/wallpapermenu b/scripts/wallpapermenu index 1ddf308..a67e6fd 100755 --- a/scripts/wallpapermenu +++ b/scripts/wallpapermenu @@ -5,10 +5,9 @@ if test -z $argv[1] else set chosen ( for file in (fd . $argv[1] -t f -d 1) - if test -z $IMG; or test $file != $IMG - echo -en "$file\0icon\x1fthumbnail://$file\n" - end + echo -en "$file\0icon\x1fthumbnail://$file\n" end | rofi -dmenu -p " " -show-icons -theme ~/.config/rofi/wallpapermenu.rasi) - - ~/.config/scripts/set_background (echo $chosen) + if test $chosen != $IMG + ~/.config/scripts/set_background (echo $chosen) + end end |
