From 9b7c7daf57b92dfe955c0d8a65e33653808ff21b Mon Sep 17 00:00:00 2001 From: ook37 Date: Fri, 8 Nov 2024 17:35:57 -0500 Subject: [PATCH 1/7] add: `xfce4-dynamic-workspaces-plugin-git` --- packagelist | 1 + .../xfce4-dynamic-workspaces-plugin-git/.SRCINFO | 12 ++++++++++++ .../xfce4-dynamic-workspaces-plugin-git.pacscript | 12 ++++++++++++ srclist | 13 +++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 packages/xfce4-dynamic-workspaces-plugin-git/.SRCINFO create mode 100644 packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript diff --git a/packagelist b/packagelist index 9cf422cbed..72be478e1c 100644 --- a/packagelist +++ b/packagelist @@ -620,6 +620,7 @@ xdg-desktop-portal-hyprland xdg-ninja-git xdg-terminal-exec-git xfce4-deb +xfce4-dynamic-workspaces-plugin-git xfce4-hotcorner-plugin-git xfce4-settings-pine-git xmind-vana-deb diff --git a/packages/xfce4-dynamic-workspaces-plugin-git/.SRCINFO b/packages/xfce4-dynamic-workspaces-plugin-git/.SRCINFO new file mode 100644 index 0000000000..5ed2144981 --- /dev/null +++ b/packages/xfce4-dynamic-workspaces-plugin-git/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = xfce4-dynamic-workspaces-plugin-git + gives = xfce4-dynamic-workspaces-plugin + pkgver = 0.0.1 + pkgdesc = Dynamic workspaces for XFCE, similar to GNOME + arch = all + depends = python3-gi + depends = libwnck-3.0 + depends = wmctrl + maintainer = Oren Klopfer + source = https://github.com/DimseBoms/XFCE-Dynamic-Workspace.git + +pkgname = xfce4-dynamic-workspaces-plugin-git diff --git a/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript b/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript new file mode 100644 index 0000000000..15a492b4eb --- /dev/null +++ b/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript @@ -0,0 +1,12 @@ +pkgname="xfce4-dynamic-workspaces-plugin-git" +source=("https://github.com/DimseBoms/XFCE-Dynamic-Workspace.git") +arch=("all") +pkgver="0.0.1" +gives="xfce4-dynamic-workspaces-plugin" +depends=("python3-gi" "libwnck-3.0" "wmctrl") +pkgdesc="Dynamic workspaces for XFCE, similar to GNOME" +maintainer=("Oren Klopfer ") + +package() { + install -Dm755 "XFCE-Dynamic-Workspace/dynamic_workspaces.py" -t "${pkgdir}/usr/bin" +} \ No newline at end of file diff --git a/srclist b/srclist index 48e9c8c7af..ed06089190 100644 --- a/srclist +++ b/srclist @@ -12566,6 +12566,19 @@ pkgbase = xfce4-deb pkgname = xfce4-deb --- +pkgbase = xfce4-dynamic-workspaces-plugin-git + gives = xfce4-dynamic-workspaces-plugin + pkgver = 0.0.1 + pkgdesc = Dynamic workspaces for XFCE, similar to GNOME + arch = all + depends = python3-gi + depends = libwnck-3.0 + depends = wmctrl + maintainer = Oren Klopfer + source = https://github.com/DimseBoms/XFCE-Dynamic-Workspace.git + +pkgname = xfce4-dynamic-workspaces-plugin-git +--- pkgbase = xfce4-hotcorner-plugin-git gives = xfce4-hotcorner-plugin pkgver = 0.0.4 From 71dc06eb92f6431067f1c3669e577dfcbf85ec6d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 8 Nov 2024 22:38:02 +0000 Subject: [PATCH 2/7] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../xfce4-dynamic-workspaces-plugin-git.pacscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript b/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript index 15a492b4eb..37088dbc2a 100644 --- a/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript +++ b/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript @@ -9,4 +9,4 @@ maintainer=("Oren Klopfer ") package() { install -Dm755 "XFCE-Dynamic-Workspace/dynamic_workspaces.py" -t "${pkgdir}/usr/bin" -} \ No newline at end of file +} From f5abe715226e57b302bb82c5cb489ea7674ed01c Mon Sep 17 00:00:00 2001 From: oklopfer <104327997+oklopfer@users.noreply.github.com> Date: Fri, 8 Nov 2024 17:39:10 -0500 Subject: [PATCH 3/7] Update xfce4-dynamic-workspaces-plugin-git.pacscript --- .../xfce4-dynamic-workspaces-plugin-git.pacscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript b/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript index 37088dbc2a..caedd2b517 100644 --- a/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript +++ b/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript @@ -3,7 +3,7 @@ source=("https://github.com/DimseBoms/XFCE-Dynamic-Workspace.git") arch=("all") pkgver="0.0.1" gives="xfce4-dynamic-workspaces-plugin" -depends=("python3-gi" "libwnck-3.0" "wmctrl") +depends=("python3-gi" "libwnck-3-0" "wmctrl") pkgdesc="Dynamic workspaces for XFCE, similar to GNOME" maintainer=("Oren Klopfer ") From b229365c64f91864382246a68c6879f3d384c52d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 8 Nov 2024 22:40:47 +0000 Subject: [PATCH 4/7] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- packages/xfce4-dynamic-workspaces-plugin-git/.SRCINFO | 2 +- srclist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/xfce4-dynamic-workspaces-plugin-git/.SRCINFO b/packages/xfce4-dynamic-workspaces-plugin-git/.SRCINFO index 5ed2144981..9d4ba76e1e 100644 --- a/packages/xfce4-dynamic-workspaces-plugin-git/.SRCINFO +++ b/packages/xfce4-dynamic-workspaces-plugin-git/.SRCINFO @@ -4,7 +4,7 @@ pkgbase = xfce4-dynamic-workspaces-plugin-git pkgdesc = Dynamic workspaces for XFCE, similar to GNOME arch = all depends = python3-gi - depends = libwnck-3.0 + depends = libwnck-3-0 depends = wmctrl maintainer = Oren Klopfer source = https://github.com/DimseBoms/XFCE-Dynamic-Workspace.git diff --git a/srclist b/srclist index ed06089190..0abe58fc60 100644 --- a/srclist +++ b/srclist @@ -12572,7 +12572,7 @@ pkgbase = xfce4-dynamic-workspaces-plugin-git pkgdesc = Dynamic workspaces for XFCE, similar to GNOME arch = all depends = python3-gi - depends = libwnck-3.0 + depends = libwnck-3-0 depends = wmctrl maintainer = Oren Klopfer source = https://github.com/DimseBoms/XFCE-Dynamic-Workspace.git From ecc627fc34258c6e503a4a10103c481ae19752a8 Mon Sep 17 00:00:00 2001 From: oklopfer <104327997+oklopfer@users.noreply.github.com> Date: Fri, 8 Nov 2024 18:03:04 -0500 Subject: [PATCH 5/7] Update xfce4-dynamic-workspaces-plugin-git.pacscript --- .../xfce4-dynamic-workspaces-plugin-git.pacscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript b/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript index caedd2b517..06d38fb24c 100644 --- a/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript +++ b/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript @@ -3,7 +3,7 @@ source=("https://github.com/DimseBoms/XFCE-Dynamic-Workspace.git") arch=("all") pkgver="0.0.1" gives="xfce4-dynamic-workspaces-plugin" -depends=("python3-gi" "libwnck-3-0" "wmctrl") +depends=("python3-gi" "libwnck-3-0" "wmctrl" "gir1.2-notify-0.7") pkgdesc="Dynamic workspaces for XFCE, similar to GNOME" maintainer=("Oren Klopfer ") From 604e1451f3a5fb12c2ad9b9b7ffee304efa0e0d0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 8 Nov 2024 23:05:03 +0000 Subject: [PATCH 6/7] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- packages/xfce4-dynamic-workspaces-plugin-git/.SRCINFO | 1 + srclist | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/xfce4-dynamic-workspaces-plugin-git/.SRCINFO b/packages/xfce4-dynamic-workspaces-plugin-git/.SRCINFO index 9d4ba76e1e..5a603f2d36 100644 --- a/packages/xfce4-dynamic-workspaces-plugin-git/.SRCINFO +++ b/packages/xfce4-dynamic-workspaces-plugin-git/.SRCINFO @@ -6,6 +6,7 @@ pkgbase = xfce4-dynamic-workspaces-plugin-git depends = python3-gi depends = libwnck-3-0 depends = wmctrl + depends = gir1.2-notify-0.7 maintainer = Oren Klopfer source = https://github.com/DimseBoms/XFCE-Dynamic-Workspace.git diff --git a/srclist b/srclist index 0abe58fc60..f8f633c0ad 100644 --- a/srclist +++ b/srclist @@ -12574,6 +12574,7 @@ pkgbase = xfce4-dynamic-workspaces-plugin-git depends = python3-gi depends = libwnck-3-0 depends = wmctrl + depends = gir1.2-notify-0.7 maintainer = Oren Klopfer source = https://github.com/DimseBoms/XFCE-Dynamic-Workspace.git From 534eaa1f22216c2dfe0d8bd9b96a5dadd1305733 Mon Sep 17 00:00:00 2001 From: oklopfer <104327997+oklopfer@users.noreply.github.com> Date: Fri, 8 Nov 2024 18:18:55 -0500 Subject: [PATCH 7/7] Update xfce4-dynamic-workspaces-plugin-git.pacscript --- ...e4-dynamic-workspaces-plugin-git.pacscript | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript b/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript index 06d38fb24c..a94a0d3118 100644 --- a/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript +++ b/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript @@ -9,4 +9,30 @@ maintainer=("Oren Klopfer ") package() { install -Dm755 "XFCE-Dynamic-Workspace/dynamic_workspaces.py" -t "${pkgdir}/usr/bin" + mkdir -p "${pkgdir}/etc/skel/.config/autostart" + echo "[Desktop Entry] +Encoding=UTF-8 +Version=0.0.1 +Type=Application +Name=Dynamic Workspaces +Comment=Dynamic Workspaces for XFCE +Exec=dynamic_workspaces.py +OnlyShowIn=XFCE; +RunHook=0 +StartupNotify=false +Terminal=false +Hidden=false" | tee "${pkgdir}/etc/skel/.config/autostart/dynamic_workspaces.desktop" > /dev/null +} + +post_install() { + mkdir -p "${homedir}/.config/autostart" + if ! [[ -f "${homedir}/.config/autostart/dynamic_workspaces.desktop" ]]; then + sudo ln -sf "/etc/skel/.config/autostart/dynamic_workspaces.desktop" "${homedir}/.config/autostart/dynamic_workspaces.desktop" + fi +} + +post_remove() { + if [[ -L "${homedir}/.config/autostart/dynamic_workspaces.desktop" ]]; then + sudo rm -f "${homedir}/.config/autostart/dynamic_workspaces.desktop" + fi }