Plasma: Update panel configuration

Split main panel into launcher, status, and pager, in separate
sections of the screen

Fix location for notifications to bottom left corner

Add KDE scripting reference to bookmarks.json
This commit is contained in:
Evie Litherland-Smith 2024-06-23 18:25:45 +01:00
parent 47717a20ca
commit b6b6a1e9ca
2 changed files with 88 additions and 24 deletions

View file

@ -35,6 +35,11 @@
"url": "https://nix-community.github.io/home-manager/options.xhtml", "url": "https://nix-community.github.io/home-manager/options.xhtml",
"tags": ["Software", "Documentation", "Nix"] "tags": ["Software", "Documentation", "Nix"]
}, },
{
"name": "KDE Plasma Desktop Scripting",
"url": "https://develop.kde.org/docs/plasma/scripting/",
"tags": ["Software", "Documentation", "KDE", "Plasma"]
},
{ {
"name": "Awesome Emacs", "name": "Awesome Emacs",
"url": "https://github.com/emacs-tw/awesome-emacs", "url": "https://github.com/emacs-tw/awesome-emacs",

View file

@ -62,42 +62,96 @@
}; };
}; };
panels = [ panels = let
{ launcher = {
height = 44; height = 48;
lengthMode = "fill"; lengthMode = "fit";
location = "bottom"; location = "bottom";
alignment = "center"; alignment = "center";
hiding = "none"; hiding = "dodgewindows";
floating = true; floating = true;
widgets = [ widgets = [
{ {
name = "org.kde.plasma.kickoff"; name = "org.kde.plasma.kickoff";
config = {General.icon = "nix-snowflake";}; config.General = {
icon = "nix-snowflake";
favorites = [
"applications:emacsclient.desktop"
"applications:proton-bridge-gui.desktop"
"applications:org.kde.elisa.desktop"
"applications:org.kde.okular.desktop"
"applications:org.kde.gwenview.desktop"
"applications:org.inkscape.Inkscape.desktop"
"applications:writer.desktop"
"applications:calc.desktop"
"applications:impress.desktop"
"applications:webcord.desktop"
];
primaryActions = "0";
favoritesDisplay = "0";
applicationsDisplay = "1";
showActionButtonCaptions = "true";
compactMode = "false";
};
} }
{ {
name = "org.kde.plasma.icontasks"; name = "org.kde.plasma.icontasks";
config = { config.General.launchers = [
General.launchers = [ "applications:systemsettings.desktop"
"applications:systemsettings.desktop" "applications:org.kde.konsole.desktop"
"applications:org.kde.konsole.desktop" "applications:org.kde.dolphin.desktop"
"applications:org.kde.dolphin.desktop" "preferred://browser"
"applications:emacs.desktop" ];
"applications:firefox.desktop" }
]; ];
};
status = {
height = 32;
lengthMode = "fit";
location = "bottom";
alignment = "right";
hiding = "autohide";
floating = true;
widgets = [
{
systemTray = {
icons = {
spacing = "small";
scaleToFit = false;
};
}; };
} }
"org.kde.plasma.systemtray"
{ {
digitalClock = { digitalClock = {
time.format = "24h"; date.enable = false;
time = {
format = "24h";
showSeconds = "onlyInTooltip";
};
calendar.showWeekNumbers = true; calendar.showWeekNumbers = true;
}; };
} }
"org.kde.plasma.showdesktop"
]; ];
} };
]; pager = {
height = 128;
lengthMode = "fit";
location = "top";
alignment = "center";
hiding = "autohide";
floating = true;
widgets = [
{
name = "org.kde.plasma.pager";
config.General = {
showWindowIcons = "true";
showOnlyCurrentScreen = "false";
wrapPage = "true";
};
}
];
};
in [launcher status pager];
shortcuts = { shortcuts = {
kwin = { kwin = {
@ -120,18 +174,19 @@
}; };
configFile = { configFile = {
baloofilerc = {"Basic Settings"."Indexing-Enabled" = false;}; baloofilerc."Basic Settings"."Indexing-Enabled" = false;
kcminputrc.Keyboard.NumLock = 1; kcminputrc.Keyboard.NumLock = 1;
krunnerrc.General.FreeFloating = false;
kscreenlockerrc = {
Daemon.Timeout = 15;
Greeter.WallpaperPlugin = "org.kde.potd";
};
kdeglobals = { kdeglobals = {
General = { General = {
TerminalApplication = "konsole"; TerminalApplication = "konsole";
TerminalService = "org.kde.konsole.desktop"; TerminalService = "org.kde.konsole.desktop";
}; };
}; };
kscreenlockerrc = {
Daemon.Timeout = 15;
Greeter.WallpaperPlugin = "org.kde.potd";
};
kwinrc = { kwinrc = {
Windows = { Windows = {
FocusPolicy = "FocusFollowsMouse"; FocusPolicy = "FocusFollowsMouse";
@ -144,6 +199,10 @@
LongitudeFixed = "-1.2"; LongitudeFixed = "-1.2";
}; };
}; };
plasmanotifyrc.Notifications = {
NormalAlwaysOnTop = true;
PopupPosition = "BottomRight";
};
}; };
}; };
} }