nicks-nix-config/modules/hyprland/monitors.nix

28 lines
726 B
Nix
Raw Permalink Normal View History

2023-10-26 18:26:39 -07:00
{ hostname ? "undefined" }:
# Yes, this is less efficient, but I wanted to save this solution to the issue for future reference
let
monitor_config = if (hostname == "NicksNixDesktop") then
''
2023-11-16 18:46:46 -08:00
monitor=DP-3, 2560x1440@144, 1920x0, 1
2023-10-28 13:46:56 -07:00
monitor=DP-2, 1920x1080@60, 0x360,1
2023-10-26 18:26:39 -07:00
env = LIBVA_DRIVER_NAME,nvidia
env = XDG_SESSION_TYPE,wayland
env = GBM_BACKEND,nvidia-drm
env = WLR_NO_HARDWARE_CURSORS,1
2023-12-02 18:20:32 -08:00
env = SIGNAL_USE_WAYLAND,1
2023-10-26 18:26:39 -07:00
''
2023-12-17 15:37:09 -08:00
else if (hostname == "NicksNixLaptop") then ''
monitor=eDP-1, 1920x1080@60, 0x0, 1
2023-10-26 18:26:39 -07:00
2023-12-17 15:37:09 -08:00
env = XDG_SESSION_TYPE,wayland
env = SIGNAL_USE_WAYLAND,1
env = WLR_NO_HARDWARE_CURSORS,1
'' else ''
2023-10-26 18:26:39 -07:00
2023-12-17 15:37:09 -08:00
'';
2023-10-26 18:26:39 -07:00
in monitor_config