From 7da6384e89a700cf1b7ae0ff2fe31c21ba03f554 Mon Sep 17 00:00:00 2001 From: Eclypsed Date: Sun, 7 Dec 2025 23:53:43 -0500 Subject: [PATCH] Added Pyprland + Scratchpad --- modules/home/hypr/default.nix | 1 + modules/home/hypr/hyprland.nix | 1 + modules/home/hypr/keybinds.nix | 3 +++ modules/home/hypr/pyprland.nix | 22 ++++++++++++++++++++++ 4 files changed, 27 insertions(+) create mode 100644 modules/home/hypr/pyprland.nix diff --git a/modules/home/hypr/default.nix b/modules/home/hypr/default.nix index 74c4c6e..fefeb5e 100644 --- a/modules/home/hypr/default.nix +++ b/modules/home/hypr/default.nix @@ -8,5 +8,6 @@ ./hyprlock.nix ./keybinds.nix ./monitors.nix + ./pyprland.nix ]; } diff --git a/modules/home/hypr/hyprland.nix b/modules/home/hypr/hyprland.nix index f3898aa..b333bd5 100644 --- a/modules/home/hypr/hyprland.nix +++ b/modules/home/hypr/hyprland.nix @@ -57,6 +57,7 @@ "systemctl --user enable --now hyprpolkitagent.service" "systemctl --user enable app-com.mitchellh.ghostty.service" "wpaperd -d" + "pypr" ]; env = [ diff --git a/modules/home/hypr/keybinds.nix b/modules/home/hypr/keybinds.nix index 8b2013d..2da0be4 100644 --- a/modules/home/hypr/keybinds.nix +++ b/modules/home/hypr/keybinds.nix @@ -44,6 +44,9 @@ ", XF86AudioNext, exec, playerctl next" ", XF86AudioMute, exec, pamixer -t" "ALT, XF86AudioMute, exec, pamixer --default-source -t" + + # Scratchpads + "$mod, TAB, exec, pypr toggle term" ] ++ ( # workspaces diff --git a/modules/home/hypr/pyprland.nix b/modules/home/hypr/pyprland.nix new file mode 100644 index 0000000..4f387d9 --- /dev/null +++ b/modules/home/hypr/pyprland.nix @@ -0,0 +1,22 @@ +{ + pkgs, + ... +}: +{ + home.packages = with pkgs; [ + pyprland + ]; + + xdg.configFile."hypr/pyprland.toml".text = '' + [pyprland] + plugins = ["scratchpads"] + + [scratchpads.term] + command = "foot --app-id term_dropdown" + class = "term_dropdown" + animation = "fromTop" + margin = 150 + max_size = "1920px 1080px" + multi = false + ''; +}