From d7b98eb0a9c608b43e2138d6d0bb6a59b3995195 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 2 Oct 2021 19:31:39 +0200 Subject: gui-apps/myswaylock: add new package --- gui-apps/myswaylock/files/myswaylock | 6 ++++++ gui-apps/myswaylock/myswaylock-1.0.0.ebuild | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100755 gui-apps/myswaylock/files/myswaylock create mode 100644 gui-apps/myswaylock/myswaylock-1.0.0.ebuild (limited to 'gui-apps') diff --git a/gui-apps/myswaylock/files/myswaylock b/gui-apps/myswaylock/files/myswaylock new file mode 100755 index 0000000..87cfaf0 --- /dev/null +++ b/gui-apps/myswaylock/files/myswaylock @@ -0,0 +1,6 @@ +#!/bin/sh +BACKS="/usr/share/backgrounds" + +swaymsg input type:keyboard xkb_layout us + +exec swaylock -f -n -c 000000 -i "$(shuf -n1 -e "$BACKS"/*)" diff --git a/gui-apps/myswaylock/myswaylock-1.0.0.ebuild b/gui-apps/myswaylock/myswaylock-1.0.0.ebuild new file mode 100644 index 0000000..3890511 --- /dev/null +++ b/gui-apps/myswaylock/myswaylock-1.0.0.ebuild @@ -0,0 +1,19 @@ +EAPI=7 + +DESCRIPTION="Script calling swaylock in my personal way" +HOMEPAGE="https://git.cynerd.cz" +S="${WORKDIR}" + +LICENSE="GPL-3.0+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + gui-apps/swaylock + x11-themes/background-lnxpcs +" +BDEPEND="" + +src_install() { + dobin "${FILESDIR}/myswaylock" +} -- cgit v1.2.3