blob: 12afe0a112d5ee344487847001ca534d5e481ca2 (
plain)
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
|
{
config,
pkgs,
unstablePkgs,
unfreePkgs,
unstableUnfreePkgs,
userOptions,
lib,
nixgl,
...
}:
{
imports = [
../../modules/base.nix
];
home.sessionPath = [
"${userOptions.userHome}/.local/share/coursier/bin"
];
home.packages = [
pkgs.nixgl.nixGLIntel
];
xsession = {
enable = true;
windowManager.i3 = {
enable = true;
config = {
modifier = "Mod4";
fonts = {
names = [ "${userOptions.fontName} SemiBold" ];
size = 10.0;
};
terminal = "nixGLIntel alacritty";
keybindings =
let
mod = "Mod4";
in
{
"${mod}+Return" = "exec nixGLIntel alacritty";
"${mod}+o" = "exec ~/Applications/firefox/firefox";
"${mod}+d" = "exec dmenu_run";
"${mod}+b" = "workspace back_and_forth";
"${mod}+c" = "kill";
"${mod}+f" = "fullscreen toggle";
"${mod}+h" = "split h";
"${mod}+v" = "split v";
"${mod}+Left" = "focus left";
"${mod}+Down" = "focus down";
"${mod}+Up" = "focus up";
"${mod}+Right" = "focus right";
"${mod}+Shift+Left" = "move left";
"${mod}+Shift+Down" = "move down";
"${mod}+Shift+Up" = "move up";
"${mod}+Shift+Right" = "move right";
"${mod}+Shift+c" = "reload";
"${mod}+Shift+r" = "restart";
"${mod}+Shift+e" =
"exec i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'";
"${mod}+1" = "workspace number 1";
"${mod}+2" = "workspace number 2";
"${mod}+3" = "workspace number 3";
"${mod}+4" = "workspace number 4";
"${mod}+5" = "workspace number 5";
"${mod}+6" = "workspace number 6";
"${mod}+7" = "workspace number 7";
"${mod}+8" = "workspace number 8";
"${mod}+9" = "workspace number 9";
"${mod}+0" = "workspace number 10";
"${mod}+Shift+1" = "move container to workspace 1";
"${mod}+Shift+2" = "move container to workspace 2";
"${mod}+Shift+3" = "move container to workspace 3";
"${mod}+Shift+4" = "move container to workspace 4";
"${mod}+Shift+5" = "move container to workspace 5";
"${mod}+Shift+6" = "move container to workspace 6";
"${mod}+Shift+7" = "move container to workspace 7";
"${mod}+Shift+8" = "move container to workspace 8";
"${mod}+Shift+9" = "move container to workspace 9";
"${mod}+Shift+0" = "move container to workspace 10";
};
startup = [
{ command = "i3-msg workspace 1"; notification = false; }
];
bars = [
{
fonts = {
names = [ userOptions.fontName ];
style = "SemiBold";
size = 10.0;
};
position = "bottom";
statusCommand = "i3status";
}
];
gaps = {
smartGaps = true;
inner = 10;
outer = 5;
};
window = {
border = 1;
titlebar = false;
commands = [
{
criteria = {
window_role = "About";
};
command = "floating enable";
}
];
};
};
};
};
programs.i3status = {
enable = true;
enableDefault = false;
general = {
colors = true;
interval = 5;
};
modules = {
"tztime local" = {
position = 6;
settings = {
format = "%Y-%m-%d %H:%M";
};
};
"disk /" = {
position = 5;
settings = {
format = "disk: %free";
};
};
"cpu_usage" = {
position = 4;
settings = {
format = "cpu: %usage";
};
};
"cpu_temperature 0" = {
position = 3;
settings = {
format = "cpu: %degrees°C";
path = "/sys/class/hwmon/hwmon1/temp1_input";
};
};
"cpu_temperature 1" = {
position = 2;
settings = {
format = "gpu: %degrees°C";
path = "/sys/class/hwmon/hwmon2/temp1_input";
};
};
"memory" = {
position = 1;
settings = {
format = "mem: %percentage_used";
};
};
};
};
programs.alacritty.settings.font.size = lib.mkForce 8;
services.gpg-agent.pinentry.package = pkgs.pinentry-curses;
programs.zsh.shellAliases.pbcopy = "xclip -selection clipboard";
services.sctd-amir = {
enable = true;
latitude = 53.3498;
longitude = -6.2603;
};
home.keyboard = {
layout = "us,ir";
options = [
"grp:shifts_toggle"
"caps:swapescape"
];
};
}
|