From 7a593f44189d7446143e1a4f61328264484d8869 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 17 Apr 2026 13:12:14 -0700 Subject: [PATCH] feat(sni): improve kdeconnect tray behavior --- dotfiles/config/taffybar/sni-priorities.yaml | 2 ++ nixos/sni.nix | 13 +++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/dotfiles/config/taffybar/sni-priorities.yaml b/dotfiles/config/taffybar/sni-priorities.yaml index 69cf5aeb..d50dddaf 100644 --- a/dotfiles/config/taffybar/sni-priorities.yaml +++ b/dotfiles/config/taffybar/sni-priorities.yaml @@ -15,6 +15,8 @@ priorities: priority: 1 - key: icon-name:blueman-tray priority: 0 +- key: icon-name:kdeconnectindicatordark + priority: 0 - key: item-id:flameshot priority: 0 - key: item-id:keepbook-sync-daemon diff --git a/nixos/sni.nix b/nixos/sni.nix index 158ab93a..5c648605 100644 --- a/nixos/sni.nix +++ b/nixos/sni.nix @@ -10,7 +10,7 @@ let in makeEnable config "myModules.sni" true { home-manager.sharedModules = [ - { + ({ lib, ... }: { systemd.user.services.kanshi-sni = { Unit = { Description = "kanshi-sni tray app"; @@ -36,6 +36,15 @@ makeEnable config "myModules.sni" true { indicator = true; }; + home.activation.disableKdeConnectBluetooth = + lib.hm.dag.entryAfter [ "writeBoundary" ] '' + ${pkgs.kdePackages.kconfig}/bin/kwriteconfig6 \ + --file kdeconnect/config \ + --group General \ + --key disabled_providers \ + 'BluetoothLinkProvider,AsyncLinkProvider' + ''; + services.network-manager-applet.enable = true; # Disable the XDG autostart for nm-applet since we're managing it via systemd. @@ -60,6 +69,6 @@ makeEnable config "myModules.sni" true { }; }; }; - } + }) ]; }