plasma-manager
plasma-manager copied to clipboard
Panel definition with org.kde.plasma.icon
Hello,
I have defined a bottom panel to only contain 5 icons like so (with programs.plasma.overrideConfig = true),
panels = [
# Windows-like panel at the bottom
{
location = "top";
widgets = [
{
kickoff = {
sortAlphabetically = true;
icon = "nix-snowflake-white";
};
}
{
iconTasks = {
launchers = [
"applications:systemsettings.desktop"
];
};
}
"org.kde.plasma.pager"
"org.kde.plasma.marginsseparator"
{
systemTray.items = {
# We explicitly show bluetooth and battery
shown = [
"org.kde.plasma.battery"
"org.kde.plasma.bluetooth"
];
# And explicitly hide networkmanagement and volume
hidden = [
"org.kde.plasma.networkmanagement"
"org.kde.plasma.volume"
];
};
}
{
digitalClock = {
calendar.firstDayOfWeek = "sunday";
time.format = "12h";
};
}
];
}
{
location = "bottom";
height = 48;
hiding = "dodgewindows";
alignment = "center";
lengthMode = "fit";
widgets = [
{
name = "org.kde.plasma.icontasks";
config = {
General = {
launchers = [
"applications:firefox.desktop"
"applications:org.kde.konsole.desktop"
"applications:org.kde.kwrite.desktop"
"applications:org.kde.dolphin.desktop"
"applications:org.kde.spectacle.desktop"
];
};
};
}
];
}
];
However new icons from tasks are being added automatically (e.g. virtualbox got added)
How do i ensure that the icons dont get added?
Thanks
What i want is something like this which uses org.kde.plasma.icon rather than org.kde.plasma.icontasks,
[Containments][26][Applets][29][Configuration]
PreloadWeight=42
localPath=/home/user/.local/share/plasma_icons/firefox.desktop
url=file:///nix/store/7dbi13dn9zhyndkais2is7bxwr8xz6wk-user-environment/share/applications/firefox.desktop
[Containments][26][Applets][30]
immutability=1
plugin=org.kde.plasma.icon
[Containments][26][Applets][30][Configuration]
PreloadWeight=42
localPath=/home/user/.local/share/plasma_icons/org.kde.kcalc.desktop
url=file:///nix/store/7dbi13dn9zhyndkais2is7bxwr8xz6wk-user-environment/share/applications/org.kde.kcalc.desktop
[Containments][26][Applets][31]
immutability=1
plugin=org.kde.plasma.icon
[Containments][26][Applets][31][Configuration]
PreloadWeight=42
localPath=/home/user/.local/share/plasma_icons/org.kde.konsole.desktop
url=file:///nix/store/c47q184xqw40syycd2rc9f277i81fjbr-system-path/share/applications/org.kde.konsole.desktop
How do i get this?
Can you check if running the following command applies the config?
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript "$(cat ~/.local/share/plasma-manager/data/desktop_script_panels.js)"
I think the config is applied correctly but i need support for a different plugin (org.kde.plasma.icon) rather than org.kde.plasma.icontasks.