From 6ffe414fac4d7359caedf7876b5d184ea31f1328 Mon Sep 17 00:00:00 2001 From: jao Date: Tue, 9 Mar 2021 23:58:55 +0000 Subject: sway nits --- init.org | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/init.org b/init.org index a640d1e..3950221 100644 --- a/init.org +++ b/init.org @@ -496,6 +496,10 @@ (defvar jao-sway-enabled-p nil) + (defun jao-sway-set-wallpaper (f) + (jao-swaymsg (format "output * bg %s fill" f)) + (make-symbolic-link f "~/.wallpaper.sway" t)) + (defun jao-sway-run-or-focus (cmd &optional ws) (if (not (string-blank-p (shell-command-to-string (format "pidof %s" cmd)))) (jao-swaymsg (format "[app_id=%s] focus" cmd)) @@ -536,9 +540,8 @@ (file-symlink-p current) t)))) (make-symbolic-link (expand-file-name f) current t) - ;; (make-symbolic-link (expand-file-name f) "~/.lockimage" t) (if jao-sway-enabled-p - (jao-swaymsg (format "output * bg %s fill" current)) + (jao-sway-set-wallpaper (expand-file-name f)) (shell-command (format "xwallpaper --zoom %s" f)))))) (defun jao-set-random-wallpaper () -- cgit v1.2.3