From b07b91d6b6637378ccc2b8251d347a46e6f3cf79 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Wed, 22 Nov 2023 14:30:25 +0800 Subject: [PATCH] home, modules: add blackbox and wezterm to ./modules/terms/experimental --- .../modules/terms/experimental/blackbox.nix | 50 +++++++++++++++++++ .../modules/terms/experimental/wezterm.nix | 17 +++++++ 2 files changed, 67 insertions(+) create mode 100644 users/guanranwang/home-manager/modules/terms/experimental/blackbox.nix create mode 100644 users/guanranwang/home-manager/modules/terms/experimental/wezterm.nix diff --git a/users/guanranwang/home-manager/modules/terms/experimental/blackbox.nix b/users/guanranwang/home-manager/modules/terms/experimental/blackbox.nix new file mode 100644 index 0000000..c6b6bc9 --- /dev/null +++ b/users/guanranwang/home-manager/modules/terms/experimental/blackbox.nix @@ -0,0 +1,50 @@ +{ + lib, + pkgs, + ... +}: { + home.packages = [pkgs.blackbox-terminal]; + + # classic... dconf + dconf.settings."com/raggesilver/BlackBox" = { + pretty = false; # "Theme Integration" + cursor-shape = lib.hm.gvariant.mkUint32 1; # "line" cursor + #show-headerbar = false; + terminal-padding = lib.hm.gvariant.mkTuple [ + (lib.hm.gvariant.mkUint32 12) + (lib.hm.gvariant.mkUint32 12) + (lib.hm.gvariant.mkUint32 12) + (lib.hm.gvariant.mkUint32 12) + ]; + }; + + # TODO: Tokyo Night + # Example: + #'' + # { + # "name": "Gruvbox for Tilix", + # "comment": "Ported for Trilix Colour Scheme", + # "use-theme-colors": false, + # "foreground-color": "#ebdbb2", + # "background-color": "#282828", + # "palette": [ + # "#282829", + # "#cc241d", + # "#98971a", + # "#d79921", + # "#458588", + # "#b16286", + # "#689d6a", + # "#a89984", + # "#928374", + # "#fb4934", + # "#b8bb26", + # "#fabd2f", + # "#83a598", + # "#d3869b", + # "#8ec07c", + # "#ebdbb2" + # ] + # } + #''; +} diff --git a/users/guanranwang/home-manager/modules/terms/experimental/wezterm.nix b/users/guanranwang/home-manager/modules/terms/experimental/wezterm.nix new file mode 100644 index 0000000..c72cad2 --- /dev/null +++ b/users/guanranwang/home-manager/modules/terms/experimental/wezterm.nix @@ -0,0 +1,17 @@ +{...}: { + programs.wezterm = { + enable = true; + extraConfig = '' + return { + color_scheme = "Tokyo Night", + default_cursor_style = 'SteadyBar', + window_padding = { + left = "12px", + right = "12px", + top = "12px", + bottom = "12px", + }, + } + ''; + }; +}