summaryrefslogtreecommitdiff
path: root/x11-themes/background-lnxpcs/files/i3background
diff options
context:
space:
mode:
Diffstat (limited to 'x11-themes/background-lnxpcs/files/i3background')
-rwxr-xr-xx11-themes/background-lnxpcs/files/i3background2
1 files changed, 1 insertions, 1 deletions
diff --git a/x11-themes/background-lnxpcs/files/i3background b/x11-themes/background-lnxpcs/files/i3background
index 0f8e7d6..c63424e 100755
--- a/x11-themes/background-lnxpcs/files/i3background
+++ b/x11-themes/background-lnxpcs/files/i3background
@@ -6,7 +6,7 @@ if [ -n "$DISPLAY" ]; then
feh --randomize --no-fehbg --bg-center "$BACKS"
else
# All instances
- for socket in `find /tmp/i3-* -name ipc-socket\*`; do
+ for socket in $(find /run/user/$(id -u)/i3 /tmp/i3-$(id -un).* -name ipc-socket\* 2>/dev/null); do
i3-msg -s $socket "exec feh --randomize --no-fehbg --bg-center '$BACKS'"
done
fi