diff options
| author | Daniel <[email protected]> | 2024-07-27 12:12:18 -0400 |
|---|---|---|
| committer | Daniel <[email protected]> | 2024-07-27 12:12:18 -0400 |
| commit | 39058e501df1ec97b8cdaa6ee2b76d2389819d7a (patch) | |
| tree | f52ebcebb4eb70b9f2655e1b8a708e7b97f32bd8 /bin | |
| parent | a0cc44fd2316d6ab58277d16123984dd833e5e80 (diff) | |
fix regex
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/.local/bin/scripts/load-theme-wallpaper | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/.local/bin/scripts/load-theme-wallpaper b/bin/.local/bin/scripts/load-theme-wallpaper index 228ee97..127b67b 100755 --- a/bin/.local/bin/scripts/load-theme-wallpaper +++ b/bin/.local/bin/scripts/load-theme-wallpaper @@ -5,7 +5,7 @@ sed -i '/feh/d' $HOME/.cache/wallpaper search_string=$(echo -e "vivendi\noperandi\noperandi-tinted\nelea-light\ncyprus\ncherie\nelea-dark\nnight\nmaris-dark\nmaris-light\nautumn" | dmenu -p 'Select theme for search: ') -selected_wallpaper=$(find ~/Pictures/wallpaper -type f -name "*[[]${search_string}*[]]*" -exec nsxiv -t -o {} +) +selected_wallpaper=$(find ~/Pictures/wallpaper -type f -regex ".*\[\([^]]*${search_string}[^]]*\)\].*" -exec nsxiv -t -o {} +) # Options for display modes OPTIONS="Tiled\nZoom Filled\nCentered\nMax" @@ -38,4 +38,3 @@ case "$selected_mode" in esac echo "Wallpaper set successfully." - |
