From da55dac3d52d0100e66769bc34e469fff7ebecfc Mon Sep 17 00:00:00 2001 From: Ahwx Date: Tue, 18 Nov 2025 10:45:36 +0100 Subject: [PATCH] feat: add compose key to `ralt`; adds lock shortcut and lock on lid switch --- modules/home/hyprland/config.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/home/hyprland/config.nix b/modules/home/hyprland/config.nix index 2652a51..ceaf21d 100644 --- a/modules/home/hyprland/config.nix +++ b/modules/home/hyprland/config.nix @@ -40,7 +40,7 @@ input = { kb_layout = "us,jp"; - kb_options = "caps:ctrl_modifier"; + kb_options = "caps:ctrl_modifier,compose:ralt"; numlock_by_default = true; follow_mouse = 1; sensitivity = 0; @@ -171,6 +171,7 @@ "$mainMod, Space, togglefloating," "$mainMod, D, exec, bemenu-run -l 5 --ignorecase" "SUPER SHIFT, L, exec, swaylock --image /home/${username}/.local/share/bg.png" + "SUPER, L, exec, swaylock --image /home/${username}/.local/share/bg.png" "$mainMod, E, exec, thunar" "$mainMod SHIFT, B, exec, pkill -SIGUSR1 .waybar-wrapped" "$mainMod, C,exec, hyprpicker -a" @@ -269,6 +270,10 @@ "$mainMod, XF86MonBrightnessDown, exec, brightnessctl set 100%-" ]; + bindl = [ + ",switch:[Lid Switch], exec, hyprlock" + ]; + # mouse binding bindm = [ "$mainMod, mouse:272, movewindow"