about summary refs log tree commit diff
path: root/home/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'home/profiles')
-rw-r--r--home/profiles/gui/config/sway.nix4
-rw-r--r--home/profiles/gui/default.nix2
2 files changed, 4 insertions, 2 deletions
diff --git a/home/profiles/gui/config/sway.nix b/home/profiles/gui/config/sway.nix
index 5577baf..eb4248c 100644
--- a/home/profiles/gui/config/sway.nix
+++ b/home/profiles/gui/config/sway.nix
@@ -1,4 +1,4 @@
-{ pkgs, neotheme }:
+{ config, pkgs, neotheme }:
 
 with neotheme.colors;
 
@@ -8,6 +8,8 @@ with neotheme.colors;
 
   exec autotiling
 
+  exec ${config.i18n.inputMethod.enabled} # assume binary name == option name
+
   # set modifiers
   set $mod Mod4
   set $alt Mod1
diff --git a/home/profiles/gui/default.nix b/home/profiles/gui/default.nix
index 1a4086f..32a6d47 100644
--- a/home/profiles/gui/default.nix
+++ b/home/profiles/gui/default.nix
@@ -86,7 +86,7 @@ in
         export XDG_CURRENT_DESKTOP=sway;
       '';
 
-      extraConfig = import ./config/sway.nix { inherit pkgs neotheme; };
+      extraConfig = import ./config/sway.nix { inherit config pkgs neotheme; };
     };
 
     i18n.inputMethod.enabled = "fcitx5";