Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to exit pdfpc by "falling off" the last slide #649

Open
multixrulz opened this issue Sep 2, 2022 · 5 comments
Open

Option to exit pdfpc by "falling off" the last slide #649

multixrulz opened this issue Sep 2, 2022 · 5 comments

Comments

@multixrulz
Copy link

I am the author of revelation, a presentation program that doesn't really overlap with pdfpc's function at all (but does need documentation and a website).

I would like to integrate the display of PDFs into this program, and pdfpc seems to be the perfect way to do it, with one problem: I want it to exit by clicking the "forward" button (i.e. page-down) on the last page of the PDF. This is because the way I use revelation is to set up the whole slideshow - which is a combination of various pre-built presentations - and then run it away from the computer using a presenter clicker. The way pdfpc is now, I'd have to walk back to the computer and hit Ctrl-Q in order to exit and continue with the rest of my slideshow.

Could this be made a command-line option?

@fnevgeny
Copy link
Member

fnevgeny commented Sep 4, 2022

Would a pdfpcrc (5) option do? We already have black-on-end, so the new one would probably be exit-on-end.

@multixrulz
Copy link
Author

TLDR; A pdfpcrc option will do the job.

Long version:
I wasn't even aware of the pdfpcrc file until you pointed it out.

My approach with external programs is to not require special configuration by the user in order for them to work, so my immediate answer is "no, a pdfpcrc option won't do". But in practice, it probably will, and the need/ability to set up a pdfpcrc file can be documented in revelation.

Have you considered allowing a commandline argument to specify which pdfpcrc file to use - ie another place to look in addition to the system-wide and user files? That way a user could bundle the pdf, pdfpc, and pdfpcrc files and have a completely portable configuration.

@fnevgeny
Copy link
Member

fnevgeny commented Sep 5, 2022

Have you considered allowing a commandline argument to specify which pdfpcrc file to use - ie another place to look in addition to the system-wide and user files?

As mentioned in the pdfpcrc man page, the location of the user file is $XDG_CONFIG_HOME/pdfpc/pdfpcrc. Hence, you can (re)define the $XDG_CONFIG_HOME envvar when running pdfpc. $XDG_CONFIG_HOME/pdfpc/pdfpc.css is also the place where you can adjust visual style details, perhaps making its look more native to your revelation envelope.

@multixrulz
Copy link
Author

That makes sense. I keep forgetting that Unix had solutions to all sorts of problems that modern software just keeps reinventing badly.

@multixrulz multixrulz reopened this Sep 5, 2022
@multixrulz
Copy link
Author

Oops, still need that option i the pdfpcrc file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants