From 12774828a4b540a645c69104db0cf0c7baca2395 Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 2 Sep 2022 02:38:56 +0100 Subject: river tweaks --- init.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 38013e6..0825b01 100644 --- a/init.el +++ b/init.el @@ -502,8 +502,8 @@ (let ((title (jao-river-get-focused-title))) (when (string-match-p "\\.pdf" title) (jao-notify title "Opening ORG counterpart")) - (jao-pdf-goto-zathura-org title t) - (jao-river-to-ws 1))) + (jao-river-to-ws 1) + (jao-pdf-goto-zathura-org title t))) (defun jao-river-find-zathura-window (file) (let ((frx (regexp-quote (file-name-nondirectory file)))) @@ -527,7 +527,9 @@ (interactive) (when (jao-shell-running-p "i3bar-river") (jao-shell-string "killall i3bar-river")) - (jao-shell-exec "i3bar-river")) + (jao-shell-exec "i3bar-river") + (sit-for 0.2) + (jao-tracking-set-log "")) ;;;; sway (defmacro jao-def-swaymsg (name msg) @@ -592,7 +594,7 @@ (make-symbolic-link f current t) (cond (jao-river-enabled (jao-river-set-wallpaper f)) (jao-sway-enabled (jao-sway-set-wallpaper f)) - (t (format "xwallpaper --zoom %s" f)))))) + (t (shell-command-to-string (format "xwallpaper --zoom %s" f))))))) (defun jao-set-random-wallpaper () (interactive) -- cgit v1.2.3