feat(greetd): add monitor config from hyprland settings
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-02-06 16:17:37 -05:00
parent 7f4496ed51
commit 9ddec92f41

View file

@ -13,6 +13,7 @@
isTouchscreen = config.hardware.sensor.iio.enable;
hyprland = config.home-manager.users.${mainUser}.wayland.windowManager.hyprland.finalPackage;
monitors = config.home-manager.users.${mainUser}.wayland.windowManager.hyprland.settings.monitor;
# Show Regreet on all monitors
dupeMonitors = pkgs.writeShellApplication {
@ -56,6 +57,7 @@
"env = __GLX_VENDOR_LIBRARY_NAME,nvidia\n"
"env = WLR_NO_HARDWARE_CURSORS,1\n"
])
++ map (x: "monitor=${x}\n") monitors
++ [
"exec-once = ${setupMonitors}\n"