From da55dac3d52d0100e66769bc34e469fff7ebecfc Mon Sep 17 00:00:00 2001 From: Ahwx Date: Tue, 18 Nov 2025 10:45:36 +0100 Subject: [PATCH 1/4] 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" From 438351a8745be8d8f6e6ec5a6fdfa8d84c33193d Mon Sep 17 00:00:00 2001 From: Ahwx Date: Tue, 18 Nov 2025 10:46:06 +0100 Subject: [PATCH 2/4] feat: adds hyprsunset --- modules/home/hyprsunset.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 modules/home/hyprsunset.nix diff --git a/modules/home/hyprsunset.nix b/modules/home/hyprsunset.nix new file mode 100644 index 0000000..d78d0ea --- /dev/null +++ b/modules/home/hyprsunset.nix @@ -0,0 +1,16 @@ +{ + services.hyprsunset.enable = true; + + home.file.".config/hypr/hyprsunset.conf".text = '' + max-gamma = 200; + profile { + time = 06:00; + identity = true; + } + profile { + time = 21:00; + temperature = 5500; + gamma = 0.8; + } + ''; +} From fbdb0ba6b8fae65de007efa9d664edbd2d7bee16 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Tue, 18 Nov 2025 10:47:28 +0100 Subject: [PATCH 3/4] feat: adds `gsettings` dark mode --- modules/home/hyprland/config.nix | 1 + modules/home/sway/default.nix | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/home/hyprland/config.nix b/modules/home/hyprland/config.nix index ceaf21d..4f09651 100644 --- a/modules/home/hyprland/config.nix +++ b/modules/home/hyprland/config.nix @@ -36,6 +36,7 @@ "mpDris2 &" "foot --server &" "hyprfloat &" + "gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' &" ]; input = { diff --git a/modules/home/sway/default.nix b/modules/home/sway/default.nix index 157ec74..03727c2 100644 --- a/modules/home/sway/default.nix +++ b/modules/home/sway/default.nix @@ -198,11 +198,12 @@ in { command = "swaycons &"; } # { command = "wlsunset -S '06:30' -s '19:30' -d 1800 "; } { command = "foot --server &"; } + { command = "gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'"; } { command = "footclient"; } ]; workspaceAutoBackAndForth = false; }; - # systemd.enable = true; # ??? + # systemd.enable = true; # why would anyone do this??? wrapperFeatures = { gtk = true; }; From d578167e42ba4da58511f687c8633059668ec503 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Tue, 18 Nov 2025 10:47:46 +0100 Subject: [PATCH 4/4] feat: adds `hyprlock` and `hyprsunset` --- modules/home/hyprland/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/home/hyprland/default.nix b/modules/home/hyprland/default.nix index 500dd39..5497e22 100644 --- a/modules/home/hyprland/default.nix +++ b/modules/home/hyprland/default.nix @@ -1,9 +1,11 @@ -{ inputs, ... }: +{ inputs, ... }: { - imports = [ (import ./hyprland.nix) ] + imports = + [ (import ./hyprland.nix) ] ++ [ (import ./config.nix) ] ++ [ (import ./scripts.nix) ] ++ [ (import ./variables.nix) ] - # ++ [ (import ./hyprlock.nix) ] + ++ [ (import ./../hyprsunset.nix) ] + ++ [ (import ./../hyprlock.nix) ] ++ [ inputs.hyprland.homeManagerModules.default ]; }