hyprland: workspace/rules module init

still some work too be done, the regex types are cursed.
This commit is contained in:
ooks-io 2025-01-15 23:03:36 +11:00
parent 0b8a730519
commit 0873f56c28
5 changed files with 447 additions and 22 deletions

View file

@ -0,0 +1,37 @@
{osConfig, ...}: let
inherit (osConfig.ooknet) hardware;
multiMonitor = builtins.length hardware.monitors > 1;
primary = hardware.primaryMonitor;
secondary =
if multiMonitor
then (builtins.elemAt hardware.monitors 1).name
else primary;
in {
wayland.windowManager.hyprland.workspaces = {
"1" = {
name = "terminal";
monitor = primary;
default = true;
};
"2" = {
name = "browser";
monitor = primary;
};
"3" = {
name = "media";
monitor = secondary;
default = true;
};
"4" = {
name = "discord";
monitor = secondary;
};
"5" = {
name = "gaming";
monitor = primary;
};
"r[6-9]" = {
monitor = primary;
};
};
}