mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 09:36:14 +01:00
Fix dirvish wallpaper apply command
Signed-off-by: MagicRB <richard@brezak.sk>
This commit is contained in:
parent
8cebc0b293
commit
c21340b577
|
@ -138,10 +138,12 @@ In sideview Dirvish buffers, I don't want ~RET~ to narrow to a directory, it mak
|
|||
(defun dirvish-apply-wallpaper ()
|
||||
(interactive)
|
||||
(let ((filename (or (dired-get-filename) (completing-read))))
|
||||
(async-shell-command (format "feh %s" filename))))
|
||||
(async-shell-command (format "ln -sf %s /nix/persist/home/main/.config/wallpaper && systemctl restart --user wallpaper" filename))))
|
||||
|
||||
(defun dirvish-side-obey-display-actions (original-function &rest original-arguments)
|
||||
(let ((switch-to-buffer-obey-display-actions nil))
|
||||
(apply original-function original-arguments)))
|
||||
(advice-add 'dirvish-side :around #'dirvish-side-obey-display-actions)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
|
|
Loading…
Reference in a new issue