From 37edf761623cf7d3b68dfd067191c19532c22064 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 28 May 2025 08:53:36 +0200 Subject: ... --- accounts/gkleen@sif/default.nix | 19 +++++++++++++++++++ accounts/gkleen@sif/niri/default.nix | 5 +++++ 2 files changed, 24 insertions(+) diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index 6671e5c7..706eb241 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix @@ -723,6 +723,25 @@ in { }; settings = { StartupWMClass = "Kimai"; + StartupNotify = "true"; + }; + }; + audiobookshelf = { + name = "Audiobookshelf"; + exec = toString (pkgs.writeShellScript "audiobookshelf" '' + exec -- \ + ${lib.getExe' pkgs.google-chrome "google-chrome-stable"} \ + --class=Audiobookshelf \ + --app="https://audiobookshelf.yggdrasil.li" \ + --user-data-dir=''${HOME}/.config/google-chrome-audiobookshelf + ''); + icon = pkgs.fetchurl { + url = "https://www.audiobookshelf.org/Logo.png"; + hash = "sha256-JGPk+WNT1C4DC4lSMb0K0YmAMT5LvmSOeO0QRzkc7Lk="; + }; + settings = { + StartupWMClass = "Audiobookshelf"; + StartupNotify = "true"; }; }; thunderbird-lmu = { diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix index 158ac4d6..b2b2918e 100644 --- a/accounts/gkleen@sif/niri/default.nix +++ b/accounts/gkleen@sif/niri/default.nix @@ -711,6 +711,11 @@ in { (leaf "open-on-workspace" "vid") (leaf "open-focused" false) ]) + (plain "window-rule" [ + (leaf "match" { app-id = "^chrome-audiobookshelf\.yggdrasil\.li__-Default$"; }) + (leaf "match" { app-id = "^YouTube Music Desktop App$"; }) + (leaf "open-on-workspace" "vid") + ]) (plain "window-rule" [ (leaf "match" { app-id = "^pdfpc$"; }) (plain "default-column-width" [(leaf "proportion" 1.)]) -- cgit v1.2.3