How can I change the xterm icon in xfce4?

To clarify, I mean the icon displayed when the application is launched (for example, inside the dock).

With a cork and an error, I found out that "/usr/share/pixmap/xfce4-terminal.xpm" is used as the icon (verified by replacing this file with a different icon).

I was unable to find where it maps the current xterm to this icon.

If I copy the xterm binary to a different name and run it, it gets a different icon, which indicates that it is possible to change it.

I've already tried setting the "xterm * iconPixmap:" resource, but that has no effect at all.

+3


source to share


2 answers


You can try using xseticon

usage: xseticon [options] path / to / icon.png

options:

-name: apply the icon to the window of the specified name -id: apply the icon to the specified window id

Sets the window icon to the specified .png image. The image is loaded from the file at runtime and sent to the X server; after that the file should not exist and can be deleted / renamed / changed without the X server or the window manager noticing. If the window selection option is not specified, the window can be interactively selected with the cursor.

Hints: xseticon -id "$ WINDOWID" path /to/icon.png Installs the icon for the xterm.

********** EDIT **********

I think you need the imagemagick program installed to access the convert command. Then find the icon you like and convert it to xbm file:

code:

convert /path/to/icon/file /path/to/xterm.xbm

      

Create a file ~ / .Xresources with the following content:



code:

xterm*iconPixmap:   /path/to/xterm.xbm

      

Then merge the ~ / Xresources file:

code:

xrdb -merge ~/.Xresources

      

The update came from: http://forum.xfce.org/viewtopic.php?id=6779

+3


source


Not 100% sure if modifying the .desktop file will help in XFCE. But it's worth it.



  • Find the path to your local icons, additional path / usr / local / share / icons is located here.

  • Then just copy the .desktop file to your home directory, for example:

    cp / usr / share / applications / xterm-color.desktop ~ / .local / share / applications /

  • Then edit the .dekstop fil file in your editor, there is a line like this: Icon = Xterm colors

    Replace that with the name of the icon in your icon path and log out and you will be back to it. (The icon must not contain a file extension such as .png or .svg).

0


source







All Articles