IBus: Difference between revisions

Jasi (talk | contribs)
Input methods: Remove snippet about nix-repl which lacks context for loading nixpkgs and is inferior to the second option of viewing the option docs.
Jasi (talk | contribs)
Improve wiki page structure and old templates.
Line 2: Line 2:


== Installation ==
== Installation ==
Enabling IBus is described in the [https://nixos.org/nixos/manual/index.html#module-services-input-methods-ibus manual].
Enabling IBus is described in the [https://nixos.org/nixos/manual/index.html#module-services-input-methods-ibus manual]. To enable it is as follows:
Mainly, it can be done as follows:


{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|3={pkgs, lib, ...}:
{pkgs, lib, ...}:
{
{
  i18n.inputMethod = {
  i18n.inputMethod = {
   enable = true;
   enable = true;
   type = "ibus";
   type = "ibus";
   ibus.engines = with pkgs.ibus-engines; [ /* any engine you want, for example */ anthy ];
   ibus.engines = with pkgs.ibus-engines; [  
    # Your engines here
  ];
  };
  };
}
}|name=/etc/nixos/configuration.nix|lang=nix}}Available engines are listed under the <code>pkgs.ibus-engines</code> attribute set. The list of available engines can be viewed in the documentation for the {{nixos:option|i18n.inputMethod.ibus.engines}}option.
</nowiki>}}After rebuilding and switching to the new configuration, you still need to logout from your session and login again for ibus to work correctly.


=== Input methods ===
After rebuilding and switching to the new configuration, you still need to logout from your session and login again for ibus to work correctly.


Available engines are listed under the `pkgs.ibus-engines` attribute set.
== Troubleshooting ==
 
The list of available engines can be viewed in the documentation for the {{nixos:option|i18n.inputMethod.ibus.engines}}option.


=== Custom emojis ===
=== Custom emojis ===
Line 41: Line 38:
}
}
</nowiki>}}
</nowiki>}}


Then, typing <code>Ctrl+Shift+e</code> and then <code>shrug</code>, Space and Return will insert <code>¯\_(ツ)_/¯</code>.
Then, typing <code>Ctrl+Shift+e</code> and then <code>shrug</code>, Space and Return will insert <code>¯\_(ツ)_/¯</code>.