Accepting request 228218 from home:seife:testing
add i3lock-xlock-compat package which provides /usr/bin/xlock for drop-in replacement in e.g. xflock4 OBS-URL: https://build.opensuse.org/request/show/228218 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/i3lock?expand=0&rev=7
This commit is contained in:
parent
4c2ede4a45
commit
08e642b951
3
i3lock-icon.png
Normal file
3
i3lock-icon.png
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ba0ca359d5de4a7055ee9ad44b4b0b0d224521a21ea6c2974a7d579d1812f539
|
||||||
|
size 30218
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 20 15:36:04 UTC 2014 - seife+obs@b1-systems.com
|
||||||
|
|
||||||
|
- add i3lock-xlock-compat package which provides /usr/bin/xlock
|
||||||
|
for drop-in replacement in e.g. xflock4
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 17 08:01:39 UTC 2014 - seife+obs@b1-systems.com
|
Mon Feb 17 08:01:39 UTC 2014 - seife+obs@b1-systems.com
|
||||||
|
|
||||||
|
22
i3lock.spec
22
i3lock.spec
@ -29,6 +29,9 @@ License: BSD-3-Clause
|
|||||||
Group: System/GUI/Other
|
Group: System/GUI/Other
|
||||||
Source: http://i3wm.org/i3lock/i3lock-%{version}.tar.bz2
|
Source: http://i3wm.org/i3lock/i3lock-%{version}.tar.bz2
|
||||||
Source1: i3lock.pam
|
Source1: i3lock.pam
|
||||||
|
# borrowed from gnome-icon-theme
|
||||||
|
Source2: i3lock-icon.png
|
||||||
|
Source3: xlock.sh
|
||||||
# PATCH-FEATURE-OPENSUSE i3lock-2.5-use-unix2_chkpwd.diff -- seife+obs@b1-systems.com
|
# PATCH-FEATURE-OPENSUSE i3lock-2.5-use-unix2_chkpwd.diff -- seife+obs@b1-systems.com
|
||||||
Patch1: i3lock-2.5-use-unix2_chkpwd.diff
|
Patch1: i3lock-2.5-use-unix2_chkpwd.diff
|
||||||
Url: http://i3wm.org/i3lock/
|
Url: http://i3wm.org/i3lock/
|
||||||
@ -57,6 +60,17 @@ i3lock is a simple screen locker like slock. After starting it, you will see a
|
|||||||
white screen (you can configure the color/an image). You can return to your
|
white screen (you can configure the color/an image). You can return to your
|
||||||
screen by entering your password.
|
screen by entering your password.
|
||||||
|
|
||||||
|
%package xlock-compat
|
||||||
|
Summary: xlock-compatibility script which calls i3lock
|
||||||
|
Group: System/GUI/Other
|
||||||
|
Requires: ImageMagick
|
||||||
|
Conflicts: xlockmore
|
||||||
|
|
||||||
|
%description xlock-compat
|
||||||
|
This package provides a script /usr/bin/xlock which calls i3lock to lock your screen.
|
||||||
|
This is handy for hard-coded screen-saver invocations e.g. in XFCE4, so you can use
|
||||||
|
i3lock instead of xlock with them.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
@ -82,9 +96,17 @@ install -m0644 "%{SOURCE1}" "%{buildroot}%{_sysconfdir}/pam.d/%{name}"
|
|||||||
|
|
||||||
install -D -m0644 i3lock.1 "%{buildroot}%{_mandir}/man1/i3lock.1"
|
install -D -m0644 i3lock.1 "%{buildroot}%{_mandir}/man1/i3lock.1"
|
||||||
|
|
||||||
|
install -D -m0644 %{SOURCE2} %{buildroot}/usr/share/i3lock-xlock-compat/i3lock-icon.png
|
||||||
|
install -m0755 %{SOURCE3} %{buildroot}/%{_bindir}/xlock
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||||
|
|
||||||
|
%files xlock-compat
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_bindir}/xlock
|
||||||
|
/usr/share/i3lock-xlock-compat
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc CHANGELOG LICENSE README
|
%doc CHANGELOG LICENSE README
|
||||||
|
11
xlock.sh
Normal file
11
xlock.sh
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
XY=$(xdpyinfo |awk '/dimensions:/{print $2;exit}')
|
||||||
|
CACHEFILE=${HOME}/.cache/xlock-sim/lock-$XY.png
|
||||||
|
ICON=/usr/share/i3lock-xlock-compat/i3lock-icon.png
|
||||||
|
if ! test -e $CACHEFILE || test $ICON -nt $CACHEFILE; then
|
||||||
|
install -d ${HOME}/.cache/xlock-sim
|
||||||
|
convert $ICON -background none -gravity center -extent $XY $CACHEFILE
|
||||||
|
fi
|
||||||
|
# not totally black, so that we can see something is happening even if convert failed
|
||||||
|
exec /usr/bin/i3lock -n -c 444444 -i $CACHEFILE
|
Loading…
x
Reference in New Issue
Block a user