color adjustments on the i3 bar

This commit is contained in:
Ingolf Wagner 2022-10-13 08:07:31 +02:00
parent 89e541f288
commit 798dd566a3
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -80,43 +80,47 @@ in
size = 9.0;
};
bars =
with colorTheme;
let
selected = blue;
in
[{
mode = "hide";
hiddenState = "hide";
position = "bottom";
position = "top";
workspaceButtons = true;
workspaceNumbers = true;
statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs ${config.users.users.mainUser.home}/.config/i3status-rust/config-my.toml";
fonts = [ "Terminus" ];
trayOutput = "primary";
colors = {
background = colorTheme.background;
statusline = colorTheme.background;
separator = colorTheme.background;
background = background;
statusline = background;
separator = background;
focusedWorkspace = {
border = colorTheme.foreground;
background = colorTheme.foreground;
text = colorTheme.background;
border = selected;
background = base02;
text = foreground;
};
activeWorkspace = {
border = colorTheme.background;
background = colorTheme.background;
text = colorTheme.foreground;
border = background;
background = base02;
text = foreground;
};
inactiveWorkspace = {
border = colorTheme.background;
background = colorTheme.background;
text = colorTheme.foreground;
border = background;
background = base02;
text = foreground;
};
urgentWorkspace = {
border = colorTheme.red;
background = colorTheme.background;
text = colorTheme.foreground;
border = red;
background = base02;
text = foreground;
};
bindingMode = {
border = colorTheme.background;
background = colorTheme.background;
text = colorTheme.foreground;
border = red;
background = red;
text = background;
};
};
}];
@ -195,7 +199,6 @@ in
"${cfg.config.modifier}+9" = "workspace number 9";
"${cfg.config.modifier}+0" = "workspace number 10";
"${cfg.config.modifier}+Escape" = "workspace back_and_forth";
"${cfg.config.modifier}+Shift+1" = "move container to workspace number 1";
"${cfg.config.modifier}+Shift+2" = "move container to workspace number 2";
@ -208,6 +211,13 @@ in
"${cfg.config.modifier}+Shift+9" = "move container to workspace number 9";
"${cfg.config.modifier}+Shift+0" = "move container to workspace number 10";
"${cfg.config.modifier}+Escape" = "workspace back_and_forth";
# rename workspace
"${cfg.config.modifier}+n" = ''
exec i3-input -F 'rename workspace to "%s"' -P 'New name for this workspace: '
'';
"${cfg.config.modifier}+Shift+c" = "reload";
"${cfg.config.modifier}+Shift+r" = "restart";
"${cfg.config.modifier}+Shift+e" = "exec i3-nagbar -t warning -m 'Do you want to exit i3?' -b 'Yes' 'i3-msg exit'";
@ -216,6 +226,8 @@ in
# like vimperator
"${cfg.config.modifier}+grave" = "exec ${pkgs.i3-easyfocus}/bin/i3-easyfocus";
};
};