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
+39
View File
@@ -0,0 +1,39 @@
from talon import Context, Module, actions
# --- App definition ---
mod = Module()
mod.apps.atril = """
os: linux
and app.name: Atril
"""
# Context matching
ctx = Context()
ctx.matches = r"""
app: atril
"""
# --- Implement actions ---
@ctx.action_class("user")
class UserActions:
# user.pages
def page_current():
actions.key("ctrl-l")
page = actions.edit.selected_text()
actions.key("right escape")
return int(page)
def page_next():
actions.key("ctrl-pagedown")
def page_previous():
actions.key("ctrl-pageup")
def page_jump(number: int):
actions.key("ctrl-l")
actions.insert(str(number))
actions.key("enter")
def page_final():
actions.key("ctrl-end")
+4
View File
@@ -0,0 +1,4 @@
app: atril
-
# Set tags
tag(): user.pages