diff --git a/home/lilith/hyprland/default.nix b/home/lilith/hyprland/default.nix index da7cb9c4..31b83fca 100644 --- a/home/lilith/hyprland/default.nix +++ b/home/lilith/hyprland/default.nix @@ -1,6 +1,7 @@ -{ lib, ... }: +{ hyprland, ... }: { imports = [ + hyprland.homeManagerModules.default ./hyprpaper.nix ./hyprlock.nix ./hyprgrass.nix @@ -9,6 +10,7 @@ wayland.windowManager.hyprland = { enable = true; + # package = hyprland.packages.${pkgs.system}.hyprland; xwayland.enable = true; diff --git a/home/lilith/hyprland/hyprgrass.nix b/home/lilith/hyprland/hyprgrass.nix index e8fd84c3..571c0b99 100644 --- a/home/lilith/hyprland/hyprgrass.nix +++ b/home/lilith/hyprland/hyprgrass.nix @@ -1,4 +1,23 @@ -{ pkgs, hyprgrass, ... }: { - wayland.windowManager.hyprland.plugins = [ hyprgrass.packages.${pkgs.system}.default ]; + config, + lib, + pkgs, + hyprgrass, + ... +}: +{ + options.desktop.touchSupport = lib.mkEnableOption "Enables touch-related features"; + config.wayland.windowManager.hyprland = lib.mkIf config.desktop.touchSupport { + plugins = [ hyprgrass.packages.${pkgs.system}.default ]; + + settings.plugin.touch_gestures = { + sensitivity = 2.0; + workspace_swipe_fingers = 3; + workspace_swipe_edge = "d"; + + long_press_delay = 500; + resize_on_border_long_press = true; + edge_margin = 20; + }; + }; } diff --git a/home/lilith/hyprland/hyprlock.nix b/home/lilith/hyprland/hyprlock.nix index 0d0b9f52..798eceb0 100644 --- a/home/lilith/hyprland/hyprlock.nix +++ b/home/lilith/hyprland/hyprlock.nix @@ -1,4 +1,5 @@ -{ config, lib, ...}:{ +{ lib, ... }: +{ programs.hyprlock = { enable = true; @@ -26,7 +27,7 @@ input-field = [ { - size = "800, 80"; + size = "30%, 5%"; position = "0, 0"; monitor = ""; dots_center = true; @@ -39,6 +40,25 @@ shadow_passes = 2; } ]; + + label = [ + { + text = "Welcome!"; + position = "0, 20%"; + font_size = 40; + font_family = "JetBrains Mono"; + halign = "center"; + valign = "center"; + } + { + text = "$TIME"; + position = "0, 15%"; + font_size = 25; + font_family = "JetBrains Mono"; + halign = "center"; + valign = "center"; + } + ]; }; }; } diff --git a/hosts/lilith-pad/default.nix b/hosts/lilith-pad/default.nix index 4be6ba77..e5f28216 100644 --- a/hosts/lilith-pad/default.nix +++ b/hosts/lilith-pad/default.nix @@ -6,6 +6,8 @@ in system.stateVersion = "24.11"; desktop.enable = true; + home-manager.users."lilith".desktop.touchSupport = true; + gaming.enable = false; nfs.client.enable = true; auto_styling.enable = true; diff --git a/system/core/nix.nix b/system/core/nix.nix index 61724ee3..abd0a152 100644 --- a/system/core/nix.nix +++ b/system/core/nix.nix @@ -26,6 +26,7 @@ { hostName = "lilith-server-builder"; system = "x86_64-linux"; + protocol = "ssh-ng"; } ]; };