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 + ''; +}