Increase System Tray Icon Size in KDE

6,444

Solution 1

Open ~/.config/plasma-org.kde.plasma.desktop-appletsrc with a text editor.

Find every line starting with extraItems=

Add another line iconSize=3 below each of those.

Save the edited file and exit.

After a reboot the icons should have a much higher limit of size when adjusting the height of the panel.

Solution 2

FYI, this has changed as of Plasma version 5.21.4 (perhaps slightly earlier). The iconSize setting now does nothing.

To get this functionality, instead, at the same place where you would have inserted iconSize (per the other answers), put: scaleIconsToFit=true

Then simply killall plasmashell; plasmashell & as described and it will work perfectly.

Solution 3

The setting to change icon sizes, located in Settings > Appearance > Icons > Advanced, seems to have been unusable for years. I think this has been the case since some version of KDE 4. Possibly it is related to whether the icon theme is in a resolution-independent format (svg).

A hidden iconSize setting was added around plasma-workspace 5.9. Prior to the addition of this setting, qml files had to be edited.

To change the setting system-wide, edit the file:

/usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/config/main.xml

This file will be overwritten whenever plasma-workspace is reinstalled or updated.

To change the setting for a specific user, edit:

$HOME/.config/plasma-org.kde.plasma.desktop-appletsrc

Look for the entry that corresponds to the system tray. It will look something like this:

[Containments][#]
...
plugin=org.kde.plasma.private.systemtray
...

Then scroll down until you see something that looks like this:

[Containments][#][General]
extraItems=...
knownItems=...
showAllItems=true`

Then add:

iconSize=#

Where # is a number that refers to one of the following options:

0 ~ Small
1 ~ SmallMedium
2 ~ Medium
3 ~ Large
4 ~ Huge
5 ~ Enormous

To see the changes log off and on. Or kill and restart plasmashell in a terminal window:

killall plasmashell ; sleep 1 ; kshell5 plasmashell

Solution 4

Debian 11, KDE Plasma

In order to increase the size of systray icons, you need to edit the file

/usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/main.qml
  1. Find the string readonly property int smallIconSize: units.iconSzie.smallMedium
  2. Replace smallMedium (22 log. px) with medium (32 log. px) or use integer value (in physical pixels!)
  3. Save, log out, log in.
Share:
6,444

Related videos on Youtube

Lonnie Best
Author by

Lonnie Best

Do your work willingly, as though you were serving the Lord himself, and not just your earthly master. -Colossians 3:23 The thing about quotes on the internet is that you cannot confirm their validity. -Abraham Lincoln

Updated on September 18, 2022

Comments

  • Lonnie Best
    Lonnie Best over 1 year

    How can I increase the size of these System Tray Icons? :

    enter image description here

    Update: In Debian 11, KDE Plasma 5.20.5, there is now an option to scale system-tray icons to the panel's height. Here's is a short video showing that. Thanks goes to KDE!

  • Lonnie Best
    Lonnie Best about 4 years
    Oooh, that's fantastic. It should do that by default. At the very least, you should be able to right-click on the system-tray and configure this setting instead of having to modify some text files. Thanks for the help!
  • xryl669
    xryl669 over 3 years
    It doesn't work for me, Plasma Systemtray version 1.0, shell version 5.20.2
  • Dmitriy Vinokurov
    Dmitriy Vinokurov over 3 years
    Sounds cool, but on my system (plasma-workspace 5.18.5) iconSize=2 is too big, 0 is too small, 1 is same as 0. Display is 14' and 4K, I've adjusted few settings to make it look ok and icon size is last one to fix :)
  • xiota
    xiota over 3 years
    @DmitriyVinokurov Seems like a bug if 0 and 1 behave the same. I don't have any 4k displays, so may be related to that. I'm currently using 5.19.5.
  • mikev
    mikev almost 3 years
    @cipricus I think I recall that being there too, but IIRC it was for fixed sizes and for me all of them were too small or too big.
  • cipricus
    cipricus almost 3 years
    the version changes involved came (as many others) with 5.19.x. Now I'm back to 5.18 (kubuntu 20 LTS, so this answer works for me), but it's always good to have a solution for the future :)
  • cipricus
    cipricus almost 3 years
    @xryl669 - From 5.19 you have to look for other tricks, like here. And isn't there a new setting under "Configure System Tray" that lets icons resize with the panel? (I'm in 5.18 now)
  • mikev
    mikev almost 3 years
    @cipricus ok. This works in the newer plasma too, is what I'm saying. (5.21.4, Kubuntu 21.04).
  • tomasz86
    tomasz86 almost 3 years
    This makes the icons gigantic when using a wider vertical panel. It would be nice to have an option to simply set the size in pixels or similar.
  • Lonnie Best
    Lonnie Best over 2 years
    Thanks again for showing me this solution; it got me through Kubuntu 20.04. Today I noticed that KDE Plasma (5.20.5) now provides this as an option in the GUI. It comes default in Debian 11.
  • oblalex
    oblalex over 2 years
    You do not have to reboot, it's possible just to reload Plasma and surprisingly it works: askubuntu.com/questions/481329/…
  • oblalex
    oblalex over 2 years
    It is possible to start plasma with kstart5 plasmashell after killing, see examples at: askubuntu.com/questions/481329/… p.s. nice answer!