diff options
author | Karel Kočí <karel.koci@nic.cz> | 2018-08-09 12:21:13 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2018-08-09 12:21:13 +0200 |
commit | 240dabc125bf7f0bcb5fef936bcabdef3475c4b2 (patch) | |
tree | b13dab94516507840d5683242c821b9459965e4f /x11-themes/background-lnxpcs/files/i3background | |
parent | 3539ad72195664665468ba9ca4aeeb07e33d6e55 (diff) | |
download | gentoo-personal-overlay-240dabc125bf7f0bcb5fef936bcabdef3475c4b2.tar.gz gentoo-personal-overlay-240dabc125bf7f0bcb5fef936bcabdef3475c4b2.tar.bz2 gentoo-personal-overlay-240dabc125bf7f0bcb5fef936bcabdef3475c4b2.zip |
x11-themes/background-lnxpcs: fix i3background
Diffstat (limited to 'x11-themes/background-lnxpcs/files/i3background')
-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" |