feat(hyprland): tweak monitors again

This commit is contained in:
Mohammad Rafiq 2025-03-17 16:04:36 +08:00
parent 26c1cc06c3
commit 8278d4d8e0
2 changed files with 6 additions and 3 deletions

View file

@ -1,4 +1,5 @@
{ {
inputs,
pkgs, pkgs,
config, config,
... ...
@ -20,6 +21,7 @@
nvidia-container-toolkit.enable = true; nvidia-container-toolkit.enable = true;
graphics = { graphics = {
enable = true; enable = true;
package = inputs.hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system}.mesa.drivers;
extraPackages = with pkgs; [ extraPackages = with pkgs; [
nvidia-vaapi-driver # hardware acceleration nvidia-vaapi-driver # hardware acceleration
]; ];
@ -29,6 +31,7 @@
# powerManagement.enable = true; # powerManagement.enable = true;
open = false; open = false;
nvidiaSettings = true; nvidiaSettings = true;
nvidiaPersistenced = true;
package = config.boot.kernelPackages.nvidiaPackages.latest; package = config.boot.kernelPackages.nvidiaPackages.latest;
}; };
}; };

View file

@ -16,14 +16,14 @@
# Monitors # Monitors
monitor = [ monitor = [
# "DP-1, preferred, auto, 1" "desc:OOO AN-270W04K, 3840x2160@60, auto, auto"
# "HDMI-A-1, 1920x1080@60, -1280x0, 1.5" "desc:Philips Consumer Electronics Company PHL 246V5 AU11330000086, 1920x1080@60, auto-left, auto, transform, 3"
", preferred, auto, 1" ", preferred, auto, 1"
]; ];
# Switching to the current workspace will switch to the previous # Switching to the current workspace will switch to the previous
binds.workspace_back_and_forth = true; binds.workspace_back_and_forth = true;
cursor.default_monitor = "HDMI-A-2"; cursor.default_monitor = "HDMI-A-1";
# Windows # Windows
general = { general = {