summarylogtreecommitdiffstats
path: root/waykey.install
blob: cb13c8fefb06d50116fb9e478b767a31981344e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
post_install() {
    echo "Reloading udev rules..."
    udevadm control --reload-rules && udevadm trigger
    
    echo "---------------------------------------------------------"
    echo "WayKey has been installed successfully!"
    echo "To start the automation engine, DO NOT enable it via systemctl."
    echo "Instead, add the following line to your hyprland.conf:"
    echo "  exec-once = uwsm app -- /usr/bin/node /opt/waykey/run.js"
    echo ""
    echo "Make sure your user is in the 'input' group to read /dev/input and /dev/uinput:"
    echo "  sudo usermod -aG input \$USER"
    echo "Then log out and log back in for changes to take effect."
    echo "---------------------------------------------------------"
}

post_upgrade() {
    post_install
}