-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome-darwin.nix
142 lines (133 loc) · 4.3 KB
/
home-darwin.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{pkgs, ...}: {
home = {
file = {
"Library/Application\ Support/neovide/neovide-settings.json".text = import ./users/zcoyle/by-app/neovide.nix;
".config/borders/bordersrc".executable = true;
".config/borders/bordersrc".text = ''
#!/bin/bash
options=(
style=round
width=6.0
hidpi=on
active_color=0xffebdbb2
inactive_color=0xff282828
background_color=0x302c2e34
blur_radius=25
)
borders "''${options[@]}"
'';
".config/karabiner/karabiner.json".text = builtins.toJSON {
global = {
ask_for_confirmation_before_quitting = true;
check_for_updates_on_startup = true;
show_in_menu_bar = true;
show_profile_name_in_menu_bar = true;
unsafe_ui = false;
};
profiles = [
{
complex_modifications = {
parameters = {
"basic.simultaneous_threshold_milliseconds" = 50;
"basic.to_delayed_action_delay_milliseconds" = 500;
"basic.to_if_alone_timeout_milliseconds" = 1000;
"basic.to_if_held_down_threshold_milliseconds" = 500;
"mouse_motion_to_scroll.speed" = 100;
};
rules = [
{
description = "Tap Caps Lock for ESC or Hold for Control";
manipulators = [
{
from = {
key_code = "caps_lock";
modifiers = {
optional = ["any"];
};
};
to = [
{
key_code = "left_control";
lazy = true;
}
];
to_if_alone = [{key_code = "escape";}];
type = "basic";
}
];
title = "Tap Caps Lock for ESC or Hold for Control";
}
];
};
devices = [];
fn_function_keys = [
{
from.key_code = "f1";
to = [{consumer_key_code = "display_brightness_decrement";}];
}
{
from.key_code = "f2";
to = [{consumer_key_code = "display_brightness_increment";}];
}
{
from.key_code = "f3";
to = [{apple_vendor_keyboard_key_code = "mission_control";}];
}
{
from.key_code = "f4";
to = [{apple_vendor_keyboard_key_code = "spotlight";}];
}
{
from.key_code = "f5";
to = [{consumer_key_code = "dictation";}];
}
{
from.key_code = "f6";
to = [{key_code = "f6";}];
}
{
from.key_code = "f7";
to = [{consumer_key_code = "rewind";}];
}
{
from.key_code = "f8";
to = [{consumer_key_code = "play_or_pause";}];
}
{
from.key_code = "f9";
to = [{consumer_key_code = "fast_forward";}];
}
{
from.key_code = "f10";
to = [{consumer_key_code = "mute";}];
}
{
from.key_code = "f11";
to = [{consumer_key_code = "volume_decrement";}];
}
{
from.key_code = "f12";
to = [{consumer_key_code = "volume_increment";}];
}
];
name = "Default profile";
parameters = {
delay_milliseconds_before_open_device = 1000;
};
selected = true;
simple_modifications = [];
virtual_hid_keyboard = {
country_code = 0;
indicate_sticky_modifier_keys_state = true;
mouse_key_xy_scale = 100;
};
}
];
};
};
packages = with pkgs; [karabiner-elements];
};
programs = {
firefox.package = pkgs.firefox-bin;
};
}