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

Add Folder Selector as a customization option #2555

Open
IAteMinecraft opened this issue Dec 30, 2024 · 3 comments
Open

Add Folder Selector as a customization option #2555

IAteMinecraft opened this issue Dec 30, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@IAteMinecraft
Copy link

Is your feature request related to a problem? Please describe.
I am trying to make a wallpaper slideshow, and because JS doesn't allow you to get all files in a folder you can't randomly pick a wallpaper every X amount of minutes. I have tried to do it through batch scripting but it clutters up the wallpaper space.

Describe the solution you'd like
The way I see it there are two options (add both possibly?):
Option 1:
Add a customization option that allows an user to select a folder, that on the coding side the api provides the file path and the paths to all the files inside of it (Maybe as an array, I'm quite new to JS)

Option 2:
Add a built in function to create "playlists" of wallpapers

Describe alternatives you've considered
I have tried to make a good batch script that handles the entire process of selecting the files and displaying them with a config file, but not only is it buggy (sometimes) but it is also bad because it clutters up the wallpapers in the actual app.

I have also tried to make a wallpaper (web based) that attempts to display a given media file on the web page (works) and also will select a random file from a folder (doesn't work, as I can't seem to find a way to get all files in a folder) at a configurable interval

@IAteMinecraft IAteMinecraft added the enhancement New feature or request label Dec 30, 2024
@rocksdanister
Copy link
Owner

rocksdanister commented Dec 30, 2024

Option 1:
Add a customization option that allows an user to select a folder, that on the coding side the api provides the file path and the paths to all the files inside of it (Maybe as an array, I'm quite new to JS)

Is the folder selection required?

One way is to create a control similar to FolderDropDown that lets user select a file but also returns the all the files.

{
"Selection" : "file1.png",
"Files" : ["file1.png", "file2.png"],
"Folder" : "...wallpaper/folder" 
}

For slide the selection is not useful here but the list should be enough?

There is going to be a built in way to change wallpaper (slideshow) in the next feature update.

@IAteMinecraft
Copy link
Author

Option 1:
Add a customization option that allows an user to select a folder, that on the coding side the api provides the file path and the paths to all the files inside of it (Maybe as an array, I'm quite new to JS)

Is the folder selection required?

One way is to create a control similar to FolderDropDown that lets user select a file but also returns the all the files.

{
"Selection" : "file1.png",
"Files" : ["file1.png", "file2.png"],
"Folder" : "...wallpaper/folder" 
}

For slide the selection is not useful here but the list should be enough?

There is going to be a built in way to change wallpaper (slideshow) in the next feature update.

How exactly do I add it as a customization option, because all I need is the names of the files in the selected folder?

@rocksdanister
Copy link
Owner

rocksdanister commented Dec 30, 2024

This does not exist, I am just discussing how it should be implemented.

Modifying the current controls will break compatibility, maybe I can add a new property get-files or api

{
"imgSelect": {
    "type": "folderDropdown",
    "value": "forest.jpg",
    "text": "Image",
    "get-files": "true",
    "api": "v2",
    "filter": "*.jpg|*.png",
    "folder": "textures"
  }

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

2 participants