[Feature Request] Profile Picture Updater & Shell Dynamic Reload
I added a profile picture updater on dashboard by clicking the profile picture.
Dashboard Profile Picture Gets Clicked
Opens file picker
Profile Update Notif
Profile Picture Updated
Shell Dynamic Reload On Changes
I noticed that if you install new applications or change something that has caches. like when installing new applications the Launcher didn't get updated and the dashboard profile icon update didn't reflect, you must reload the whole session manually for the changes to reflect
About the dynamic reloading of desktop entries, that is an upstream issue of Quickshell, you'll have to request for that there.
The dashboard profile icon I can do, however I am currently busy with uni and a major rework of the scripts and hypr modules, so I will not be updating the shell for the time being.
Thanks for all the help you've given to other users and with contributing to these dots!
@soramanew this is how i currently implemented it.
https://github.com/Amstel-DEV/shell/commit/9308c9b67f491ff32c57d037f16ac6e9148f9dae
Dashboard Avatar Picker 1.0a
This will allows users to update/change their profile icon from the dashboard by clicking the profile icon.
How it works?
Once the profile icon is clicked it will launch zenity file picker.
- Once selected the target new profile Icon this script will do the following:
Deletes the current ~/.face Deletes all .face cached files in ~/.cache/caelestia/thumbnails/ Copies the new selected profile-icon to ~/.face
Issues
- Once the profile is update, the user must manually reload the shell by restarting the shell session.
NOTE:
Make sure to chmod +x the caelestia-avatar-picker.sh before using.
Dependencies:
- zenity
@soramanew this is how i currently implemented it.
Dashboard Avatar Picker 1.0a
This will allows users to update/change their profile icon from the dashboard by clicking the profile icon.
How it works?
Once the profile icon is clicked it will launch zenity file picker.
* Once selected the target new profile Icon this script will do the following:Deletes the current ~/.face Deletes all .face cached files in ~/.cache/caelestia/thumbnails/ Copies the new selected profile-icon to ~/.face
Issues
* Once the profile is update, the user must manually reload the shell by restarting the shell session.NOTE: Make sure to
chmod +xthe caelestia-avatar-picker.sh before using.Dependencies:
* zenity
This solution is fine, however we don't want to introduce more dependencies when Qt already has a solution for a file picker. Try looking at Qt's file picker widget.
Also, you do not need to delete the cached file as that uses the sha1sum of the image to determine the name of the resulting file, which should change depending on the image file iirc.
You can also auto update the shell's face widget by using a FileView with watchUpdates enabled, and on changes reload the image's source (probably, haven't tested tho).
@soramanew actually Qt's file picker is the first one used, and I just decided to switch to zenity since my system is using it.
as for the auto update the shell's face widget, yeah Im trying to figure that since yesterday, thanks for the heads up.