User Tools

Site Tools


notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
notes [2020/07/01 13:59] joshnotes [2023/03/19 09:49] (current) – add KDE Plasma Task Manager button width josh
Line 355: Line 355:
 /usr/bin/printf '\xfe\xed\xfe\xed\x00\x00\x00\x02\x00\x00\x00\x00\xe2\x68\x6e\x45\xfb\x43\xdf\xa4\xd9\x92\xdd\x41\xce\xb6\xb2\x1c\x63\x30\xd7\x92' > /etc/ssl/certs/java/cacerts /usr/bin/printf '\xfe\xed\xfe\xed\x00\x00\x00\x02\x00\x00\x00\x00\xe2\x68\x6e\x45\xfb\x43\xdf\xa4\xd9\x92\xdd\x41\xce\xb6\xb2\x1c\x63\x30\xd7\x92' > /etc/ssl/certs/java/cacerts
 /var/lib/dpkg/info/ca-certificates-java.postinst configure /var/lib/dpkg/info/ca-certificates-java.postinst configure
 +</code>
 +
 +====== KDE Plasma Task Manager button width ======
 +
 +When turning on Group by Program name but turning off Combine into a single button, the maximum task manager button size decreases.
 +I fixed this by editing preferredMaxWidth() in ''/usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/code/layout.js'':
 +
 +<code javascript>
 +function preferredMaxWidth() {
 +    if (tasks.iconsOnly) {
 +        if (tasks.vertical) {
 +            return tasks.width + verticalMargins();
 +        } else {
 +            return tasks.height + horizontalMargins();
 +        }
 +    }
 +
 +//    if (plasmoid.configuration.groupingStrategy != 0 && !plasmoid.configuration.groupPopups) {
 +//        return preferredMinWidth();
 +//    }
 +
 +    return Math.floor(preferredMinWidth() * 1.6);
 +}
 +</code>
 +
 +plasmashell can be restarted to see the change take effect with:
 +
 +<code>
 +killall plasmashell; kstart5 plasmashel
 </code> </code>
notes.1593626377.txt.gz · Last modified: by josh