Xfce Forum

Sub domains
 

You are not logged in.

#1 2016-12-12 14:35:21

Jerry3904
Member
Registered: 2013-11-09
Posts: 863

Panel icon for Xfce Terminal/Root Terminal

We are near release of MX-16 with two default themes, light and dark. The icon for the two terminals is set to the default icon set, and that shows up correctly in Whisker (e.g., a red terminal for Root). But when launched, the Panel icon is just a very dark generic icon and nearly invisible in the dark theme.

I looked in the terminalrc file in /.config/terminal/ and consulted the hidden options doc http://docs.xfce.org/apps/terminal/advanced without success. Is even possible to change that icon?


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#2 2016-12-12 15:51:51

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,493

Re: Panel icon for Xfce Terminal/Root Terminal

Jerry,
In situations like this where I want to change the window buttons icon, I use xseticon (the first version, not the latest as I can't get the latest version to work properly, though I haven't tried in a while).

I create an executable file like /usr/local/bin/root_terminal with the following content:

#!/bin/bash

### EDIT THESE VALUES #########################################################
APP="/usr/bin/xfce4-terminal"
ICON="/usr/local/share/root-terminal.png"    	# icon file - only png supported
WAIT=1                			        # wait time - adjust until icon changes
###############################################################################

###############################################################################
### DON'T CHANGE ANYTHING BELOW
###############################################################################
function change-panel-icon {

    sleep $WAIT
    activeWinLine=$(xprop -root | grep "_NET_ACTIVE_WINDOW(WINDOW)")
    activeWinId="${activeWinLine:40}"

    xseticon -id "$activeWinId" "$ICON"
}

$APP & sleep $WAIT & change-panel-icon

The icon file needs to be a png file and is referenced in the first part of the script. I call the script via:

gksudo root_terminal

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2016-12-12 16:08:45

Jerry3904
Member
Registered: 2013-11-09
Posts: 863

Re: Panel icon for Xfce Terminal/Root Terminal

Thanks, ToZ. This has been busting my chops this morning!


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 524.2 KiB (Peak: 528.94 KiB) ]