set up kde-connect to automatically allow commands to run

This commit is contained in:
Lillian Violet 2026-04-22 15:40:58 +02:00
parent a4e6b6449a
commit 5403bad9d0
2 changed files with 3 additions and 1 deletions

View file

@ -14,7 +14,7 @@
Type = "oneshot"; Type = "oneshot";
ExecStart = "${pkgs.writeShellScript "set-kde-connect-commands" '' ExecStart = "${pkgs.writeShellScript "set-kde-connect-commands" ''
#!/run/current-system/sw/bin/bash #!/run/current-system/sw/bin/bash
find ${config.home.homeDirectory}/.config/kdeconnect/ -type d -name 'kdeconnect_runcommand' -execdir cp -rf ${builtins.toPath ./kde-connect-commands} {}/ \; -execdir mv -f {}/kde-connect-commands {}/config \; find ${config.home.homeDirectory}/.config/kdeconnect/ -type d -name 'kdeconnect_runcommand' -execdir cp -rf ${builtins.toPath ./kde-connect-commands} {}/ \; -execdir mv -f {}/kde-connect-commands {}/config \; -execdir cp -rf ${builtins.toPath ./kde-connect-config} ./ \; -execdir mv -f ./kde-connect-config ./config \;
''}"; ''}";
RemainAfterExit = true; RemainAfterExit = true;
}; };

View file

@ -0,0 +1,2 @@
[Plugins]
kdeconnect_runcommandEnabled=true