From 3ed4f45d84883bd3c3314008228433a66b28bb47 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 28 Sep 2024 06:12:37 +0100 Subject: [PATCH] Split KDE panels in 2 again Move "main" panel to top of screen. Split kickoff and tasks to separate, window-dodging panel at bottom of screen. Swap kicker back for kickoff to remove that weird spacing issue for the icon. --- system/home/plasma/default.nix | 67 ++++++++++++++++++++-------------- 1 file changed, 40 insertions(+), 27 deletions(-) diff --git a/system/home/plasma/default.nix b/system/home/plasma/default.nix index aaa32ac2..68dcacf3 100644 --- a/system/home/plasma/default.nix +++ b/system/home/plasma/default.nix @@ -70,38 +70,15 @@ panels = [ { - height = 32; + height = 24; lengthMode = "fill"; - location = "bottom"; + location = "top"; alignment = "center"; hiding = "normalpanel"; floating = true; + screen = "all"; widgets = [ - { - name = "org.kde.plasma.kicker"; - config.General = { - icon = "nix-snowflake"; - appNameFormat = 0; - limitDepth = true; - alphaSort = true; - recentOrdering = 0; - showRecentApps = true; - showRecentDocs = true; - showIconsRootLevel = true; - }; - } - "org.kde.plasma.marginsseparator" - { - name = "org.kde.plasma.icontasks"; - config.General = { - maxStripes = "1"; - showToolTips = "true"; - launchers = [ - "preferred://filemanager" - "applications:emacs.desktop" - ]; - }; - } + "org.kde.plasma.appmenu" "org.kde.plasma.panelspacer" { name = "org.kde.plasma.pager"; @@ -148,6 +125,42 @@ } ]; } + { + height = 36; + lengthMode = "fit"; + location = "bottom"; + alignment = "center"; + hiding = "dodgewindows"; + floating = true; + screen = "all"; + widgets = [ + { + name = "org.kde.plasma.kickoff"; + config.General = { + icon = "nix-snowflake"; + primaryActions = "0"; + favoritesDisplay = "0"; + applicationsDisplay = "1"; + pin = "false"; + showActionButtonCaptions = "true"; + compactMode = "false"; + }; + } + "org.kde.plasma.marginsseparator" + { + name = "org.kde.plasma.icontasks"; + config.General = { + maxStripes = "1"; + showToolTips = "true"; + launchers = [ + "preferred://filemanager" + "preferred://browser" + "applications:emacs.desktop" + ]; + }; + } + ]; + } ]; shortcuts = {