Skip to content

Commit

Permalink
add: xfce4-dynamic-workspaces-plugin-git (#6620)
Browse files Browse the repository at this point in the history
Co-authored-by: ook37 <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 8, 2024
1 parent 672aa43 commit d95edad
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions packages/xfce4-dynamic-workspaces-plugin-git/.SRCINFO
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
source = https://github.com/DimseBoms/XFCE-Dynamic-Workspace.git

pkgname = xfce4-dynamic-workspaces-plugin-git
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>")

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
}
14 changes: 14 additions & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
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
Expand Down

0 comments on commit d95edad

Please sign in to comment.