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

Optional notify-send #1

Open
savchenko opened this issue Sep 11, 2021 · 0 comments
Open

Optional notify-send #1

savchenko opened this issue Sep 11, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@savchenko
Copy link
Owner

Something along the lines of:

if [ "$DISPLAY" ] || [ "$WAYLAND_DISPLAY" ]; then
    if hash notify-send &> /dev/null; then
        # do things
    fi
fi

...with the caveat that it should go to the currently logged-in user.

Options:

  1. Query said user and send directly from script
  2. Drop data into a file within $TMPDIR and call from there

@oliver-machacik, want to give it a stab?

@savchenko savchenko added the enhancement New feature or request label Sep 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant