IBus: Difference between revisions

Jasi (talk | contribs)
Improve wiki page structure and old templates.
Jasi (talk | contribs)
m Custom emojis: Modernize file template.
Line 21: Line 21:
=== 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]] module:
{{file|~/.config/nixpkgs/home.nix|nix|<nowiki>
{{file|3={ pkgs, lib, config, ... }:
{ pkgs, lib, config, ... }:
let
let
   /* define here the list of desired favorite emoji */
   /* define here the list of desired favorite emoji */
Line 36: Line 35:
     favorites = mkArray type.string (lib.attrValues fav);
     favorites = mkArray type.string (lib.attrValues fav);
   };
   };
}
}|name=~/.config/home-manager/home.nix|lang=nix}}
</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>.