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

[ICON] Support for Xfce 4.16 rdns icons. #3

Closed
darkshram opened this issue Aug 17, 2021 · 3 comments
Closed

[ICON] Support for Xfce 4.16 rdns icons. #3

darkshram opened this issue Aug 17, 2021 · 3 comments
Labels
enhancement New feature or request icon request request an icon

Comments

@darkshram
Copy link
Contributor

This is the current look of xfce4-settings-manager with current Nordzy icon theme. Added some context to the screenshot because some tools are not really from Xfce.

xfce4-manager-4 16
Context: Icons within a red square are not part of Xfce. They are 3rd party tools I just integrated into xfce4-settings-manager because I felt final users may like to find them within a single tool.

This is the new name schema for Xfce 4.16:

Old icon nameNew icon name
xfce4-power-manager-settingsorg.xfce.powermanager
xfce4-panelorg.xfce.panel
xfce4-panel-menuorg.xfce.panel.applicationsmenu
system-log-outorg.xfce.panel.actions
x-office-calendarorg.xfce.panel.clock
folderorg.xfce.panel.directorymenu
application-x-executableorg.xfce.panel.launcher
xfce4-workspacesorg.xfce.panel.pager
list-remove-symbolicorg.xfce.panel.separator
user-desktoporg.xfce.panel.showdesktop
preferences-system-windowsorg.xfce.panel.tasklist
preferences-system-windowsorg.xfce.panel.windowmenu
xfce4-sessionorg.xfce.session
system-log-outxfsm-logout
system-rebootxfsm-reboot
system-shutdownxfsm-shutdown
system-suspendxfsm-suspend
system-hibernatexfsm-hibernate
system-suspend-hibernatexfsm-hibernate
system-usersxfsm-switch-user
preferences-systemorg.xfce.settings.editor
preferences-desktoporg.xfce.settings.manager
preferences-desktop-accessibilityorg.xfce.settings.accessibility
preferences-desktop-themeorg.xfce.settings.appearance
xfce4-color-settingsorg.xfce.settings.color
video-displayorg.xfce.settings.display
preferences-desktop-keyboardorg.xfce.settings.keyboard
preferences-desktop-default-applicationsorg.xfce.settings.preferred-applications
preferences-desktop-peripheralsorg.xfce.settings.mouse
edit-findorg.xfce.appfinder
drive-removable-mediaorg.xfce.volman
Thunarorg.xfce.thunar
preferences-desktop-screensaverorg.xfce.ScreenSaver
utilities-terminalorg.xfce.terminal
utilities-terminalorg.xfce.terminal-settings
accessories-text-editororg.xfce.mousepad
applets-screenshooterorg.xfce.screenshooter
utilities-system-monitororg.xfce.taskmanager
xfce4-notifydorg.xfce.notification
xfce4-dictorg.xfce.Dictionary
catfishorg.xfce.catfish
gtk-networkorg.xfce.gigolo
paroleorg.xfce.parole
ristrettoorg.xfce.ristretto
xfburnorg.xfce.xfburn
xfdashboardorg.xfce.xfdashboard

I have a 'shortcut method' to create the rdns icons. Saves some time and work. First I used the official Xfce list for rdns icons, then created a two column text file with this table data and saved it as ~/new-rdns-icons-xfce4-4.16.txt. Then used the following script, which basically looks for the old xfce4 icons within the src sub-folders, then tries to create a symlink for new rdns icon at the same location. The script only creates the symlink with relative path if the old xfce4 icon (png/svg) does exist and it does not overwrite any previously existent symlink (unless -fsr is used instead of -lr):

cd Nordzy-icon
for dir in `find ./src -type d -name "*"`
do
    cd ${dir} && \
    while read old new
    do
        if [ -e ${old}.png ]; then ln -sr ${old}.png ${new}.png; fi
        if [ -e ${old}.svg ]; then ln -sr ${old}.svg ${new}.svg; fi
    done < ~/new-rdns-icons-xfce4-4.16.txt
    cd -
done
find ./src -type l -name "*" |xargs git add

Simple, but effective. The catch: if there is no previous old Xfce icon, there will not be a new Xfce rdns icon.

There is also this python script https://gist.github.com/bluesabre/582d886a02c793285f4e3081df9b2a3c. Have not tested it, but basically does the same as my bash script, but with harder to read code.

I can make a PR if you want, but I think you may like to play a little with both alternatives to check and test the results.

@darkshram darkshram added enhancement New feature or request icon request request an icon labels Aug 17, 2021
@alvatip
Copy link
Owner

alvatip commented Aug 18, 2021

I will fix that as soon as I'm over with the other bug 😉
Feel free to create a PR, even thought I don't think any of these icons are already created (well at least none that I remember)... And if this is the case, they are probably symlinks that should be deleted and replaced by a proper icon. 😛

@darkshram
Copy link
Contributor Author

darkshram commented Aug 18, 2021

I tested it yesterday. Some of them are present. This is the list of the new icons created with the script, symlinking to the existent old Xfce icons (still Material/WhiteSur styled).

src/actions/16/org.xfce.appfinder.svg
src/actions/16/org.xfce.panel.actions.svg
src/actions/16/xfsm-logout.svg
src/actions/22/org.xfce.appfinder.svg
src/actions/22/org.xfce.panel.actions.svg
src/actions/22/xfsm-hibernate.svg
src/actions/22/xfsm-logout.svg
src/actions/22/xfsm-shutdown.svg
src/actions/22/xfsm-suspend.svg
src/actions/24/org.xfce.appfinder.svg
src/actions/24/org.xfce.panel.actions.svg
src/actions/24/xfsm-hibernate.svg
src/actions/24/xfsm-logout.svg
src/actions/24/xfsm-shutdown.svg
src/actions/24/xfsm-suspend.svg
src/actions/32/org.xfce.panel.actions.svg
src/actions/32/xfsm-hibernate.svg
src/actions/32/xfsm-logout.svg
src/actions/32/xfsm-reboot.svg
src/actions/32/xfsm-shutdown.svg
src/actions/32/xfsm-suspend.svg
src/actions/32/xfsm-switch-user.svg
src/actions/symbolic/org.xfce.panel.separator.svg
src/apps/scalable/org.xfce.settings.editor.svg
src/apps/scalable/org.xfce.volman.svg
src/devices/16/org.xfce.volman.svg
src/devices/22/org.xfce.volman.svg
src/devices/24/org.xfce.volman.svg
src/devices/scalable/org.xfce.volman.svg
src/mimes/16/org.xfce.panel.clock.svg
src/mimes/16/org.xfce.panel.launcher.svg
src/mimes/22/org.xfce.panel.clock.svg
src/mimes/22/org.xfce.panel.launcher.svg
src/mimes/scalable/org.xfce.panel.clock.svg
src/mimes/scalable/org.xfce.panel.launcher.svg
src/places/16/org.xfce.panel.directorymenu.svg
src/places/22/org.xfce.panel.directorymenu.svg
src/places/24/org.xfce.panel.directorymenu.svg
src/places/scalable/org.xfce.panel.directorymenu.svg
src/places/scalable/org.xfce.panel.showdesktop.svg

Will make a PR before the weekend.

@alvatip
Copy link
Owner

alvatip commented Aug 18, 2021

Sweet, thanks !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request icon request request an icon
Projects
None yet
Development

No branches or pull requests

2 participants