From fb862406a0719f34933e6755a8592636019b5d70 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?=
 <yps@yaroslavps.com>
Date: Wed, 27 Jan 2021 00:17:33 +0300
Subject: setbg: fixed to work with my new sway config

---
 dotfiles/.local/bin/setbg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'dotfiles/.local/bin/setbg')

diff --git a/dotfiles/.local/bin/setbg b/dotfiles/.local/bin/setbg
index eb319d0..255f503 100755
--- a/dotfiles/.local/bin/setbg
+++ b/dotfiles/.local/bin/setbg
@@ -6,7 +6,7 @@ mon="1"
 cp $1 "$HOME/.config/wall$mon.png"
 
 IFS=$'\n'
-outputcf=$(grep '^output .* background.*$' ~/.config/sway/config)
+outputcf=$(grep '^output .* background.*$' ~/.config/sway/$(uname -n))
 
 for line in $outputcf; do
   swaymsg $line
-- 
cgit v1.2.3