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

feat: allow writing custom text to stdin on button press #473

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 13, 2023

  1. feat: allow writing custom text to stdin on button press

    Rather than expecting external programs to handle 1, 2, and 3 on
    their standard input, this allows the user to configure the text
    sent themselves.
    
    This is particularly relevant for my tool, painted, which serves
    as a notification daemon and takes commands to manage the notif
    queue over stdin. With this patch, a config like the following
    works just as one would expect:
    
    	[notifs]
    	command=painted
    	interval=persist
    
    	btn_left_cmd=clear
    	btn_right_cmd=expand
    
    Note this only applies to bars with the persist interval, as one
    would expect.
    atalii committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    a3748c8 View commit details
    Browse the repository at this point in the history