aboutsummaryrefslogtreecommitdiff
path: root/notify.c (follow)
Commit message (Collapse)AuthorAgeLines
* url-mode: add support for XDG activation when opening URLsDaniel Eklöf2022-05-05-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | First, add a ‘token’ argument to spawn(). When non-NULL, spawn() will set the ‘XDG_ACTIVATION_TOKEN’ environment variable in the forked process. If DISPLAY is non-NULL, we also set DESKTOP_STARTUP_ID, for compatibility with X11 applications. Note that failing to set either of these environment variables are considered non-fatal - i.e. we ignore failures. Next, add a helper function, wayl_get_activation_token(), to generate an XDG activation token, and call a user-provided callback when it’s ‘done (since token generation is asynchronous). This function takes an optional ‘seat’ and ‘serial’ arguments - when both are non-NULL/zero, we set the serial on the token. ‘win’ is a required argument, used to set the surface on the token. Re-write wayl_win_set_urgent() to use the new helper function. Finally, rewrite activate_url() to first try to get an activation token (and spawn the URL launcher in the token callback). If that fails, or if we don’t have XDG activation support, spawn the URL launcher immediately (like before this patch). Closes #1058
* notify: add the notify-focus-inhibit config optionMitja Horvat2021-10-06-1/+1
| | | | | | | | | | | | | | | foot doesn't show desktop notifications (via OSC777) if the current terminal has keyboard focus. This is probably a sane default, but there are use cases where showing a notification regardless of the focus status may be desired. For example, a completion notification of a long running task inside a non-focused tmux window. This PR adds the notify-focus-inhibit option which can be used to disable inhibition of notifications when the window has focus. The default value is `yes`, which retains the old behavior.
* config: add new function config_clone()Daniel Eklöf2021-06-23-1/+1
|
* notify: add ${window-title}Daniel Eklöf2021-05-27-3/+3
|
* config: notify: change default value to use ${app-id}Daniel Eklöf2021-05-27-3/+3
| | | | | Make the default value of ‘notify’ use ${app-id} for icon and application name.
* notify: break out command template expansion to spawn_expand_template()Daniel Eklöf2021-02-07-60/+11
|
* notify: repair debug log: the parameter has been renamed: msg -> bodyDaniel Eklöf2021-01-31-1/+1
|
* notify: don’t emit notification when we’re focusedDaniel Eklöf2020-12-10-0/+5
|
* notify: break out desktop notifications from osc.cDaniel Eklöf2020-12-10-0/+103