diff options
Diffstat (limited to 'x11-themes')
-rw-r--r-- | x11-themes/background-lnxpcs/background-lnxpcs-0.1.1.ebuild (renamed from x11-themes/background-lnxpcs/background-lnxpcs-0.1.ebuild) | 0 | ||||
-rwxr-xr-x | x11-themes/background-lnxpcs/files/i3background | 5 |
2 files changed, 2 insertions, 3 deletions
diff --git a/x11-themes/background-lnxpcs/background-lnxpcs-0.1.ebuild b/x11-themes/background-lnxpcs/background-lnxpcs-0.1.1.ebuild index 405e187..405e187 100644 --- a/x11-themes/background-lnxpcs/background-lnxpcs-0.1.ebuild +++ b/x11-themes/background-lnxpcs/background-lnxpcs-0.1.1.ebuild 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" |