mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Fix monitor name
This commit is contained in:
parent
633e306306
commit
de87c67a25
3 changed files with 59 additions and 74 deletions
|
|
@ -14,29 +14,30 @@
|
|||
separator = "";
|
||||
};
|
||||
icons = "awesome5";
|
||||
blocks = [{
|
||||
block = "sound";
|
||||
format = " $icon $volume ";
|
||||
click = [{
|
||||
button = "left";
|
||||
cmd = "pavucontrol";
|
||||
}];
|
||||
} {
|
||||
blocks = [
|
||||
{
|
||||
block = "sound";
|
||||
format = " $icon $volume ";
|
||||
click = [{
|
||||
button = "left";
|
||||
cmd = "pavucontrol";
|
||||
}];
|
||||
}
|
||||
{
|
||||
block = "time";
|
||||
format = "$icon $timestamp.datetime(f:'%Y-%m-%d %a %H:%M:%S') ";
|
||||
interval = 1;
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
xsession.windowManager.i3 = let
|
||||
modifier = "Mod4";
|
||||
wsAmount = 10;
|
||||
genSpaces = f: map builtins.toString (
|
||||
builtins.genList f wsAmount
|
||||
);
|
||||
workspaces = genSpaces (x: x+1);
|
||||
|
||||
genSpaces = f: map builtins.toString (builtins.genList f wsAmount);
|
||||
workspaces = genSpaces (x: x + 1);
|
||||
|
||||
in {
|
||||
enable = true;
|
||||
config = {
|
||||
|
|
@ -53,38 +54,43 @@
|
|||
workspaceAutoBackAndForth = true;
|
||||
focus.wrapping = "yes";
|
||||
|
||||
startup = [ ] ++ lib.optionals config.mods.social.enable [{
|
||||
command = "exec vesktop";
|
||||
}];
|
||||
|
||||
assigns = {
|
||||
"2" = [{ class = "^electron$"; }];
|
||||
"3" = [{ class = "^Steam$"; }];
|
||||
};
|
||||
|
||||
keybindings = let
|
||||
# modKeyComb: string -> valueAction: string
|
||||
# -> keys: [string] -> values: [string]
|
||||
# -> keybindings: attrSet { string -> string }
|
||||
zipBinds = comb: action: keys: values: (
|
||||
builtins.listToAttrs (lib.zipListsWith (k: v: {
|
||||
zipBinds = comb: action: keys: values:
|
||||
(builtins.listToAttrs (lib.zipListsWith (k: v: {
|
||||
name = "${modifier}${comb}${k}";
|
||||
value = "${action} ${v}";
|
||||
}) keys values)
|
||||
);
|
||||
}) keys values));
|
||||
|
||||
moveKeys = ["h" "j" "k" "l"];
|
||||
moveDirs = ["left" "down" "up" "right"];
|
||||
moveKeys = [ "h" "j" "k" "l" ];
|
||||
moveDirs = [ "left" "down" "up" "right" ];
|
||||
|
||||
workspKeys = genSpaces (x: lib.mod (x+1) wsAmount);
|
||||
workspKeys = genSpaces (x: lib.mod (x + 1) wsAmount);
|
||||
|
||||
in lib.mkOptionDefault (
|
||||
(zipBinds "+" "focus" moveKeys moveDirs) //
|
||||
(zipBinds "+Shift+" "move" moveKeys moveDirs) //
|
||||
(zipBinds "+" "workspace number" workspKeys workspaces) //
|
||||
(zipBinds "+Shift+" "move container to workspace number"
|
||||
workspKeys workspaces) //
|
||||
{
|
||||
"XF86AudioRaiseVolume" =
|
||||
"exec --no-startup-id pactl set-sink-volume 0 +2%";
|
||||
"XF86AudioLowerVolume" =
|
||||
"exec --no-startup-id pactl set-sink-volume 0 -2%";
|
||||
}
|
||||
);
|
||||
in lib.mkOptionDefault ((zipBinds "+" "focus" moveKeys moveDirs)
|
||||
// (zipBinds "+Shift+" "move" moveKeys moveDirs)
|
||||
// (zipBinds "+" "workspace number" workspKeys workspaces)
|
||||
// (zipBinds "+Shift+" "move container to workspace number" workspKeys
|
||||
workspaces) // {
|
||||
"XF86AudioRaiseVolume" =
|
||||
"exec --no-startup-id pactl set-sink-volume 0 +2%";
|
||||
"XF86AudioLowerVolume" =
|
||||
"exec --no-startup-id pactl set-sink-volume 0 -2%";
|
||||
});
|
||||
|
||||
bars = let
|
||||
status_conf =
|
||||
status_conf =
|
||||
"${config.xdg.configHome}/i3status-rust/config-default.toml";
|
||||
stylix_bar = {
|
||||
mode = "dock";
|
||||
|
|
@ -96,9 +102,7 @@
|
|||
workspaceNumbers = true;
|
||||
trayOutput = "primary";
|
||||
} // config.lib.stylix.i3.bar;
|
||||
in [
|
||||
stylix_bar
|
||||
];
|
||||
in [ stylix_bar ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue