mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 04:02:55 +00:00
fix polybar workspace order
This commit is contained in:
parent
e9de34405f
commit
446fc5d5c1
@ -4,7 +4,7 @@
|
|||||||
home-manager.users.${config.user}.home.packages = with pkgs; [
|
home-manager.users.${config.user}.home.packages = with pkgs; [
|
||||||
mpv # Video viewer
|
mpv # Video viewer
|
||||||
sxiv # Image viewer
|
sxiv # Image viewer
|
||||||
zathura # PDF viewer
|
mupdf # PDF viewer
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -20,22 +20,22 @@
|
|||||||
package = pkgs.i3-gaps;
|
package = pkgs.i3-gaps;
|
||||||
config = let
|
config = let
|
||||||
modifier = "Mod4"; # Super key
|
modifier = "Mod4"; # Super key
|
||||||
ws1 = "I";
|
ws1 = "1:I";
|
||||||
ws2 = "II";
|
ws2 = "2:II";
|
||||||
ws3 = "III";
|
ws3 = "3:III";
|
||||||
ws4 = "IV";
|
ws4 = "4:IV";
|
||||||
ws5 = "V";
|
ws5 = "5:V";
|
||||||
ws6 = "VI";
|
ws6 = "6:VI";
|
||||||
ws7 = "VII";
|
ws7 = "7:VII";
|
||||||
ws8 = "VIII";
|
ws8 = "8:VIII";
|
||||||
ws9 = "IX";
|
ws9 = "9:IX";
|
||||||
ws10 = "X";
|
ws10 = "10:X";
|
||||||
in {
|
in {
|
||||||
modifier = modifier;
|
modifier = modifier;
|
||||||
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
|
bars = [{ command = "echo"; }]; # Disable i3bar
|
||||||
|
@ -32,9 +32,7 @@
|
|||||||
padding-left = 2;
|
padding-left = 2;
|
||||||
padding-right = 2;
|
padding-right = 2;
|
||||||
module-margin = 1;
|
module-margin = 1;
|
||||||
# separator = "|";
|
modules-left = "i3";
|
||||||
# separator-foreground = colors.disabled;
|
|
||||||
modules-left = "xworkspaces";
|
|
||||||
modules-center = "xwindow";
|
modules-center = "xwindow";
|
||||||
modules-right = "pulseaudio date";
|
modules-right = "pulseaudio date";
|
||||||
cursor-click = "pointer";
|
cursor-click = "pointer";
|
||||||
@ -46,6 +44,32 @@
|
|||||||
# wm-restack = "i3";
|
# wm-restack = "i3";
|
||||||
# override-redirect = true;
|
# override-redirect = true;
|
||||||
};
|
};
|
||||||
|
"module/i3" = let padding = 2;
|
||||||
|
in {
|
||||||
|
type = "internal/i3";
|
||||||
|
pin-workspaces = false;
|
||||||
|
show-urgent = true;
|
||||||
|
strip-wsnumbers = true;
|
||||||
|
index-sort = true;
|
||||||
|
enable-click = true;
|
||||||
|
wrapping-scroll = true;
|
||||||
|
fuzzy-match = true;
|
||||||
|
format = "<label-state> <label-mode>";
|
||||||
|
label-focused = "%name%";
|
||||||
|
label-focused-foreground = config.gui.colorscheme.base01;
|
||||||
|
label-focused-background = config.gui.colorscheme.base05;
|
||||||
|
label-focused-underline = config.gui.colorscheme.base03;
|
||||||
|
label-focused-padding = padding;
|
||||||
|
label-unfocused = "%name%";
|
||||||
|
label-unfocused-padding = padding;
|
||||||
|
label-visible = "%name%";
|
||||||
|
label-visible-underline = config.gui.colorscheme.base01;
|
||||||
|
label-visible-padding = padding;
|
||||||
|
label-urgent = "%name%";
|
||||||
|
label-urgent-foreground = config.gui.colorscheme.base00;
|
||||||
|
label-urgent-background = config.gui.colorscheme.base08;
|
||||||
|
label-urgent-padding = padding;
|
||||||
|
};
|
||||||
"module/xworkspaces" = {
|
"module/xworkspaces" = {
|
||||||
type = "internal/xworkspaces";
|
type = "internal/xworkspaces";
|
||||||
label-active = "%name%";
|
label-active = "%name%";
|
||||||
@ -156,4 +180,3 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user