IBus: Difference between revisions
→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. |
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: | ||
{{file| | {{file|3={pkgs, lib, ...}: | ||
{pkgs, lib, ...}: | |||
{ | { | ||
i18n.inputMethod = { | i18n.inputMethod = { | ||
enable = true; | enable = true; | ||
type = "ibus"; | type = "ibus"; | ||
ibus.engines = with pkgs.ibus-engines; [ | 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. | ||
</ | |||
After rebuilding and switching to the new configuration, you still need to logout from your session and login again for ibus to work correctly. | |||
== Troubleshooting == | |||
=== 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>. | ||