notes
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| notes [2020/07/01 13:59] – josh | notes [2023/03/19 09:49] (current) – add KDE Plasma Task Manager button width josh | ||
|---|---|---|---|
| Line 355: | Line 355: | ||
| / | / | ||
| / | / | ||
| + | </ | ||
| + | |||
| + | ====== 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 ''/ | ||
| + | |||
| + | <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); | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | plasmashell can be restarted to see the change take effect with: | ||
| + | |||
| + | < | ||
| + | killall plasmashell; | ||
| </ | </ | ||
notes.1593626377.txt.gz · Last modified: by josh
