aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dotfiles/.config/ranger/rc.conf2
-rwxr-xr-xdotfiles/.local/bin/setbg1
2 files changed, 2 insertions, 1 deletions
diff --git a/dotfiles/.config/ranger/rc.conf b/dotfiles/.config/ranger/rc.conf
index 525fd20..9c977e5 100644
--- a/dotfiles/.config/ranger/rc.conf
+++ b/dotfiles/.config/ranger/rc.conf
@@ -418,7 +418,7 @@ map MX shell xelatex %f
map ML shell pdflatex %f
#Image commands
-map bgg shell cp %f ~/.config/wall1.png && setbg
+map bgg shell setbg %f
map bgl shell setbglblur %f
map bgL shell setbglsimple %f
# map bw shell wal -c -i %f && cp %f ~/.config/wall.png
diff --git a/dotfiles/.local/bin/setbg b/dotfiles/.local/bin/setbg
index 29a11d7..351ac3d 100755
--- a/dotfiles/.local/bin/setbg
+++ b/dotfiles/.local/bin/setbg
@@ -1,3 +1,4 @@
#!/bin/sh
+cp $1 ~/.config/wall1.png
swaymsg output "*" background ~/.config/wall1.png fill