summaryrefslogtreecommitdiffhomepage
path: root/init.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-03-09 23:58:55 +0000
committerjao <jao@gnu.org>2021-03-09 23:58:55 +0000
commit6ffe414fac4d7359caedf7876b5d184ea31f1328 (patch)
tree22be2c0b38bd2d993bc216c4ea378c4072eac5b5 /init.org
parentae5b4cf7ab9ceef11ec2c6d31fde2e9b3d7090a7 (diff)
downloadelibs-6ffe414fac4d7359caedf7876b5d184ea31f1328.tar.gz
elibs-6ffe414fac4d7359caedf7876b5d184ea31f1328.tar.bz2
sway nits
Diffstat (limited to 'init.org')
-rw-r--r--init.org7
1 files 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 ()