diff options
author | zocker-160 | 2021-09-06 18:51:21 +0200 |
---|---|---|
committer | zocker-160 | 2021-09-06 18:51:21 +0200 |
commit | a455fb2950bb4597f48bf0c866ddb9fb9778b790 (patch) | |
tree | 952e784da4d297b417629c56bf8b49a93e220040 /keyboard-center.install | |
download | aur-a455fb2950bb4597f48bf0c866ddb9fb9778b790.tar.gz |
initial version
Diffstat (limited to 'keyboard-center.install')
-rwxr-xr-x | keyboard-center.install | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/keyboard-center.install b/keyboard-center.install new file mode 100755 index 000000000000..4727e8001531 --- /dev/null +++ b/keyboard-center.install @@ -0,0 +1,15 @@ +post_install() { + python3 -m compileall /usr/lib/keyboard-center +} + +pre_remove() { + find /usr/lib/keyboard-center -type f -iname \*.pyc -delete + find /usr/lib/keyboard-center -type d -iname __pycache__ -delete +} + +post_remove() { + echo "IMPORTANT: in order to stop the background service ###############################################################" + echo 'please run "systemctl --user stop keyboard-center.service" and "systemctl --user disable keyboard-center.service" as NON ROOT' + echo "##################################################################################################################" + sleep 3 +} |