From 16c57bb791a1fc76b8b00894e29c050681809402 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 6 May 2024 09:53:43 +0200 Subject: ... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- open-vm-tools/Makefile | 16 ++++++++++++++++ open-vm-tools/xinit | 6 ++++++ 2 files changed, 22 insertions(+) create mode 100644 open-vm-tools/Makefile create mode 100644 open-vm-tools/xinit (limited to 'open-vm-tools') diff --git a/open-vm-tools/Makefile b/open-vm-tools/Makefile new file mode 100644 index 0000000..c09adeb --- /dev/null +++ b/open-vm-tools/Makefile @@ -0,0 +1,16 @@ +.POSIX: + +XINITRC_ORDER = 95 + +install: + mkdir -p -- ~/.config/X11/xinit/xinitrc.d + test ! -e ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-open-vm-tools || \ + test -L ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-open-vm-tools + ln -sf -- ~/.dotfiles/open-vm-tools/xinit ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-open-vm-tools + +uninstall: + +! ../check-installed open-vm-tools + -unlink -- ~/.config/X11/xinit/xinitrc.d/$(XINITRC_ORDER)-open-vm-tools + -rmdir -- ~/.config/X11/xinit/xinitrc.d + -rmdir -- ~/.config/X11/xinit + -rmdir -- ~/.config/X11 diff --git a/open-vm-tools/xinit b/open-vm-tools/xinit new file mode 100644 index 0000000..710f7f1 --- /dev/null +++ b/open-vm-tools/xinit @@ -0,0 +1,6 @@ +# -*- shell-script -*- + +if vmware-checkvm >/dev/null 2>/dev/null; then + vmtoolsd -n vmusr & + (sleep 20; coredown) & +fi -- cgit v1.2.3-70-g09d2