mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 02:52:55 +00:00
actually activate i3 config
This commit is contained in:
parent
69f5375541
commit
47d09a98e2
@ -11,8 +11,11 @@
|
||||
polybarFull # Polybar + PulseAudio
|
||||
];
|
||||
|
||||
home-manager.users.${user}.xsession.windowManager.i3.config = let
|
||||
modifier = "Mod4"; # Super key
|
||||
home-manager.users.${user}.xsession.windowManager.i3 = {
|
||||
enable = true;
|
||||
config = let
|
||||
modifier =
|
||||
config.home-manager.users.${user}.xsession.windowManager.i3.config.modifier;
|
||||
ws1 = "1:";
|
||||
ws2 = "2:";
|
||||
ws3 = "3:";
|
||||
@ -24,13 +27,14 @@
|
||||
ws9 = "9:";
|
||||
ws10 = "10:";
|
||||
in {
|
||||
modifier = modifier;
|
||||
modifier = "Mod4"; # Super key
|
||||
assigns = {
|
||||
"${ws1}" = [{ class = "^Firefox$"; }];
|
||||
"${ws2}" = [{ class = "^Alacritty$"; }];
|
||||
"${ws3}" = [{ class = "^Discord$"; }];
|
||||
"${ws4}" = [{ class = "^Steam$"; }];
|
||||
};
|
||||
bars = [{ command = "echo"; }]; # Disable i3bar
|
||||
colors = let
|
||||
background = "#2f343f";
|
||||
inactiveBackground = "#2f343f";
|
||||
@ -43,24 +47,28 @@
|
||||
focused = {
|
||||
inherit background indicator text;
|
||||
border = background;
|
||||
childBorder = background;
|
||||
};
|
||||
focusedInactive = {
|
||||
inherit indicator;
|
||||
background = inactiveBackground;
|
||||
border = inactiveBackground;
|
||||
childBorder = inactiveBackground;
|
||||
text = inactiveText;
|
||||
};
|
||||
placeholder = { };
|
||||
# placeholder = { };
|
||||
unfocused = {
|
||||
inherit indicator;
|
||||
background = inactiveBackground;
|
||||
border = inactiveBackground;
|
||||
childBorder = inactiveBackground;
|
||||
text = inactiveText;
|
||||
};
|
||||
urgent = {
|
||||
inherit text indicator;
|
||||
background = urgentBackground;
|
||||
border = urgentBackground;
|
||||
childBorder = urgentBackground;
|
||||
};
|
||||
};
|
||||
floating.modifier = modifier;
|
||||
@ -79,7 +87,8 @@
|
||||
"XF86AudioRaiseVolume" = "exec --no-startup-id pamixer -i 2";
|
||||
"XF86AudioLowerVolume" = "exec --no-startup-id pamixer -d 2";
|
||||
"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
|
||||
"Shift+F12" =
|
||||
@ -100,11 +109,12 @@
|
||||
# Launchers
|
||||
"${modifier}+Return" = "exec alacritty";
|
||||
"${modifier}+d" = "exec --no-startup-id dmenu_run";
|
||||
"${modifier}+c" = "reload";
|
||||
"${modifier}+r" = "restart";
|
||||
"${modifier}+Shift+c" = "reload";
|
||||
"${modifier}+Shift+r" = "restart";
|
||||
"${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'"'';
|
||||
"${modifier}+Shift+x" = ''exec i3lock --color "#2f343f"'';
|
||||
"${modifier}+Shift+t" = "exec alacritty";
|
||||
|
||||
# Window options
|
||||
"${modifier}+Shift+q" = "kill";
|
||||
@ -220,6 +230,7 @@
|
||||
};
|
||||
workspaceAutoBackAndForth = false;
|
||||
workspaceOutputAssign = [ ];
|
||||
};
|
||||
extraConfig = "";
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user