Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
Z
zathura
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 111
    • Issues 111
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 4
    • Merge Requests 4
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • pwmt
  • zathura
  • Issues
  • #178

Closed
Open
Opened Aug 26, 2020 by Jin@jcguu95
  • Report abuse
  • New issue
Report abuse New issue

How to send signals to `zathura` externally?

Hoping for

I have a simple implementation of annotation (..etc) in mind, but I need a way to control zathura externally. For example, I hope the following scrolls the document

[me@laptop] $ zathura --instance=<ID> --command="sc_scroll"

where, sc_scroll is the built-in function that scrolls the document.

Question

How to send commands to zathura externally?


As a quick note, sc_scroll calls position_set at the end of itself. sc_scroll then calls refresh_view(zathura) in its end. Then refresh_view calls

  g_signal_emit(zathura->ui.session->gtk.view, zathura->signals.refresh_view,
                0, zathura);

which finally communicates with an external packages.

Edited Aug 26, 2020 by Jin
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: pwmt/zathura#178