From 26e4293cd31c849fff712d57d15afa1baee2819c Mon Sep 17 00:00:00 2001
From: Gregor Kleen <gkleen@yggdrasil.li>
Date: Thu, 16 Jan 2025 14:14:57 +0100
Subject: ...

---
 accounts/gkleen@sif/niri/default.nix | 33 +++++++++++++++++++++++++++------
 1 file changed, 27 insertions(+), 6 deletions(-)

(limited to 'accounts/gkleen@sif')

diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix
index 40f733e8..841c972a 100644
--- a/accounts/gkleen@sif/niri/default.nix
+++ b/accounts/gkleen@sif/niri/default.nix
@@ -197,8 +197,8 @@ in {
         focus-ring = {
           width = 2;
           active.gradient = {
-            from = "hsla(195 100% 60% 0.9)";
-            to = "hsla(155 100% 50% 0.9)";
+            from = "hsla(195 100% 60% 0.75)";
+            to = "hsla(155 100% 50% 0.75)";
             angle = 29;
             relative-to = "workspace-view";
           };
@@ -250,7 +250,6 @@ in {
               allCorners = r: { bottom-left = r; bottom-right = r; top-left = r; top-right = r; };
             in allCorners 4.;
           clip-to-geometry = true;
-          open-focused = true;
         }
         {
           matches = [ { app-id = "^com\.saivert\.pwvucontrol$"; } ];
@@ -263,13 +262,21 @@ in {
         {
           matches = [ { app-id = "^org\.keepassxc\.KeePassXC$"; } ];
           excludes = [
-            { title = "^Unlock Database"; }
-            { title = "^Access Request"; }
-            { title = "^Passkey credentials"; }
+            { title = "^Unlock Database.*"; }
+            { title = "^Access Request.*"; }
+            { title = "^Passkey credentials.*"; }
           ];
           open-on-workspace = "kpxc";
           open-focused = false;
         }
+        {
+          matches = [
+            { app-id = "^org\.keepassxc\.KeePassXC$";  title = "^Unlock Database.*"; }
+            { app-id = "^org\.keepassxc\.KeePassXC$";  title = "^Access Request.*"; }
+            { app-id = "^org\.keepassxc\.KeePassXC$";  title = "^Passkey credentials.*"; }
+          ];
+          open-focused = true;
+        }
         {
           matches = [ { app-id = "^kitty-scratch$"; } ];
           open-on-workspace = "term";
@@ -300,6 +307,13 @@ in {
         {
           matches = [ { app-id = "^mpv$"; } ];
           open-on-workspace = "vid";
+          default-column-width.proportion = 1.;
+        }
+        {
+          matches = [ { app-id = "^kitty-play$"; } ];
+          open-on-workspace = "vid";
+          default-column-width.proportion = 1. / 3.;
+          open-focused = false;
         }
         # {
         #   matches = [
@@ -326,6 +340,13 @@ in {
             socat STDIO UNIX-CONNECT:"$XDG_RUNTIME_DIR"/yt-dlp.sock <<<$'{ "urls": ["'"$(wl-paste)"$'"] }'
           '';
         }));
+        "Mod+Alt+L".action = spawn (lib.getExe (pkgs.writeShellApplication {
+          name = "queue-yt-dlp";
+          runtimeInputs = with pkgs; [ wl-clipboard-rs config.programs.kitty.package ];
+          text = ''
+            exec -- kitty --app-id kitty-play --directory "$HOME"/media mpv "$(wl-paste)"
+          '';
+        }));
 
         "Mod+U".action = spawn (lib.getExe (pkgs.writeShellApplication {
           name = "qalc-fuzzel";
-- 
cgit v1.2.3