summarylogtreecommitdiffstats
path: root/keyboard-center.install
blob: 4727e8001531f949762157fc1392fdec58d2af3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}