feat(toki-pona): init
This commit was merged in pull request #11.
This commit is contained in:
16
modules/home/toki-pona.nix
Normal file
16
modules/home/toki-pona.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let cfg = config.sydnix.toki-pona;
|
||||
in {
|
||||
options.sydnix.toki-pona = {
|
||||
enable = lib.mkEnableOption "Toki Pona fonts and input methods";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
# nasin-nanpa-ucsur
|
||||
nasin-nanpa
|
||||
nasin-nanpa-helvetica
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -18,6 +18,11 @@ in {
|
||||
pkgs.kdePackages.fcitx5-chinese-addons
|
||||
pkgs.fcitx5-hangul
|
||||
inputs.syd-fcitx5-tables.packages.${system}.default
|
||||
(pkgs.fcitx5-toki-pona.overrideAttrs (final: prev: {
|
||||
patches = prev.patches or [] ++ [
|
||||
./fcitx5/punctuation.patch
|
||||
];
|
||||
}))
|
||||
];
|
||||
settings = {
|
||||
# Bind QuickPhrase to `s-;`.
|
||||
@@ -26,8 +31,8 @@ in {
|
||||
};
|
||||
|
||||
globalOptions = {
|
||||
# Disable shift to toggle. I accidentally press it all the time.
|
||||
# 날 미치게 만들어요.
|
||||
# Disable shift to toggle. I accidentally press it all
|
||||
# the time. 날 미치게 만들어요.
|
||||
Hotkey.AltTriggerKeys = "";
|
||||
};
|
||||
|
||||
|
||||
22
modules/home/users/crumb/fcitx5/punctuation.patch
Normal file
22
modules/home/users/crumb/fcitx5/punctuation.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
diff --git a/static_tables/toki_pona_ucsur.txt b/static_tables/toki_pona_ucsur.txt
|
||||
index 1bacd3a..53f5c8e 100644
|
||||
--- a/static_tables/toki_pona_ucsur.txt
|
||||
+++ b/static_tables/toki_pona_ucsur.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-KeyCode=mnptkswljiueoa()[]{}^*.:"-_
|
||||
+KeyCode=mnptkswljiueoa()[]{}^*.:"-_<>,
|
||||
Length=16
|
||||
Prompt=
|
||||
ConstructPhrase=
|
||||
@@ -13,8 +13,11 @@ _
|
||||
^
|
||||
*
|
||||
.
|
||||
+, 。
|
||||
:
|
||||
-
|
||||
+< 「
|
||||
+> 」
|
||||
a
|
||||
akesi
|
||||
ala
|
||||
Reference in New Issue
Block a user