diff options
author | jao <jao@gnu.org> | 2021-03-09 23:58:55 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-03-09 23:58:55 +0000 |
commit | 6ffe414fac4d7359caedf7876b5d184ea31f1328 (patch) | |
tree | 22be2c0b38bd2d993bc216c4ea378c4072eac5b5 | |
parent | ae5b4cf7ab9ceef11ec2c6d31fde2e9b3d7090a7 (diff) | |
download | elibs-6ffe414fac4d7359caedf7876b5d184ea31f1328.tar.gz elibs-6ffe414fac4d7359caedf7876b5d184ea31f1328.tar.bz2 |
sway nits
-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 () |