set up kde-connect to automatically allow commands to run
This commit is contained in:
parent
a4e6b6449a
commit
5403bad9d0
2 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
[Plugins]
|
||||||
|
kdeconnect_runcommandEnabled=true
|
||||||
Loading…
Add table
Add a link
Reference in a new issue