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

Feature/listen wallpaper changes #561

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

martinpiz097
Copy link
Contributor

feat: Added script to listen for changes in the config.ini file generated by waypaper, once a change is detected in the "wallpaper" property, the path of the new wallpaper is saved in the cache file located at "~/.config/ml4w/cache/current_wallpaper"

Note: The script requires the "inotifywait" command, in arch it is installed with "sudo pacman -S inotify-tools"

…rtin variable, because the file saves the path of the chosen wallpaper with the reference ~ and the wallpaper-restore script cannot find the file
…ated by waypaper, once a change is detected in the wallpaper property, the path of the new wallpaper is saved in the cache file located at ~/.config/ml4w/cache/current_wallpaper
@mylinuxforwork
Copy link
Owner

@martinpiz097 Thank you. I will look into it. I really like the idea setting up a listener to file changes. This could be used on other functions as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants