Merge pull request #54966 from eyJhb/betterlockscreen
betterlockscreen: init at 3.0.1
This commit is contained in:
commit
1d2b5045e6
@ -1500,6 +1500,11 @@
|
||||
github = "expipiplus1";
|
||||
name = "Joe Hermaszewski";
|
||||
};
|
||||
eyjhb = {
|
||||
email = "eyjhbb@gmail.com";
|
||||
github = "eyJhb";
|
||||
name = "eyJhb";
|
||||
};
|
||||
f--t = {
|
||||
email = "git@f-t.me";
|
||||
github = "f--t";
|
||||
|
39
pkgs/misc/screensavers/betterlockscreen/default.nix
Normal file
39
pkgs/misc/screensavers/betterlockscreen/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
12
pkgs/misc/screensavers/betterlockscreen/replace-i3lock.patch
Normal file
12
pkgs/misc/screensavers/betterlockscreen/replace-i3lock.patch
Normal 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' \
|
||||
|
@ -17623,6 +17623,8 @@ with pkgs;
|
||||
|
||||
i3lock-pixeled = callPackage ../misc/screensavers/i3lock-pixeled { };
|
||||
|
||||
betterlockscreen = callPackage ../misc/screensavers/betterlockscreen { };
|
||||
|
||||
i3minator = callPackage ../tools/misc/i3minator { };
|
||||
|
||||
i3pystatus = callPackage ../applications/window-managers/i3/pystatus.nix { };
|
||||
|
Loading…
Reference in New Issue
Block a user