shell icon indicating copy to clipboard operation
shell copied to clipboard

[Feature Request] Profile Picture Updater & Shell Dynamic Reload

Open Amstel-DEV opened this issue 1 year ago • 4 comments

I added a profile picture updater on dashboard by clicking the profile picture.

Dashboard Profile Picture Gets Clicked Image

Opens file picker Image

Profile Update Notif Image

Profile Picture Updated Image

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

Amstel-DEV avatar Jun 10 '25 09:06 Amstel-DEV

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 avatar Jun 10 '25 11:06 soramanew

@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

Amstel-DEV avatar Jun 11 '25 06:06 Amstel-DEV

@soramanew this is how i currently implemented it.

Amstel-DEV@9308c9b

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

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 avatar Jun 11 '25 07:06 soramanew

@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.

Amstel-DEV avatar Jun 11 '25 07:06 Amstel-DEV