IBus: Difference between revisions

Jasi (talk | contribs)
m Custom emojis: Modernize file template.
Jasi (talk | contribs)
Custom emojis: Improve diction.
Line 20: Line 20:


=== Custom emojis ===
=== Custom emojis ===
Custom emojis can be added to the emoji selection dialog of IBus. This can be used to workaround the fact that GTK does not support compose rules which output more than one unicode codepoint. Here an example [[Home Manager]] module:
Custom emojis can be added to the emoji selection dialog of IBus. This can be used to workaround the fact that GTK does not support compose rules which output more than one unicode codepoint. Here an example [[Home Manager]] snippet.
{{file|3={ pkgs, lib, config, ... }:
{{file|3={ pkgs, lib, config, ... }:
let
let
Line 37: Line 37:
}|name=~/.config/home-manager/home.nix|lang=nix}}
}|name=~/.config/home-manager/home.nix|lang=nix}}


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


== See also ==
== See also ==