Hello,
I am trying to configure my KDE in home-manager.
Running flakes on 24.11.
I am having this clause to configure KDEs Klipper (clipboard tool)
qt.kde.settings = {
plasmashellrc = {
"Action_0" = {
Automatic = true;
Description = "send link to phone";
"Number of commands" = 1;
Regexp = "https://.*";
};
"Action_0/Command_0" = {
Commandline[$e] = "kdeconnect-handler %s\s";
Description = "send link to kdeconnect";
Enabled = true;
Icon = "kdeconnect";
Output = 0;
};
};
};
But I am running into two problems with this line: Commandline[$e] = âkdeconnect-handler %s\sâ;
the ][ brackets need to be escaped or quoted.
If I quote them I will get the hex ascii translation of their code.
I canât manage to help it with escape chars like ââ or \
And there is the \s in the end, that I canât get along with as well.
Some docs are to be found here: qt.kde.settings - MyNixOS
As I am writing Iâve just figured that I might need to build a working kwriteconfig command with those brackets first and apply the result to nixâŚ
But I didnt get the kwriteconfig command off my hands⌠dunno where I would find that
edit:/ its in kdePackages.kconfig
I keep you posted, maybe someone has a solution in the meantime
thanks!