init commit

This commit is contained in:
unknown
2025-08-19 08:06:37 -04:00
commit 2957b5515a
743 changed files with 45495 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
from talon import Module
# --- App definition ---
mod = Module()
mod.apps.calibre = r"""
os: windows
and app.name: calibre.exe
os: windows
and app.exe: /^calibre\.exe$/i
os: windows
and app.name: calibre-parallel.exe
os: windows
and app.exe: /^calibre-parallel\.exe$/i
"""
mod.apps.calibre = """
os: linux
app.name: calibre
"""
# TODO: mac context
+39
View File
@@ -0,0 +1,39 @@
from talon import Context, Module, actions
# --- App definition ---
mod = Module()
mod.apps.calibre_viewer = """
app: calibre
title: /E-book viewer$/
title: /eBook-Betrachter$/
"""
# Context matching
ctx = Context()
ctx.matches = """
os: windows
os: linux
app: calibre_viewer
"""
# TODO: mac implementation
# --- Implement actions ---
@ctx.action_class("user")
class UserActions:
# user.pages
def page_next():
actions.key("pagedown")
def page_previous():
actions.key("pageup")
def page_final():
actions.key("ctrl-end")
# user.chapters
def chapter_next():
actions.key("ctrl-pagedown")
def chapter_previous():
actions.key("ctrl-pageup")
@@ -0,0 +1,5 @@
app: calibre_viewer
-
# Set tags
tag(): user.pages
tag(): user.chapters