Hello community, here is the log from the commit of package i3lock for openSUSE:Factory checked in at 2014-03-31 20:43:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/i3lock (Old) and /work/SRC/openSUSE:Factory/.i3lock.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "i3lock" Changes: -------- --- /work/SRC/openSUSE:Factory/i3lock/i3lock.changes 2014-02-18 20:24:38.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.i3lock.new/i3lock.changes 2014-03-31 20:43:27.000000000 +0200 @@ -1,0 +2,6 @@ +Thu Mar 20 15:36:04 UTC 2014 - [email protected] + +- add i3lock-xlock-compat package which provides /usr/bin/xlock + for drop-in replacement in e.g. xflock4 + +------------------------------------------------------------------- New: ---- i3lock-icon.png xlock.sh ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ i3lock.spec ++++++ --- /var/tmp/diff_new_pack.z8NqwW/_old 2014-03-31 20:43:28.000000000 +0200 +++ /var/tmp/diff_new_pack.z8NqwW/_new 2014-03-31 20:43:28.000000000 +0200 @@ -29,6 +29,9 @@ Group: System/GUI/Other Source: http://i3wm.org/i3lock/i3lock-%{version}.tar.bz2 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 -- [email protected] Patch1: i3lock-2.5-use-unix2_chkpwd.diff Url: http://i3wm.org/i3lock/ @@ -57,6 +60,17 @@ white screen (you can configure the color/an image). You can return to your 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 %setup -q %patch1 -p1 @@ -82,9 +96,17 @@ 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 %{?buildroot:%__rm -rf "%{buildroot}"} +%files xlock-compat +%defattr(-,root,root) +%{_bindir}/xlock +/usr/share/i3lock-xlock-compat + %files %defattr(-,root,root) %doc CHANGELOG LICENSE README ++++++ xlock.sh ++++++ #!/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 -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
