summaryrefslogtreecommitdiff
path: root/x11-themes/background-lnxpcs
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2018-08-09 12:21:13 +0200
committerKarel Kočí <karel.koci@nic.cz>2018-08-09 12:21:13 +0200
commit240dabc125bf7f0bcb5fef936bcabdef3475c4b2 (patch)
treeb13dab94516507840d5683242c821b9459965e4f /x11-themes/background-lnxpcs
parent3539ad72195664665468ba9ca4aeeb07e33d6e55 (diff)
downloadgentoo-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')
-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-xx11-themes/background-lnxpcs/files/i3background5
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"