Get key code for ydotool

  1. Command to get the key’s name
    sudo libinput record
  2. File to look for the code
    vim /usr/include/linux/input-event-codes.h

Get full file path

readlink -f file.txt