Merge pull request #54966 from eyJhb/betterlockscreen

betterlockscreen: init at 3.0.1
This commit is contained in:
Franz Pletz 2019-02-03 08:46:33 +00:00 committed by GitHub
commit 1d2b5045e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 58 additions and 0 deletions

View File

@ -1500,6 +1500,11 @@
github = "expipiplus1"; github = "expipiplus1";
name = "Joe Hermaszewski"; name = "Joe Hermaszewski";
}; };
eyjhb = {
email = "eyjhbb@gmail.com";
github = "eyJhb";
name = "eyJhb";
};
f--t = { f--t = {
email = "git@f-t.me"; email = "git@f-t.me";
github = "f--t"; github = "f--t";

View File

@ -0,0 +1,39 @@
{
stdenv, makeWrapper, fetchFromGitHub, substituteAll,
imagemagick, i3lock-color, xdpyinfo, xrandr, bc, feh
}:
stdenv.mkDerivation rec {
name = "betterlockscreen-${version}";
version = "3.0.1";
src = fetchFromGitHub {
owner = "pavanjadhaw";
repo = "betterlockscreen";
rev = version;
sha256 = "0jc8ifb69shmd0avx6vny4m1w5dfxkkf5vnm7qcrmc8yflb0s3z6";
};
nativeBuildInputs = [ makeWrapper ];
patches = [ ./replace-i3lock.patch ];
installPhase =
let
PATH =
stdenv.lib.makeBinPath
[imagemagick i3lock-color xdpyinfo xrandr bc feh];
in ''
mkdir -p $out/bin
cp betterlockscreen $out/bin/betterlockscreen
wrapProgram "$out/bin/betterlockscreen" --prefix PATH : "$out/bin:${PATH}"
'';
meta = with stdenv.lib; {
description = "Betterlockscreen is a simple minimal lock screen which allows you to cache images with different filters and lockscreen with blazing speed.";
homepage = https://github.com/pavanjadhaw/betterlockscreen;
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ eyjhb ];
};
}

View File

@ -0,0 +1,12 @@
--- a/betterlockscreen
+++ b/betterlockscreen
@@ -76,7 +76,7 @@ prelock() {
lock() {
#$1 image path
- i3lock \
+ i3lock-color \
-t -i "$1" \
--timepos='x+110:h-70' \
--datepos='x+43:h-45' \

View File

@ -17623,6 +17623,8 @@ with pkgs;
i3lock-pixeled = callPackage ../misc/screensavers/i3lock-pixeled { }; i3lock-pixeled = callPackage ../misc/screensavers/i3lock-pixeled { };
betterlockscreen = callPackage ../misc/screensavers/betterlockscreen { };
i3minator = callPackage ../tools/misc/i3minator { }; i3minator = callPackage ../tools/misc/i3minator { };
i3pystatus = callPackage ../applications/window-managers/i3/pystatus.nix { }; i3pystatus = callPackage ../applications/window-managers/i3/pystatus.nix { };