Skip to content

Commit

Permalink
Update Freqlog defs, update setup.cfg, dist.py
Browse files Browse the repository at this point in the history
Signed-off-by: Slendi <[email protected]>
  • Loading branch information
xslendix committed Jul 13, 2024
1 parent 415556a commit 7250600
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ def run_command(command: str):
if not (args.no_build or args.ui_only):
# Pyinstaller command
build_cmd = "pyinstaller --onefile --name nexus nexus/__main__.py --icon ui/images/icon.ico"
if os_name == "notwin": # Add hidden imports for Linux
build_cmd += " --hidden-import pynput.keyboard._xorg --hidden-import pynput.mouse._xorg"

if os_name == "win":
print("Building windowed executable...")
Expand Down
4 changes: 0 additions & 4 deletions nexus/Freqlog/Definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
from enum import Enum
from typing import Any, Self

from pynput.keyboard import Key

from nexus import __author__


Expand All @@ -16,8 +14,6 @@ class Defaults:
DEFAULT_ALLOWED_CHARS: set = \
DEFAULT_ALLOWED_FIRST_CHARS | {"'", "-", "_", "/", "~"} # | {chr(i) for i in range(ord('0'), ord('9') + 1)}
# TODO: uncomment above line when first char detection is implemented
DEFAULT_MODIFIER_KEYS: set = {Key.ctrl, Key.ctrl_l, Key.ctrl_r, Key.alt, Key.alt_l, Key.alt_r, Key.alt_gr, Key.cmd,
Key.cmd_l, Key.cmd_r}
DEFAULT_NEW_WORD_THRESHOLD: float = 5 # seconds after which character input is considered a new word
DEFAULT_CHORD_CHAR_THRESHOLD: int = 5 # milliseconds between characters in a chord to be considered a chord
DEFAULT_DB_FILE: str = "nexus_freqlog_db.sqlite3"
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ packages = find:
python_requires = >=3.11
install_requires =
setuptools
pynput
libvinput

[options.entry_points]
console_scripts =
Expand Down

0 comments on commit 7250600

Please sign in to comment.