1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-09 10:17:02 +00:00
nix-darwin/modules/system/defaults/hitoolbox.nix

30 lines
718 B
Nix
Raw Normal View History

2024-10-27 23:37:08 -07:00
{ lib, ... }:
{
options = {
system.defaults.hitoolbox.AppleFnUsageType = lib.mkOption {
type = lib.types.nullOr (lib.types.enum [
"Do Nothing"
"Change Input Source"
"Show Emoji & Symbols"
"Start Dictation"
]);
apply = key: if key == null then null else {
"Do Nothing" = 0;
"Change Input Source" = 1;
"Show Emoji & Symbols" = 2;
"Start Dictation" = 3;
}.${key};
default = null;
description = ''
Chooses what happens when you press the Fn key on the keyboard. A restart is required for
this setting to take effect.
The default is unset ("Show Emoji & Symbols").
'';
};
};
}