diff options
author | Karel Kočí <karel.koci@nic.cz> | 2018-10-08 11:16:26 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2018-10-08 11:16:26 +0200 |
commit | de5791ddb42d5b609b6b2d2e0c03f6524f12647c (patch) | |
tree | 0037c231a7f063501cf96dfa5f0cc621369c7a1b /x11-themes | |
parent | 2b0cc4d4d1532bfddc753b038e1e8a51e3dd02b8 (diff) | |
download | gentoo-personal-overlay-de5791ddb42d5b609b6b2d2e0c03f6524f12647c.tar.gz gentoo-personal-overlay-de5791ddb42d5b609b6b2d2e0c03f6524f12647c.tar.bz2 gentoo-personal-overlay-de5791ddb42d5b609b6b2d2e0c03f6524f12647c.zip |
Reimplement i3lock script handling
Now there is central package for my specific i3lock script and
pm trigger. Package background-lnxpcs is not solely for images and
background.
Diffstat (limited to 'x11-themes')
-rw-r--r-- | x11-themes/background-lnxpcs/background-lnxpcs-0.3-r1.ebuild (renamed from x11-themes/background-lnxpcs/background-lnxpcs-0.3.ebuild) | 31 | ||||
-rwxr-xr-x | x11-themes/background-lnxpcs/files/i3lock-lnxpcs | 4 |
2 files changed, 13 insertions, 22 deletions
diff --git a/x11-themes/background-lnxpcs/background-lnxpcs-0.3.ebuild b/x11-themes/background-lnxpcs/background-lnxpcs-0.3-r1.ebuild index 511ee9d..78c334a 100644 --- a/x11-themes/background-lnxpcs/background-lnxpcs-0.3.ebuild +++ b/x11-themes/background-lnxpcs/background-lnxpcs-0.3-r1.ebuild @@ -1,4 +1,4 @@ -EAPI=6 +EAPI=7 DESCRIPTION="Background pictures from lnxpcs and relevant scripts" HOMEPAGE="https://gitlab.com/jstpcs/lnxpcs" @@ -12,32 +12,27 @@ LICENSE="GPL-3.0+" SLOT="0" IUSE="1440p" -DEPENDS="media-gfx/imagemagick[png]" -RDEPEND=" - x11-misc/i3lock - media-gfx/feh[xinerama]" +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 RESOL="1920 1080" - if use 1440p; then - RESOL="2560 1440" - fi - for IMG in $WALLPAPERS; do - ./makemywall $RESOL "cards/black/$IMG-card-black.png" + local resolution="1920 1080" + use 1440p && resolution="2560 1440" + + for img in $WALLPAPERS; do + ./makemywall $resolution "cards/black/$img-card-black.png" done } src_install() { - local RES="1920x1080" - if use 1440p; then - RES="2560x1440" - fi + local resolution="1920x1080" + use 1440p && resolution="2560x1440" + insinto "/usr/share/backgrounds" - for IMG in $WALLPAPERS; do - doins "$IMG-card-black-$RES.png" + for img in $WALLPAPERS; do + doins "$img-card-black-$resolution.png" done dobin "${FILESDIR}/i3background" - dobin "${FILESDIR}/i3lock-lnxpcs" } diff --git a/x11-themes/background-lnxpcs/files/i3lock-lnxpcs b/x11-themes/background-lnxpcs/files/i3lock-lnxpcs deleted file mode 100755 index 7584750..0000000 --- a/x11-themes/background-lnxpcs/files/i3lock-lnxpcs +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -BACKS="/usr/share/backgrounds" -i3lock -c 000000 -i $(shuf -n1 -e "$BACKS"/*) -xset dpms force off |