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..5a603f2d36 --- /dev/null +++ b/packages/xfce4-dynamic-workspaces-plugin-git/.SRCINFO @@ -0,0 +1,13 @@ +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 + depends = gir1.2-notify-0.7 + 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..a94a0d3118 --- /dev/null +++ b/packages/xfce4-dynamic-workspaces-plugin-git/xfce4-dynamic-workspaces-plugin-git.pacscript @@ -0,0 +1,38 @@ +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" "gir1.2-notify-0.7") +pkgdesc="Dynamic workspaces for XFCE, similar to GNOME" +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 +} diff --git a/srclist b/srclist index 48e9c8c7af..f8f633c0ad 100644 --- a/srclist +++ b/srclist @@ -12566,6 +12566,20 @@ 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 + depends = gir1.2-notify-0.7 + 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