-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathi3.nix
39 lines (32 loc) · 1 KB
/
i3.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
{ config, lib, pkgs, ... }:
let
mod = "Mod4";
in {
xsession.windowManager.i3 = {
enable = true;
config = {
modifier = mod;
keybindings = lib.mkOptionDefault {
};
startup = [
{ command = "xautolock -time 5 -locker i3lock"; notification = false; }
{ command = "slack"; }
{ command = "vivaldi"; }
{ command = "1password"; }
];
assigns = {
"1: web" = [{ class="^Vivaldi-stable$"; }];
"2: slack" = [{ class="^Slack$"; }];
"3: dev" = [{ class="^Cursor$"; }];
"5: rimu" = [{ class="^Koordinates$"; }];
};
};
extraConfig = ''
exec --no-startup-id "i3-msg 'workspace \"3: dev\"; append_layout /home/taylorl/dotfiles/i3-workspaces/dev.json'"
exec cursor
exec alacritty -e tmux
for_window [class="^Chromium-browser$"] move to workspace number 4
for_window [class="^Koordinates$" window_role="devtools"] move to workspace number 6
'';
};
}