From 7cf01bb2d5983ba3f0ae29cc3c7fe56837ea8059 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Sun, 18 May 2025 17:12:01 +0800 Subject: [PATCH] feat(hyprland): add home-manager configuration for hyprland --- homes/x86_64-linux/rafiq/default.nix | 1 + homes/x86_64-linux/rafiq/programs/hyprland.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 homes/x86_64-linux/rafiq/programs/hyprland.nix diff --git a/homes/x86_64-linux/rafiq/default.nix b/homes/x86_64-linux/rafiq/default.nix index 527c93d..5ab1656 100644 --- a/homes/x86_64-linux/rafiq/default.nix +++ b/homes/x86_64-linux/rafiq/default.nix @@ -3,6 +3,7 @@ { imports = [ ./programs/git.nix + ./programs/hyprland.nix ]; home.stateVersion = "24.11"; diff --git a/homes/x86_64-linux/rafiq/programs/hyprland.nix b/homes/x86_64-linux/rafiq/programs/hyprland.nix new file mode 100644 index 0000000..9186ac2 --- /dev/null +++ b/homes/x86_64-linux/rafiq/programs/hyprland.nix @@ -0,0 +1,17 @@ +{config, lib, osConfig, ...}: +{ + xdg.configFile."uwsm/env".text = # sh + '' + + ''; + wayland.windowManager.hyprland = { + enable = true; + systemd.enable = false; + settings = { + "$hypr" = "CTRL_SUPER_ALT_SHIFT"; + bind = [ + "$hypr, Q, exec, uwsm stop" + ]; + }; + }; +}