summarylogtreecommitdiffstats
path: root/kb2xb.install
blob: cb55dc79aaf393bb09f06f604520c42ccdfb3e95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
post_install() {
    echo ""
    echo "  ┌─────────────────────────────────────────────────────┐"
    echo "  │                    kb2xb installed                  │"
    echo "  └─────────────────────────────────────────────────────┘"
    echo ""
    echo "  1. Add your user to the required groups:"
    echo ""
    echo "       sudo groupadd -f uinput"
    echo "       sudo usermod -aG input,uinput \$USER"
    echo ""
    echo "  2. Re-login (or reboot) for group changes to take effect."
    echo ""
    echo "  3. Reload udev rules (already done by pacman hooks, but"
    echo "     if /dev/uinput still isn't writable, run manually):"
    echo ""
    echo "       sudo udevadm control --reload-rules"
    echo "       sudo udevadm trigger"
    echo ""
    echo "  Then launch with:  kb2xb-gui   or   kb2xb"
    echo ""
}

post_upgrade() {
    echo ""
    echo "  kb2xb upgraded."
    echo "  If you have issues, re-check group membership:"
    echo "    groups | grep -E 'input|uinput'"
    echo ""
}

post_remove() {
    echo ""
    echo "  kb2xb removed."
    echo "  Your profiles at ~/.config/kb2xb/ were NOT deleted."
    echo "  Remove them manually if you no longer need them:"
    echo "    rm -rf ~/.config/kb2xb"
    echo ""
}