This repository has been archived on 2024-07-03. You can view files and clone it, but cannot push or open issues or pull requests.
home-manager/programs/desktop/plasma6/default.nix
Evie Litherland-Smith cfac416750 Add plasma-manager module
Add initial config to expand upon, as well as copy of example from
plasma-manager repo and current export from Scorch before applying
plasma-manager
2024-06-17 13:53:08 +01:00

104 lines
2.3 KiB
Nix

{
config,
lib,
pkgs,
fonts,
...
}: {
home.packages = with pkgs; [
fonts.serif.package
fonts.sansSerif.package
fonts.monospace.package
volantes-cursors
(papirus-icon-theme.override {color = "violet";})
];
services.gpg-agent.pinentryPackage = pkgs.pinentry-qt;
programs.plasma = {
enable = true;
workspace = {
clickItemTo = "open";
lookAndFeel = "org.kde.breeze.desktop";
cursor = {
theme = "volantes_cursors";
size = 32;
};
iconTheme = "Papirus";
wallpaper = "${../wallpapers/landscapes/tropic_island_day.jpg}";
};
fonts = let
general = {
family = fonts.sansSerif.name;
pointSize = 10;
};
fixedWidth = {
family = fonts.monospace.name;
pointSize = 10;
};
in {
inherit general fixedWidth;
menu = general;
toolbar = general;
windowTitle = general;
small = {
inherit (general) family;
pointSize = general.pointSize-2;
};
};
hotkeys.commands."launch-konsole" = {
name = "Launch Konsole";
key = "Meta+Alt+K";
command = "konsole";
};
panels = [
{
location = "left";
widgets = [
{
name = "org.kde.plasma.kickoff";
config = {General.icon = "nix-snowflake-white";};
}
{
name = "org.kde.plasma.icontasks";
config = {
General.launchers = [
"applications:org.kde.dolphin.desktop"
"applications:org.kde.konsole.desktop"
];
};
}
"org.kde.plasma.marginsseperator"
"org.kde.plasma.systemtray"
"org.kde.plasma.digitalclock"
];
}
# Global menu at the top
{
location = "top";
height = 26;
widgets = [
"org.kde.plasma.appmenu"
];
}
];
shortcuts = {
ksmserver = {
"Lock Session" = ["Screensaver" "Meta+Ctrl+Alt+L"];
};
kwin = {
"Expose" = "Meta+,";
"Switch Window Down" = "Meta+J";
"Switch Window Left" = "Meta+H";
"Switch Window Right" = "Meta+L";
"Switch Window Up" = "Meta+K";
};
};
configFile = {
kscreenlockerrc = {
Greeter.WallpaperPlugin = "org.kde.potd";
};
};
};
}