From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJfEp-0006tk-86 for guix-patches@gnu.org; Fri, 18 May 2018 09:16:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJfEo-00015E-1B for guix-patches@gnu.org; Fri, 18 May 2018 09:16:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59622) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJfEn-00014v-Tp for guix-patches@gnu.org; Fri, 18 May 2018 09:16:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fJfEn-0001xr-Lo for guix-patches@gnu.org; Fri, 18 May 2018 09:16:01 -0400 Subject: [bug#31491] [PATCH] gnu: xss-lock: New variable. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJfEL-0006tW-L1 for guix-patches@gnu.org; Fri, 18 May 2018 09:15:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJfEK-0000TZ-Aw for guix-patches@gnu.org; Fri, 18 May 2018 09:15:33 -0400 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:41215) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJfEK-0000RT-4s for guix-patches@gnu.org; Fri, 18 May 2018 09:15:32 -0400 Received: by mail-wr0-x242.google.com with SMTP id w15-v6so1619594wrp.8 for ; Fri, 18 May 2018 06:15:32 -0700 (PDT) Received: from mimimi.home (2a01cb040a37a0005adf9a0845f647b3.ipv6.abo.wanadoo.fr. [2a01:cb04:a37:a000:5adf:9a08:45f6:47b3]) by smtp.gmail.com with ESMTPSA id q81-v6sm5274366wmd.14.2018.05.18.06.15.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 06:15:30 -0700 (PDT) From: Pierre Neidhardt Date: Fri, 18 May 2018 15:15:28 +0200 Message-Id: <20180518131528.31128-1-ambrevar@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31491@debbugs.gnu.org * gnu/packages/xdisorg.scm (xss-lock): New variable. --- gnu/packages/xdisorg.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 0432411ab..4f6059aa5 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -1438,3 +1438,39 @@ with black color on a white background (colors are configurable on the commandline).") (home-page "https://www.joachim-breitner.de/projects#screen-message") (license license:gpl2+))) + +(define-public xss-lock + ;; xss-lock does not seem to be maintained any longer, but the last commits + ;; fix important issues so we package them. + (let ((version "0.3.0") + (revision "1") + (commit "1e158fb20108058dbd62bd51d8e8c003c0a48717")) + (package + (name "xss-lock") + (version (git-version version revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://bitbucket.org/raymonad/xss-lock.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "10hx7k7ga8g08akwz8qrsvj8iqr5nd4siiva6sjx789jvf0sak7r")))) + (build-system cmake-build-system) + (inputs `(("glib" ,glib) + ("xcb-util" ,xcb-util))) + (native-inputs + `(("python-docutils" ,python-docutils) + ("pkg-config" ,pkg-config))) + (arguments + `(#:tests? #f)) + (synopsis "Use external screen locker on events") + (description "@code{xss-lock} listens to X signals to fire up a +user-defined screensaver. In effect this allows to automatically lock the +screen when closing a laptop lid or after a period of user inactivity (as set +with @code{xset s TIMEOUT}). The notifier command, if specified, is executed +first. Additionally, xss-lock uses the inhibition logic to lock the screen +before the system goes to sleep.") + (home-page "https://bitbucket.org/raymonad/xss-lock") + (license license:bsd-style)))) -- 2.17.0