home: Add xcompose

This commit is contained in:
Simon Bruder 2020-11-07 15:54:56 +01:00
parent a01adec1f0
commit c5e32b564b
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 90 additions and 0 deletions

View file

@ -38,6 +38,7 @@ in
./modules/misc.nix ./modules/misc.nix
./modules/mpd.nix ./modules/mpd.nix
./modules/sway.nix ./modules/sway.nix
./modules/xcompose.nix
./modules/xdg.nix ./modules/xdg.nix
./modules/zathura.nix ./modules/zathura.nix
]; ];

View file

@ -0,0 +1,89 @@
{
home.file.".XCompose".text = ''
include "%L"
# units
<Multi_key> <l> <l> : "" U2113 # litre symbol
<Multi_key> <u> <space> : "" U202F # NARROW NO-BREAK SPACE
<Multi_key> <z> <space> : "" U200B # ZERO WIDTH SPACE
# maths
<Multi_key> <p> <i> : "π" U03C0 # GREEK SMALL LETTER PI
<Multi_key> <exclam> <equal> : "" U2260 # NOT EQUAL TO
<Multi_key> <slash> <equal> : "" U2260 # NOT EQUAL TO
<Multi_key> <asciitilde> <equal> : "" U2248 # ALMOST EQUAL TO
<Multi_key> <i> <n> : "" U2208 # ELEMENT OF
<Multi_key> <s> <q> : "" U221A # SQUARE ROOT
<Multi_key> <d> <e> : "Δ" U0394 # GREEK CAPITAL LETTER DELTA
<Multi_key> <bar> <C> : "" U2102 # DOUBLE-STRUCK CAPITAL C (set of complex numbers)
<Multi_key> <bar> <N> : "" U2115 # DOUBLE-STRUCK CAPITAL N (natural number)
<Multi_key> <bar> <P> : "" U2119 # DOUBLE-STRUCK CAPITAL P
<Multi_key> <bar> <Q> : "" U211A # DOUBLE-STRUCK CAPITAL Q (set of rational numbers)
<Multi_key> <bar> <R> : "" U211D # DOUBLE-STRUCK CAPITAL R (set of real numbers)
<Multi_key> <bar> <Z> : "" U2124 # DOUBLE-STRUCK CAPITAL Z (set of integers)
<Multi_key> <L> <L> : "𝕃" U1D543 # DOUBLE-STRUCK CAPITAL L
<Multi_key> <bar> <O> : "Ω" U03A9 # Greek Capital Letter Omega
# right typography
## english
<Multi_key> <space> <minus> : "" # EM DASH surrounded by THIN SPACEs.
## roman numerals
### small
<Multi_key> <percent> <1> : "" U2170 # SMALL ROMAN NUMERAL ONE
<Multi_key> <percent> <2> : "" U2171 # SMALL ROMAN NUMERAL TWO
<Multi_key> <percent> <3> : "" U2172 # SMALL ROMAN NUMERAL THREE
<Multi_key> <percent> <4> : "" U2173 # SMALL ROMAN NUMERAL FOUR
<Multi_key> <percent> <5> : "" U2174 # SMALL ROMAN NUMERAL FIVE
<Multi_key> <percent> <6> : "" U2175 # SMALL ROMAN NUMERAL SIX
<Multi_key> <percent> <7> : "" U2176 # SMALL ROMAN NUMERAL SEVEN
<Multi_key> <percent> <8> : "" U2177 # SMALL ROMAN NUMERAL EIGHT
<Multi_key> <percent> <9> : "" U2178 # SMALL ROMAN NUMERAL NINE
<Multi_key> <percent> <x> : "" U2179 # SMALL ROMAN NUMERAL TEN
<Multi_key> <percent> <underscore> <1> : "" U217A # SMALL ROMAN NUMERAL ELEVEN
<Multi_key> <percent> <underscore> <2> : "" U217B # SMALL ROMAN NUMERAL TWELVE
<Multi_key> <percent> <l> : "" U217C # SMALL ROMAN NUMERAL FIFTY
<Multi_key> <percent> <c> : "" U217D # SMALL ROMAN NUMERAL ONE HUNDRED
<Multi_key> <percent> <d> : "" U217E # SMALL ROMAN NUMERAL FIVE HUNDRED
<Multi_key> <percent> <m> : "" U217F # SMALL ROMAN NUMERAL ONE THOUSAND
### capital
<Multi_key> <percent> <0> <1> : "" U2160 # ROMAN NUMERAL ONE
<Multi_key> <percent> <0> <2> : "" U2161 # ROMAN NUMERAL TWO
<Multi_key> <percent> <0> <3> : "" U2162 # ROMAN NUMERAL THREE
<Multi_key> <percent> <0> <4> : "" U2163 # ROMAN NUMERAL FOUR
<Multi_key> <percent> <0> <5> : "" U2164 # ROMAN NUMERAL FIVE
<Multi_key> <percent> <0> <6> : "" U2165 # ROMAN NUMERAL SIX
<Multi_key> <percent> <0> <7> : "" U2166 # ROMAN NUMERAL SEVEN
<Multi_key> <percent> <0> <8> : "" U2167 # ROMAN NUMERAL EIGHT
<Multi_key> <percent> <0> <9> : "" U2168 # ROMAN NUMERAL NINE
<Multi_key> <percent> <0> <x> : "" U2169 # ROMAN NUMERAL TEN
<Multi_key> <percent> <underscore> <0> <1> : "" U216A # ROMAN NUMERAL ELEVEN
<Multi_key> <percent> <underscore> <0> <2> : "" U216B # ROMAN NUMERAL TWELVE
<Multi_key> <percent> <0> <l> : "" U216C # ROMAN NUMERAL FIFTY
<Multi_key> <percent> <0> <c> : "" U216D # ROMAN NUMERAL ONE HUNDRED
<Multi_key> <percent> <0> <d> : "" U216E # ROMAN NUMERAL FIVE HUNDRED
<Multi_key> <percent> <0> <m> : "" U216F # ROMAN NUMERAL ONE THOUSAND
<Multi_key> <percent> <X> : "" U2169 # ROMAN NUMERAL TEN
<Multi_key> <percent> <L> : "" U216C # ROMAN NUMERAL FIFTY
<Multi_key> <percent> <C> : "" U216D # ROMAN NUMERAL ONE HUNDRED
<Multi_key> <percent> <D> : "" U216E # ROMAN NUMERAL FIVE HUNDRED
<Multi_key> <percent> <M> : "" U216F # ROMAN NUMERAL ONE THOUSAND
<Multi_key> <percent> <0> <C> <D> : "" U2180 # ROMAN NUMERAL ONE THOUSAND C D
<Multi_key> <percent> <0> <D> : "" U2181 # ROMAN NUMERAL FIVE THOUSAND
<Multi_key> <percent> <0> <M> : "" U2182 # ROMAN NUMERAL TEN THOUSAND
<Multi_key> <percent> <0> <0> <D> : "" U2187 # ROMAN NUMERAL FIFTY THOUSAND
<Multi_key> <percent> <0> <0> <M> : "" U2188 # ROMAN NUMERAL ONE HUNDRED THOUSAND
# symbols
<Multi_key> <Left> <Left> : "" leftarrow # LEFTWARDS ARROW
<Multi_key> <Up> <Up> : "" uparrow # UPWARDS ARROW
<Multi_key> <Right> <Right> : "" rightarrow # RIGHTWARDS ARROW
<Multi_key> <Down> <Down> : "" downarrow # DOWNWARDS ARROW
<Multi_key> <o> <k> : "" U2713 # CHECK MARK
<Multi_key> <n> <o> : "" U274F # CROSS MARK
<Multi_key> <t> <u> : "👍" U1F44D # THUMBS UP SIGN
'';
}