From 77cab473ce5d57b0ddb487dc920e02cce82af4c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 9 Aug 2018 12:59:47 +0200 Subject: x11-themes/background-lnxpcs: Extend path where we look for i3 sockets --- x11-themes/background-lnxpcs/files/i3background | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'x11-themes/background-lnxpcs/files') 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 -- cgit v1.2.3