From 493e552cded3429d9be36220e3ebc9fddaf6c241 Mon Sep 17 00:00:00 2001 From: Myned Date: Sat, 28 Sep 2024 21:36:46 -0500 Subject: [PATCH] hyprland: add bind to switch pip position Signed-off-by: Myned --- options/custom/desktops/hyprland/binds.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/options/custom/desktops/hyprland/binds.nix b/options/custom/desktops/hyprland/binds.nix index c5783ef..7c09367 100644 --- a/options/custom/desktops/hyprland/binds.nix +++ b/options/custom/desktops/hyprland/binds.nix @@ -41,6 +41,7 @@ with lib; let vrr = config.home-manager.users.${config.custom.username}.home.file.".local/bin/vrr".source; walker = "${config.home-manager.users.${config.custom.username}.programs.walker.package}/bin/walker"; waydroid = "${pkgs.waydroid}/bin/waydroid"; + window = config.home-manager.users.${config.custom.username}.home.file.".local/bin/window".source; zoom = config.home-manager.users.${config.custom.username}.home.file.".local/bin/zoom".source; cfg = config.custom.desktops.hyprland.binds; @@ -173,6 +174,14 @@ in { "--workspace special:pip" ])) (key "Space" "Super" "togglespecialworkspace" "scratchpad") + (key "Space" "Super+Ctrl+Shift" "exec" (with config.custom; + concatStringsSep " " [ + "${window} move" + "--current" + "--property title" + "'^Picture.in.[Pp]icture$'" + "${toString (gap + border)},${toString (gap + border)}" + ])) (key "Space" "Super+Shift" "movetoworkspacesilent" "special:scratchpad") (key "Tab" "Super" "cyclenext" "tiled") (key "Tab" "Super+Shift" "alterzorder" "top")