summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-08-31 00:53:05 +0100
committerjao <jao@gnu.org>2022-08-31 00:53:05 +0100
commitd70fe9103df62c2788688f4d470d386c50ab2bfd (patch)
treec0d3cb6b9b526063ea780979db8e85d7d850ecbe
parent5a505b096066e1e5a4049f2ca4ebf8df086e87c5 (diff)
downloadelibs-d70fe9103df62c2788688f4d470d386c50ab2bfd.tar.gz
elibs-d70fe9103df62c2788688f4d470d386c50ab2bfd.tar.bz2
wee tweaks
-rw-r--r--init.el6
-rw-r--r--lib/eos/jao-tracking.el7
2 files changed, 8 insertions, 5 deletions
diff --git a/init.el b/init.el
index bfb2b14..f7c0cba 100644
--- a/init.el
+++ b/init.el
@@ -499,7 +499,8 @@
(defun jao-river-zathura-to-org ()
(let ((title (jao-river-get-focused-title)))
- (jao-notify title "Opening ORG counterpart")
+ (when (string-match-p "\\.pdf" title)
+ (jao-notify title "Opening ORG counterpart"))
(jao-pdf-goto-zathura-org title t)
(jao-river-to-ws 1)))
@@ -3264,7 +3265,8 @@
("w" "currently playing" jao-streaming-current)]
["Act"
("k" "like" jao-streaming-like)
- ("K" "dislike" jao-streaming-dislike)]])
+ ("K" "dislike" jao-streaming-dislike)
+ ("t" "toggle player" jao-streaming-toggle-player)]])
(transient-define-prefix jao-transient-media ()
[["Play"
diff --git a/lib/eos/jao-tracking.el b/lib/eos/jao-tracking.el
index cf64c89..26404a4 100644
--- a/lib/eos/jao-tracking.el
+++ b/lib/eos/jao-tracking.el
@@ -88,9 +88,10 @@
(defun jao-tracking-set-log (v)
(when (member window-system '(x))
(x-change-window-property "_EMACS_LOG" v nil nil nil nil 0))
- (let* ((action (if (string-blank-p v) "remove" "add"))
- (cmd (format "wmctrl -r emacs -b %s,demands_attention" action)))
- (shell-command-to-string cmd)))
+ (unless jao-wayland-enabled
+ (let* ((action (if (string-blank-p v) "remove" "add"))
+ (cmd (format "wmctrl -r emacs -b %s,demands_attention" action)))
+ (shell-command-to-string cmd))))
(jao-tracking-set-log "")