summaryrefslogtreecommitdiff
path: root/.emacs.d/init-spw.el
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-05-31 21:03:26 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-05-31 21:03:26 -0700
commit7a541bf49cf5bfc538ccafa5433aace5c8522f8c (patch)
tree2a43a59776390b024bea68f88396c735cc7fc36e /.emacs.d/init-spw.el
parent6d23ff4b88d8fbb05f037b5b4e1cf6ade55b6a64 (diff)
downloaddotfiles-7a541bf49cf5bfc538ccafa5433aace5c8522f8c.tar.gz
handle lack of i3-msg on PATH in a few places
Diffstat (limited to '.emacs.d/init-spw.el')
-rw-r--r--.emacs.d/init-spw.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/.emacs.d/init-spw.el b/.emacs.d/init-spw.el
index c94993c4..e8304407 100644
--- a/.emacs.d/init-spw.el
+++ b/.emacs.d/init-spw.el
@@ -2021,7 +2021,9 @@ Called by that script using emacsclient(1)."
;; (overwrite-mode 1)
(start-process "pdf" "pdf" "xdg-open" pdf)
(sleep-for 0.5)
- (call-process-shell-command "i3-msg move right")
+ (call-process-shell-command
+ (concat (if (executable-find "i3-msg") "i3-msg" "swaymsg")
+ "move right"))
(let ((pdf-words (substring (with-temp-buffer
(call-process-shell-command
(concat "pdftotext "