I'll step through the relevant commands from your config snippet.
This local admin user will be given priv-15 access if used for auth.
username admin privilege 15 secret 5 <encrypted password>
| ---@diagnostic disable-next-line: lowercase-global | |
| hs = hs | |
| local eventtap = hs.eventtap | |
| local eventTypes = eventtap.event.types | |
| local keycodes = hs.keycodes.map | |
| local mouseEvent = hs.eventtap.event | |
| local mouseEventTypes = mouseEvent.types | |
| local mouseEventProperties = mouseEvent.properties |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| FILE="/usr/lib/python3/dist-packages/proton/vpn/app/gtk/services/reconnector/session_monitor.py" | |
| # Require root | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "Run as root (sudo)." >&2 | |
| exit 1 | |
| fi |
| # -*- coding: UTF-8 -*- | |
| # This script is based on Tilix's "open_tilix.py" by Gerald Nunn | |
| # - https://github.com/gnunn1/tilix/blob/master/data/nautilus/open-tilix.py | |
| # Modified for VScode, references: | |
| # - https://gnome.pages.gitlab.gnome.org/nautilus-python/class-nautilus-python-menu-provider.html | |
| # - https://askubuntu.com/a/301205/643965 | |
| from gettext import gettext, textdomain | |
| from subprocess import Popen | |
| import shutil |