actually activate i3 config

This commit is contained in:
Noah Masur 2022-04-30 08:42:08 -04:00
parent 69f5375541
commit 47d09a98e2

View File

@ -11,8 +11,11 @@
polybarFull # Polybar + PulseAudio polybarFull # Polybar + PulseAudio
]; ];
home-manager.users.${user}.xsession.windowManager.i3.config = let home-manager.users.${user}.xsession.windowManager.i3 = {
modifier = "Mod4"; # Super key enable = true;
config = let
modifier =
config.home-manager.users.${user}.xsession.windowManager.i3.config.modifier;
ws1 = "1:"; ws1 = "1:";
ws2 = "2:"; ws2 = "2:";
ws3 = "3:"; ws3 = "3:";
@ -24,13 +27,14 @@
ws9 = "9:"; ws9 = "9:";
ws10 = "10:"; ws10 = "10:";
in { in {
modifier = modifier; modifier = "Mod4"; # Super key
assigns = { assigns = {
"${ws1}" = [{ class = "^Firefox$"; }]; "${ws1}" = [{ class = "^Firefox$"; }];
"${ws2}" = [{ class = "^Alacritty$"; }]; "${ws2}" = [{ class = "^Alacritty$"; }];
"${ws3}" = [{ class = "^Discord$"; }]; "${ws3}" = [{ class = "^Discord$"; }];
"${ws4}" = [{ class = "^Steam$"; }]; "${ws4}" = [{ class = "^Steam$"; }];
}; };
bars = [{ command = "echo"; }]; # Disable i3bar
colors = let colors = let
background = "#2f343f"; background = "#2f343f";
inactiveBackground = "#2f343f"; inactiveBackground = "#2f343f";
@ -43,24 +47,28 @@
focused = { focused = {
inherit background indicator text; inherit background indicator text;
border = background; border = background;
childBorder = background;
}; };
focusedInactive = { focusedInactive = {
inherit indicator; inherit indicator;
background = inactiveBackground; background = inactiveBackground;
border = inactiveBackground; border = inactiveBackground;
childBorder = inactiveBackground;
text = inactiveText; text = inactiveText;
}; };
placeholder = { }; # placeholder = { };
unfocused = { unfocused = {
inherit indicator; inherit indicator;
background = inactiveBackground; background = inactiveBackground;
border = inactiveBackground; border = inactiveBackground;
childBorder = inactiveBackground;
text = inactiveText; text = inactiveText;
}; };
urgent = { urgent = {
inherit text indicator; inherit text indicator;
background = urgentBackground; background = urgentBackground;
border = urgentBackground; border = urgentBackground;
childBorder = urgentBackground;
}; };
}; };
floating.modifier = modifier; floating.modifier = modifier;
@ -79,7 +87,8 @@
"XF86AudioRaiseVolume" = "exec --no-startup-id pamixer -i 2"; "XF86AudioRaiseVolume" = "exec --no-startup-id pamixer -i 2";
"XF86AudioLowerVolume" = "exec --no-startup-id pamixer -d 2"; "XF86AudioLowerVolume" = "exec --no-startup-id pamixer -d 2";
"XF86AudioMute" = "exec --no-startup-id pamixer -t"; "XF86AudioMute" = "exec --no-startup-id pamixer -t";
"XF86AudioMicMute" = "exec --no-startup-id pamixer --default-source -t"; "XF86AudioMicMute" =
"exec --no-startup-id pamixer --default-source -t";
# Adjust screen brightness # Adjust screen brightness
"Shift+F12" = "Shift+F12" =
@ -100,11 +109,12 @@
# Launchers # Launchers
"${modifier}+Return" = "exec alacritty"; "${modifier}+Return" = "exec alacritty";
"${modifier}+d" = "exec --no-startup-id dmenu_run"; "${modifier}+d" = "exec --no-startup-id dmenu_run";
"${modifier}+c" = "reload"; "${modifier}+Shift+c" = "reload";
"${modifier}+r" = "restart"; "${modifier}+Shift+r" = "restart";
"${modifier}+Shift+e" = '' "${modifier}+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'"''; 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'"'';
"${modifier}+Shift+x" = ''exec i3lock --color "#2f343f"''; "${modifier}+Shift+x" = ''exec i3lock --color "#2f343f"'';
"${modifier}+Shift+t" = "exec alacritty";
# Window options # Window options
"${modifier}+Shift+q" = "kill"; "${modifier}+Shift+q" = "kill";
@ -220,6 +230,7 @@
}; };
workspaceAutoBackAndForth = false; workspaceAutoBackAndForth = false;
workspaceOutputAssign = [ ]; workspaceOutputAssign = [ ];
};
extraConfig = ""; extraConfig = "";
}; };