summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2021-10-02 19:31:39 +0200
committerKarel Kočí <cynerd@email.cz>2021-10-02 19:31:39 +0200
commitd7b98eb0a9c608b43e2138d6d0bb6a59b3995195 (patch)
treec8260164d24b072c3ae7a632ea603025ab7b5c56
parentf7689344a370a7d68c056809beceffc4caa2f83d (diff)
downloadgentoo-personal-overlay-d7b98eb0a9c608b43e2138d6d0bb6a59b3995195.tar.gz
gentoo-personal-overlay-d7b98eb0a9c608b43e2138d6d0bb6a59b3995195.tar.bz2
gentoo-personal-overlay-d7b98eb0a9c608b43e2138d6d0bb6a59b3995195.zip
gui-apps/myswaylock: add new package
-rwxr-xr-xgui-apps/myswaylock/files/myswaylock6
-rw-r--r--gui-apps/myswaylock/myswaylock-1.0.0.ebuild19
-rw-r--r--profiles/desktop/wayland/packages1
3 files changed, 26 insertions, 0 deletions
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"
+}
diff --git a/profiles/desktop/wayland/packages b/profiles/desktop/wayland/packages
index b6bf539..6323ee3 100644
--- a/profiles/desktop/wayland/packages
+++ b/profiles/desktop/wayland/packages
@@ -1,4 +1,5 @@
gui-wm/sway
+gui-apps/myswaylock
# Notification daemon
#app-misc/mako