diff options
Diffstat (limited to 'x11-themes/background-lnxpcs/files')
-rwxr-xr-x | x11-themes/background-lnxpcs/files/i3background | 5 |
1 files changed, 2 insertions, 3 deletions
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" |