This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to change Konsole tab icon?

Tags: None
(comma "," separated)
street spirit
Registered Member
Posts
19
Karma
0

How to change Konsole tab icon?

Sat Oct 31, 2020 1:25 am
Note: I have also asked this question on askubuntu, but got no replies at all.

In previous versions of Konsole, I could set a custom icon for a Konsole tab using

Code: Select all
    echo -e "\033]32;/path/to/file.svg\007"    # from Bash
    print(f"\033]32;{iconPath}\007", end="")   # from Python

I'm using Kubuntu 20.04, which ships with Konsole 19.12.3 (Plasma 5.18.5), and this does not work anymore. No errors, but no change in the icon.

I know that the default tab icon has been removed at some point, but how do we set icons for individual tabs now? The only way I can see is to select an icon for the whole profile, which is not what I need. I need ad-hoc tab icons: "This tab is for doing a merge" or "This tab is for documentation".
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: How to change Konsole tab icon?

Sun Nov 01, 2020 11:15 pm
use different colors?


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
street spirit
Registered Member
Posts
19
Karma
0

Re: How to change Konsole tab icon?

Sun Nov 01, 2020 11:44 pm
I have tried various different icons, vector based (svg) and raster formats (png), and different sizes.
I made sure the paths exist and the images are fine.

For example:
Code: Select all
echo -e "\033]32;/usr/share/icons/breeze/apps/16/kwrite.svg\007"


I have also tried this in a new empty Konsole profile, but no luck.
The exact same line works on an older Kubuntu 19.04 install.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell