From 5bc25b4dfb2b4bfa706f6ecc226f201fa6fec409 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Sat, 22 Feb 2025 16:33:48 +0800 Subject: [PATCH] feat(nixos): add browser and monitor config to Hyprland --- configuration.nix | 4 +++- home.nix | 13 ++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 9262ee3..6312c75 100644 --- a/configuration.nix +++ b/configuration.nix @@ -78,7 +78,6 @@ isNormalUser = true; description = "Mohammad Rafiq"; extraGroups = [ "networkmanager" "wheel" ]; - packages = with pkgs; []; }; ############################## @@ -108,6 +107,9 @@ # Terminal kitty # Terminal Emulator (requirement for default Hyprland) + + # Browser + firefox ]; ############################## diff --git a/home.nix b/home.nix index 122f450..3a6dcc7 100644 --- a/home.nix +++ b/home.nix @@ -49,11 +49,22 @@ ]; settings = { - "$mainMod" = "SUPER"; # Sets the modifier key to Windows key + monitor = [ + "HDMI-A-1, 3840x2160@60, 0x0, 2" + "DP-6, 1920x1080@60, -1920x0, 1" + ", preferred, auto, 1" + ]; + "$mainMod" = "SUPER"; # Windows key + "$mod" = "CTRL"; "$terminal" = "kitty"; + "$browser" = "firefox"; bind = [ "$mainMod, Q, exec, $terminal" "$mainMod, W, killactive" + "$mainMod, E, exec, $browser" + ]; + bindm = [ + "$mod, mouse:272, movewindow" ]; debug = { disable_logs = false;