define yukari's monitors
This commit is contained in:
parent
daf734ba0c
commit
27e703cf11
4 changed files with 96 additions and 7 deletions
|
@ -44,6 +44,7 @@
|
|||
"SUPER,Return,exec,${terminal}"
|
||||
"SUPERSHIFT,q,killactive" # exit program
|
||||
"SUPERSHIFT,e,exit" # exit hyprland
|
||||
"SUPERSHIFT,r,exec,hyprctl reload" # reload currently running hyprland
|
||||
|
||||
"SUPER,s,togglesplit" # horizontal split
|
||||
"SUPER,f,fullscreen,1" # borderless window
|
||||
|
@ -81,6 +82,18 @@
|
|||
++
|
||||
# move windows
|
||||
(lib.mapAttrsToList (key: direction: "SUPERCONTROL,${key},movewindoworgroup,${direction}") directions);
|
||||
|
||||
monitor = map (
|
||||
m: "${m.name},${
|
||||
if m.enabled
|
||||
then "${toString m.width}x${toString m.height}@${toString m.refreshRate},${m.position},1"
|
||||
else "disable"
|
||||
}"
|
||||
) config.monitors;
|
||||
|
||||
workspace = map (m: "name:${m.workspace},monitor:${m.name}") (
|
||||
lib.filter (m: m.enabled && m.workspace != null) config.monitors
|
||||
);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,8 +1,28 @@
|
|||
# yukari is an arch-based (for now) distro running in Windows under WSL
|
||||
# as such, it does not have or need a graphical shell
|
||||
{ inputs, lib, pkgs, ... }: {
|
||||
# yukari my main desktop workstation, running nixos
|
||||
{ pkgs, ... }: {
|
||||
imports = [
|
||||
./global.nix
|
||||
./desktop/hyprland
|
||||
];
|
||||
|
||||
# ---------- ------
|
||||
# | HDMI-A-5 | | DP-5 |
|
||||
# ---------- ------
|
||||
config.monitors = [
|
||||
{
|
||||
name = "HDMI-A-5";
|
||||
width = 3440;
|
||||
height = 1440;
|
||||
workspace = "1";
|
||||
primary = true;
|
||||
position = "0x0";
|
||||
}
|
||||
{
|
||||
name = "DP-5";
|
||||
width = 2560;
|
||||
height = 1440;
|
||||
workspace = "2";
|
||||
position = "3440x0";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue