Skip to content

Instantly share code, notes, and snippets.

@kurtis318
Last active May 24, 2022 10:56
Show Gist options
  • Save kurtis318/75eb38ecbebdce3c6714ffd0c1cbaaa6 to your computer and use it in GitHub Desktop.
Save kurtis318/75eb38ecbebdce3c6714ffd0c1cbaaa6 to your computer and use it in GitHub Desktop.
F26: Fix for small tray icons in KDE Plasma
REF: https://forum.manjaro.org/t/increase-the-size-of-tray-icons-kde/12449/4
The following worked great for me. I like iconSize=2 for my desktop.
There has been some discussion about the systray icon size. The following fixed it for me…
Edit the file ~/.config/plasma-org.kde.plasma.desktop-appletsrc
After every line that commences extraItems= add another line iconSize=3
After a reboot the icons should have a much higher limit of size when adjusting the height of the panel.
Hope this helps.
"
Solution! 34
PLUS: Instead of restarting the computer, restart the plasma with the command:
killall plasmashell && kstart plasmashell
TIP: Do not open the “~/.config/plasma-org.kde.plasma.desktop-appletsrc” file as root/sudo!
>>>--------------------------------------------<<<
>>> The following may help or not <<<
>>>--------------------------------------------<<<
REF: https://userbase.kde.org/Session_Environment_Variables
[kurtis@xps15 env] $ mkdir -p .config/plasma-workspace/env
[kurtis@xps15 env] $ cd .config/plasma-workspace/env/
[kurtis@xps15 env] $ cat mysetup.sh
#!/bin/bash
export PLASMA_USE_QT_SCALING=1
export GDK_SCALE=2
export GDK_DPI_SCALE=0.5
export XCURSOR_SIZE=48
exit 0
chmod +x mysetup.sh
More???
>>>--------------------------------------------<<<
>>> The following no longer works in Fedora 28 <<<
>>>--------------------------------------------<<<
During the fresh install of Fedora 26 on my Dell XPS 15 (9560), I ran into small tray icons in the KDE tray. I fixed this when I had Fedora 25 on my laptop but I needed the fix again.
Googling found me this post in and Arch Linux Forum that fixed the icons.
https://bbs.archlinux.org/viewtopic.php?id=218210
Here is the fix from the above post:
Over the last couple of updates to KDE/Plasma the system tray icons have defaulted to a very small size. Since there is nothing in "System Tray Settings" about icon size I have been stuck with tiny icons. However, I have found the solution in a forum posting at KaOS: https://forum.kaosx.us/d/1548-systray-icon-size
In summary, the fix is to change one number in one xml file.
Edit the following file:
/usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/config/main.xml
line 49
<entry name="iconSize" type="Int">
<label>Default icon size for the systray icons, it's an enum which values mean, Small, SmallMedium, Medium, Large, Huge, Enormous respectively. On low DPI systems they correspond to 16, 22, 32, 48, 64, 128 pixels. On high DPI systems those values would be scaled up, depending on the DPI.</label>
<default>1</default>
</entry>
Change <default> which on my system, with plasma-desktop-5.8.1-1, is "1" or Small. I changed it to "2" or SmallMedium and my icons are now the proper size.
Logout of KDE and login again to effect the change.
I changed the default value to the value 2. Logging out and then back into my KDE session verified the tray icons are much more readable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment