Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select multiple file extensions / filenames with a regex/asterisk. #579

Open
ItsFireStorm opened this issue Dec 11, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@ItsFireStorm
Copy link

ItsFireStorm commented Dec 11, 2024

Description

I basically want to set my current wallpaper as the lock screen for Hyprlock, however, I use multiple file extensions (.jpg, .png, .jpeg), and having to select each file extension whenever I want to set an image path for Hyprlock is inconvinient. There is a fix, however, but it is not my desired solution.

Basically, whenever generating the current wallpaper files to the cache folder, I create a symlink pointing to the original wallpaper, with the extension altered.
e.g.

...
if [ $extension != png ] ; then
cp $wallpaper_dir$wallpaper_selection $cacheDir/hyprlock.${extension}
ln -s $cacheDir/hyprlock.${extension} $cacheDir/hyprlock.png
...

This creates a soft symbolic link, which is able to be read by hyprlock.conf, whose path is set to: path = $HOME/.cache/wallpapercache/hyprlock.png

Back to the point, if there is any available method to add, say a regex or just a plain asterisk to select every extension/filename in the directory, I would gladly appreciate being let known of it, or it being implemented.

@ItsFireStorm ItsFireStorm added the enhancement New feature or request label Dec 11, 2024
@ItsFireStorm ItsFireStorm changed the title Select multiple file extensions with a regex/asterisk at the end of the . Select multiple file extensions / filenames with a regex/asterisk. Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant