diff options
| author | Benjamin Neff <benjamin@coding4coffee.ch> | 2025-03-21 12:47:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-21 12:47:25 +0100 |
| commit | 899af6328b395f1db2e74d09880a1af435a188ca (patch) | |
| tree | e31a99e930db2d719dd63ac53109be4b06f23f32 /plugins | |
| parent | ac1335125cb7fe742d825a95bb288ff8a8bfadd9 (diff) | |
| download | zsh-899af6328b395f1db2e74d09880a1af435a188ca.tar.gz zsh-899af6328b395f1db2e74d09880a1af435a188ca.tar.bz2 zsh-899af6328b395f1db2e74d09880a1af435a188ca.zip | |
fix(bgnotify): detect if sway is running and not just installed (#12989)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/bgnotify/bgnotify.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/bgnotify/bgnotify.plugin.zsh b/plugins/bgnotify/bgnotify.plugin.zsh index f6ffb6ed5..dca8250be 100644 --- a/plugins/bgnotify/bgnotify.plugin.zsh +++ b/plugins/bgnotify/bgnotify.plugin.zsh @@ -62,7 +62,7 @@ function bgnotify_formatted { function bgnotify_appid { if (( ${+commands[osascript]} )); then osascript -e "tell application id \"$(bgnotify_programid)\" to get the {id, frontmost, id of front window, visible of front window}" 2>/dev/null - elif [[ -n $WAYLAND_DISPLAY ]] && (( ${+commands[swaymsg]} )); then # wayland+sway + elif [[ -n $WAYLAND_DISPLAY ]] && ([[ -n $SWAYSOCK ]] || [[ -n $I3SOCK ]]) && (( ${+commands[swaymsg]} )); then # wayland+sway local app_id=$(bgnotify_find_sway_appid) [[ -n "$app_id" ]] && echo "$app_id" || echo $EPOCHSECONDS elif [[ -z $WAYLAND_DISPLAY ]] && [[ -n $DISPLAY ]] && (( ${+commands[xprop]} )); then |
