From c9cfbb515be4b45a3c03ffb0ea14aa8c6ccc7760 Mon Sep 17 00:00:00 2001 From: chn Date: Sun, 11 Feb 2024 21:41:43 +0800 Subject: [PATCH] users.chn.plasma: add yakuake and konsole --- flake.lock | 17 ++++++++ flake.nix | 1 + local/pkgs/default.nix | 1 + local/pkgs/slate/default.nix | 10 +++++ modules/packages/desktop/default.nix | 1 + modules/users/chn/plasma.nix | 61 ++++++++++++++++++++++++++++ 6 files changed, 91 insertions(+) create mode 100644 local/pkgs/slate/default.nix diff --git a/flake.lock b/flake.lock index ac8eb574..d2069170 100644 --- a/flake.lock +++ b/flake.lock @@ -1845,6 +1845,7 @@ "pnpm2nix-nzbr": "pnpm2nix-nzbr", "qchem": "qchem", "rsshub": "rsshub", + "slate": "slate", "sops-nix": "sops-nix", "tgbot-cpp": "tgbot-cpp", "v-sim": "v-sim", @@ -1884,6 +1885,22 @@ "type": "github" } }, + "slate": { + "flake": false, + "locked": { + "lastModified": 1626631298, + "narHash": "sha256-3tbB16sWVUqiHAfeFc0FnFb0Cf6ZFxYWsYAyexeZVxk=", + "owner": "TheBigWazz", + "repo": "Slate", + "rev": "ff21b49c6e49b5a9f89497e4fea49a5a0c39bd6b", + "type": "github" + }, + "original": { + "owner": "TheBigWazz", + "repo": "Slate", + "type": "github" + } + }, "sln-mode": { "flake": false, "locked": { diff --git a/flake.nix b/flake.nix index a9a09075..51edcb58 100644 --- a/flake.nix +++ b/flake.nix @@ -60,6 +60,7 @@ win11os-kde = { url = "github:yeyushengfan258/Win11OS-kde"; flake = false; }; fluent-kde = { url = "github:vinceliuice/Fluent-kde"; flake = false; }; blurred-wallpaper = { url = "github:bouteillerAlan/blurredwallpaper"; flake = false; }; + slate = { url = "github:TheBigWazz/Slate"; flake = false; }; }; outputs = inputs: diff --git a/local/pkgs/default.nix b/local/pkgs/default.nix index bf499dad..eefb47fe 100644 --- a/local/pkgs/default.nix +++ b/local/pkgs/default.nix @@ -48,4 +48,5 @@ win11os-kde = callPackage ./win11os-kde { src = topInputs.win11os-kde; }; fluent-kde = callPackage ./fluent-kde { src = topInputs.fluent-kde; }; blurred-wallpaper = callPackage ./blurred-wallpaper { src = topInputs.blurred-wallpaper; }; + slate = callPackage ./slate { src = topInputs.slate; }; } diff --git a/local/pkgs/slate/default.nix b/local/pkgs/slate/default.nix new file mode 100644 index 00000000..da90bbd4 --- /dev/null +++ b/local/pkgs/slate/default.nix @@ -0,0 +1,10 @@ +{ stdenv, src }: stdenv.mkDerivation +{ + name = "slate"; + src = "${src}/Slate.tar.gz"; + installPhase = + '' + mkdir -p $out/share/yakuake/skins/Slate + cp -r * $out/share/yakuake/skins/Slate + ''; +} diff --git a/modules/packages/desktop/default.nix b/modules/packages/desktop/default.nix index 8ec76303..d86efd25 100644 --- a/modules/packages/desktop/default.nix +++ b/modules/packages/desktop/default.nix @@ -31,6 +31,7 @@ inputs: mpv nomacs # themes tela-circle-icon-theme localPackages.win11os-kde localPackages.fluent-kde localPackages.blurred-wallpaper + localPackages.slate ]; users.sharedModules = [(homeInputs: { diff --git a/modules/users/chn/plasma.nix b/modules/users/chn/plasma.nix index 05b8b4c0..eecaa408 100644 --- a/modules/users/chn/plasma.nix +++ b/modules/users/chn/plasma.nix @@ -210,5 +210,66 @@ inputs: { configFile.krunnerrc = { General.FreeFloating = true; Plugins.baloosearchEnabled = false; }; } # lock screen { configFile.kscreenlockerrc.Daemon.Autolock = false; } + # konsole and yakuake + { + configFile = + { + yakuakerc = + { + Appearance = + { + HideSkinBorders = true; + Skin = "Slate"; + Translucency = true; + }; + "Desktop Entry".DefaultProfile = "plasma-manager.profile"; + Dialogs.FirstRun = false; + Window = + { + KeepOpen = false; + KeepOpenAfterLastSessionCloses = true; + ShowSystrayIcon = false; + }; + }; + konsolerc = + { + "Desktop Entry".DefaultProfile = "plasma-manager.profile"; + "MainWindow.Toolbar sessionToolbar".ToolButtonStyle = "IconOnly"; + }; + }; + dataFile."konsole/plasma-manager.profile" = + { + Appearance = + { + AntiAliasFonts = true; + BoldIntense = true; + ColorScheme = "Breeze"; + Font = "FiraCode Nerd Font Mono,10,-1,5,50,0,0,0,0,0"; + UseFontLineChararacters = true; + WordModeAttr = false; + }; + "Cursor Options".CursorShape = 1; + General = + { + Name = "plasma-manager"; + Parent = "FALLBACK/"; + TerminalCenter = true; + TerminalMargin = 1; + }; + "Interaction Options" = + { + AutoCopySelectedText = true; + TrimLeadingSpacesInSelectedText = true; + TrimTrailingSpacesInSelectedText = true; + UnderlineFilesEnabled = true; + }; + Scrolling = + { + HistoryMode = 2; + ReflowLines = false; + }; + "Terminal Features".BlinkingCursorEnabled = true; + }; + } ]; }