diff options
| -rw-r--r-- | init.org | 7 | 
1 files changed, 5 insertions, 2 deletions
@@ -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 ()  | 
