aboutsummaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2024-06-04 19:54:43 -0700
committerCaroline Larimore <caroline@larimo.re>2024-06-04 19:54:43 -0700
commit25098bf6460a834a9f2430fda00308c0fae60ffd (patch)
treeb2268a0f7fab24a9eea02eae9e2b90e56e208e52 /home
parent564ff591da98958f4f1d4b331fc1d90cde8ca5fa (diff)
Add fcitx5 config
Diffstat (limited to 'home')
-rw-r--r--home/default.nix1
-rw-r--r--home/fcitx5.nix62
2 files changed, 63 insertions, 0 deletions
diff --git a/home/default.nix b/home/default.nix
index 8bb2a62..dad4763 100644
--- a/home/default.nix
+++ b/home/default.nix
@@ -6,6 +6,7 @@
./discord.nix
./eww.nix
./fastfetch.nix
+ ./fcitx5.nix
./flameshot.nix
./git.nix
./gtk.nix
diff --git a/home/fcitx5.nix b/home/fcitx5.nix
new file mode 100644
index 0000000..4beb677
--- /dev/null
+++ b/home/fcitx5.nix
@@ -0,0 +1,62 @@
+# This file only handles theming of fcitx5.
+{ pkgs, config, ... }:
+
+{
+ xdg.dataFile."fcitx5/themes/nix-theme/theme.conf".source = let c = config.theme.colors; in (pkgs.formats.ini { }).generate "what" {
+ "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;
+ };
+ };
+} \ No newline at end of file