From 549c5e609936ade0db0e6661caaa103000aa219d Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 11 Jan 2022 15:26:11 -0600 Subject: [PATCH 2/4] gnu: gnome-xyz: Add gnome-shell-extension-jiggle. * gnu/packages/gnome-xyz.scm (gnome-shell-extension-jiggle): New Variable. --- gnu/packages/gnome-xyz.scm | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm index 00ea8eedda..216f178839 100644 --- a/gnu/packages/gnome-xyz.scm +++ b/gnu/packages/gnome-xyz.scm @@ -724,6 +724,47 @@ (define-public gnome-shell-extension-vertical-overview something that resembles the old vertically oriented style.") (license license:gpl3))) +(define-public gnome-shell-extension-jiggle + (package + (name "gnome-shell-extension-jiggle") + (version "8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jeffchannell/jiggle/") + (commit version))) + (sha256 + (base32 + "1wbdx2bp22bdwj51ckgivwglkmckr7z8kfwvc8nv4y376hjz5jxz")) + (snippet + '(begin (delete-file "schemas/gschemas.compiled"))))) + (build-system copy-build-system) + (arguments + `(#:install-plan + '(("." ,(string-append + "share/gnome-shell/extensions/" + "jiggle@jeffchannell.com") + #:include-regexp ("\\.js(on)?$" "\\.css$" "\\.ui$" "\\.png$" + "\\.xml$" "\\.compiled$"))) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-version + (lambda _ + (substitute* "metadata.json" + (("\"40.0\"") "\"40\", \"41\"")))) + (add-before 'install 'compile-schemas + (lambda _ + (with-directory-excursion "schemas" + (invoke "glib-compile-schemas" "."))))))) + (native-inputs + (list (list glib "bin"))) ; for glib-compile-schemas + (home-page "https://github.com/jeffchannell/jiggle") + (synopsis "Mouse curosr enlargment with small and fast movements") + (description "Jiggle is a Gnome Shell extension that highlights the cursor +position when the mouse is moved rapidly.") + (license license:gpl2))) + (define-public arc-theme (package (name "arc-theme") -- 2.34.0