aboutsummaryrefslogtreecommitdiff
path: root/snowfall/modules/home/desktop/components/fcitx5/default.nix
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-04-14 19:01:38 -0700
committerCaroline Larimore <caroline@larimo.re>2025-04-14 19:01:38 -0700
commite8077fde966e051fc449fffcfa061c7f7edc47b0 (patch)
treea0b1ce60f2718f90c64e924ed8df8d5d4f0d2289 /snowfall/modules/home/desktop/components/fcitx5/default.nix
parente486d896215e7ef04438809952bc7317512d5765 (diff)
migration: finalize
Diffstat (limited to 'snowfall/modules/home/desktop/components/fcitx5/default.nix')
-rw-r--r--snowfall/modules/home/desktop/components/fcitx5/default.nix82
1 files changed, 0 insertions, 82 deletions
diff --git a/snowfall/modules/home/desktop/components/fcitx5/default.nix b/snowfall/modules/home/desktop/components/fcitx5/default.nix
deleted file mode 100644
index 0eb0a4c..0000000
--- a/snowfall/modules/home/desktop/components/fcitx5/default.nix
+++ /dev/null
@@ -1,82 +0,0 @@
-{ options, config, osConfig, lib, pkgs, namespace, ... }:
-
-with lib; with lib.${namespace}; let
- cfg = config.${namespace}.desktop.components.fcitx5;
- oscfg = osConfig.${namespace}.hardware.keyboard.jp;
- desktop = config.${namespace}.desktop;
- impermanence = config.${namespace}.impermanence;
-in {
- options.${namespace}.desktop.components.fcitx5 = with types; {
- enable = mkEnableOption "fcitx5 theming";
- };
-
- config = mkIf (cfg.enable && oscfg.enable) {
- #TODO: investigate generating config files instead of persisting
- home.persistence.${impermanence.location} = {
- directories = [
- ".config/fcitx"
- ".config/fcitx5"
- ];
- };
-
- xdg.dataFile."fcitx5/themes/nix-theme/theme.conf".source = let
- c = desktop.theme.colors;
- in (pkgs.formats.ini {}).generate "fcitx5-theme.conf" {
- "Metadata" = {
- Name = "nix-theme";
- Author = "CartConnoisseur";
- Description = "Theme generated by NixOS";
- Version = 1;
- };
-
- "InputPanel" = {
- NormalColor = "#${c.fg}";
- HighlightColor = "#${c.fg}";
- HighlightBackgroundColor = "#00000000";
- HighlightCandidateColor = "#${c.bg}";
-
- FullWidthHighlight = true;
- PageButtonAlignment = "Last Candidate";
- };
-
- "InputPanel/Background" = {
- Color = "#${c.bg}";
- BorderColor = "#${c.fg1}";
- BorderWidth = 2;
- };
-
- # "InputPanel/Background/Margin" = {
- # Left = 10;
- # Right = 10;
- # Top = 10;
- # Bottom = 10;
- # };
-
- "InputPanel/Highlight" = {
- Color = "#${c.fg}";
- BorderWidth = 0;
- };
-
- "InputPanel/Highlight/Margin" = {
- Left = 2;
- Right = 2;
- Top = 2;
- Bottom = 2;
- };
-
- "InputPanel/ContentMargin" = {
- Left = 2;
- Right = 2;
- Top = 2;
- Bottom = 2;
- };
-
- "InputPanel/TextMargin" = {
- Left = 5;
- Right = 5;
- Top = 5;
- Bottom = 5;
- };
- };
- };
-}