Subject: [PATCH 2/2] gnu: Add xfce4-i3-workspaces-plugin

From: Tomáš Čech <[email-masked]>
Date: Sat, 18 Jan 2025 00:15:07 +0100

* gnu/packages/xfce.scm (xfce4-i3-workspaces-plugin): New variable.
---
 gnu/packages/xfce.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
index 43722cf484..8184ec87bb 100644
--- a/gnu/packages/xfce.scm
+++ b/gnu/packages/xfce.scm
@@ -16,6 +16,7 @@
 ;;; Copyright © 2020, 2021, 2022 Michael Rohleder <[email-masked]>
 ;;; Copyright © 2021, 2022 Brendan Tildesley <[email-masked]>
 ;;; Copyright © 2021 André A. Gomes <[email-masked]>
+;;; Copyright © 2025 Tomáš Čech <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -590,6 +591,31 @@ (define-public xfce4-pulseaudio-plugin
     (license gpl2+)
     (properties `((release-tag-prefix . ,(string-append name "-"))))))
 
+(define-public xfce4-i3-workspaces-plugin
+  (package
+    (name "xfce4-i3-workspaces-plugin")
+    (version "1.4.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/denesb/xfce4-i3-workspaces-plugin")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1l957xzs479mnl1la6lx3ysaiqc0z8l84jg442wif9k8x9z6iah8"))))
+    (build-system gnu-build-system)
+    (native-inputs (list xfce4-dev-tools))
+    (inputs (list glib gtk+ libxfce4util xfce4-panel libxfce4ui xfce4-panel i3-wm i3ipc-glib json-glib))
+    (home-page "https://github.com/denesb/xfce4-i3-workspaces-plugin")
+    (synopsis "Xfce panel workspace switcher plugin for the i3 window manager")
+    (description
+     "This plugin is designed for switching workspaces and displaying which
+screen is currently visible, as well as indicating which workspace has a
+window requiring attention. Although it is intended for the Xfce4 panel, it is
+custom-built to work seamlessly with the tiling window manager i3.")
+    (license gpl3+)))
+
 (define-public xfce4-whiskermenu-plugin
   (package
     (name "xfce4-whiskermenu-plugin")
-- 
2.47.1