blob: bf7267a71a25a0180d34074a107d0023baffaead (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
EAPI=7
DESCRIPTION="Background pictures from lnxpcs and relevant scripts"
HOMEPAGE="https://mega.nz/#F!mXgW3apI!Tdikb01SoOaTmNLiaTRhMg"
HASH="fd4487e1989fc040490fa437a2651d37afcde637"
SRC_URI="https://github.com/Cynerd/lnxpcs/archive/${HASH}/lnxpcs-${HASH}.tar.gz -> ${PN}-${HASH}.tar.gz"
S="${WORKDIR}/lnxpcs-${HASH}"
KEYWORDS="amd64"
LICENSE="GPL-3.0+"
SLOT="0"
IUSE="1440p 1600p"
RDEPEND="media-gfx/feh[xinerama]"
BDEPEND="media-gfx/imagemagick[png]"
WALLPAPERS="bash cron gcc gnu gnu-linux iptables kernel kill python root su sudo vim"
src_compile() {
local resolution="1920 1080"
use 1440p && resolution="2560 1440"
use 1600p && resolution="2560 1600"
for img in $WALLPAPERS; do
./makemywall $resolution "cards/black/$img-card-black.png"
done
}
src_install() {
local resolution="1920x1080"
use 1440p && resolution="2560x1440"
use 1600p && resolution="2560x1600"
insinto "/usr/share/backgrounds"
for img in $WALLPAPERS; do
newins "$img-card-black-$resolution.png" "$img.png"
done
dobin "${FILESDIR}/i3background"
dobin "${FILESDIR}/swaybackground"
}
|