From 240dabc125bf7f0bcb5fef936bcabdef3475c4b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 9 Aug 2018 12:21:13 +0200 Subject: x11-themes/background-lnxpcs: fix i3background --- x11-themes/background-lnxpcs/files/i3background | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'x11-themes/background-lnxpcs/files') diff --git a/x11-themes/background-lnxpcs/files/i3background b/x11-themes/background-lnxpcs/files/i3background index faec41e..0f8e7d6 100755 --- a/x11-themes/background-lnxpcs/files/i3background +++ b/x11-themes/background-lnxpcs/files/i3background @@ -1,6 +1,5 @@ #!/bin/sh BACKS="/usr/share/backgrounds" -BACKS="/home/cynerd/src/lnxpcs/walls/solarized-dark" # Set background if [ -n "$DISPLAY" ]; then # Only current one @@ -12,9 +11,9 @@ else done fi # Set cron -if ! crontab -l | grep -q i3background; then +if ! crontab -l 2>/dev/null | grep -q i3background; then TCRN="$(mktemp)" - crontab -l > "$TCRN" + crontab -l 2>/dev/null > "$TCRN" echo "* * * * * i3background" >> "$TCRN" crontab "$TCRN" rm "$TCRN" -- cgit v1.2.3