From 2f27ddf42cfa1a14fb9ae774d50fa06fbd591325 Mon Sep 17 00:00:00 2001 From: ooks-io Date: Mon, 28 Aug 2023 00:59:32 +1200 Subject: [PATCH] add: 1pass hypr bind/winrule --- home/ooks/opt/desktop/hyprland/binds.nix | 3 +++ home/ooks/opt/desktop/hyprland/default.nix | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/home/ooks/opt/desktop/hyprland/binds.nix b/home/ooks/opt/desktop/hyprland/binds.nix index 46e79be..1e218e7 100644 --- a/home/ooks/opt/desktop/hyprland/binds.nix +++ b/home/ooks/opt/desktop/hyprland/binds.nix @@ -53,6 +53,8 @@ in makoctl = "${config.services.mako.package}/bin/makoctl"; + password = "${pkgs._1password-gui}/bin/1password --enable-features=UseOzonePlatform --ozone-platform=wayland"; + playerctl = "${config.services.playerctld.package}/bin/playerctl"; playerctld = "${config.services.playerctld.package}/bin/playerctld"; pactl = "${pkgs.pulseaudio}/bin/pactl"; @@ -63,6 +65,7 @@ in "SUPER,return,exec,${terminal}" "SUPER,e,exec,${editor}" "SUPER,m,exec,${spotify}" + "SUPERSHIFT,P,exec,${password}" # Media diff --git a/home/ooks/opt/desktop/hyprland/default.nix b/home/ooks/opt/desktop/hyprland/default.nix index d79bc35..af4b616 100644 --- a/home/ooks/opt/desktop/hyprland/default.nix +++ b/home/ooks/opt/desktop/hyprland/default.nix @@ -68,6 +68,10 @@ "fadeDim,1,3,easeout" "border,1,3,easeout" ]; + + windowrulev2 = [ + "float,move 191 15,size 924 396,class:(1Password)" + ]; monitor = [ ",prefered,auto,auto"