diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-05-31 21:03:26 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-05-31 21:03:26 -0700 |
commit | 7a541bf49cf5bfc538ccafa5433aace5c8522f8c (patch) | |
tree | 2a43a59776390b024bea68f88396c735cc7fc36e /.emacs.d/init-spw.el | |
parent | 6d23ff4b88d8fbb05f037b5b4e1cf6ade55b6a64 (diff) | |
download | dotfiles-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.el | 4 |
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 " |