How do I change the icon size in the KDE status bar?

801

Solution 1

The setting to change icon sizes, located in Settings > Appearance > Icons > Advanced, seems to have been unusable for years, as you've noted in your question. This appears to have been the case since some version of KDE 4. Possibly it is related to whether the icon theme is in a resolution-independent format.

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

For a standard plasma panel, open $HOME/.config/plasma-org.kde.plasma.desktop-appletsrc in the text editor of your choice. If you are using Latte Dock, open the $HOME/.config/latte/*.layout.latte that corresponds to the layout you are using.

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, in a terminal, kill and restart plasmashell:

killall plasmashell ; sleep 1 ; kshell5 plasmashell

Or latte-dock...

killall latte-dock ; sleep 1 ; kshell5 latte-dock

Solution 2

It can be adjusted in Settings > Appearance

At the bottom of the window there is a slider for Launcher Icon Size.

Set accordingly

Share:
801

Related videos on Youtube

Munichong
Author by

Munichong

Updated on September 18, 2022

Comments

  • Munichong
    Munichong over 1 year

    I am using sklearn to compute the AUC of my binary classification model:

    roc_auc_score(Y_test_binary, plc.predict_proba(X_test, y_true))
    

    It returns 0.810477872581. Based on my understanding, it represents how well the model identifies the positive class.

    However, I also want to know the other side: I would like to calculate the AUC for the negative class as well. How should I do it? Should I play with the "average" parameter?

    ========================================================

    It seems that "average=None" can "return the scores for each class" according to the documentation. But it still only returns one value:

    >>> import numpy as np
    >>> from sklearn.metrics import roc_auc_score
    >>> y_true = np.array([0, 0, 1, 1])
    >>> y_scores = np.array([0.1, 0.4, 0.35, 0.8])
    >>> roc_auc_score(y_true, y_scores, average=None)
    0.75
    

    I expect one number for class 1 and one number for class 0.

    • pbhj
      pbhj almost 7 years
      Perhaps you have a theme installed K > System Settings > Icon Theme that doesn't have the right sized icon for the tray. Maybe if you adjust the height of that panel [Right click and "Unlock Widgets" then drag the Height button] then the bigger icons will fit - I think the tray has extra padding that the launch icons (like Firefox) don't.
  • Munichong
    Munichong about 7 years
    I actually had the same thought. But considering this example: y_true = np.array([0, 0, 1, 1]), y_scores = np.array([0.1, 0.1, 0.9, 0.9]). In this case, the calssifier can distinguish both classes very well. The AUC for class1 is 1 while the AUC for class0 is 0. It seems that both should be 1.