Tint2 Panel System Tray

Hi, I’ve just about tweaked my Tint2 Panel to use 1 colour for all its static buttons and executors. However, the System tray icon for the NetWorkManager applet is stuck at a grey colour.
Can this icon be changed?

Hi @agaskew ,

Maybe the grey is solved after a reboot/logout/in or the gtk refresh button. (below look and feel)

The colors of the systray are set by the gtk icon theme.
They have no link with the tint2 colors.

inspiration

I created a script to change all txt colors at once for tint2-sessionfile, using colormenu.

  • Pick a color with colormenu and past inside terminator.
  • Enter (tint2 restart) and the colors are changed.

tint2-coloring.sh

~/bin/tint2-coloring.sh

#!/bin/bash


exec 2>/dev/null

# script to change font color of tint2rc
clear

tint2rc=$(cat $HOME/.config/tint2/tint2-sessionfile)

get_color=$(grep -o "execp_font_color.*" $tint2rc)
current="$(echo "$get_color" | grep -o "#[a-fA-F0-9]*" > /tmp/tnt2-clr)"
current_color=$(head -n 1 /tmp/tnt2-clr | sed 's/#//')

echo "CURRENT COLOR : $current_color"

notify-send -i "color" "CURRENT COLOR : $current_color"  --expire-time=120000

echo "PASTE NEW COLOR FROM COLORMENU " 
colormenu &
read -r new_color

new_color=$(echo "${new_color}" | sed 's/#//')

# Check if the new color is valid
if [[ -z "$new_color" ]]; then
  echo "Please enter a color."
  exit 1
else
    sed -i "s/$current_color/$new_color/" $tint2rc
    notify-send -i "color" "NEW COLOR : $new_color"  --expire-time=120000
fi

# Restart tint2
(sleep 1; killall -SIGUSR1 tint2) 

edit:

With this command terminator opens on position next to colormenu. (option)

terminator --geometry=510x200+250+250 -e tint2-coloring.sh

ps:the script does more than needed. it helps me following the process.
:bird:

2 Likes

Thanks @muzqs I did not realise all the fonts have the same parameter name of ‘execp_font_color’.

1 Like