From d1d4a63d4473cd4910b678cf5b385f622186fbd3 Mon Sep 17 00:00:00 2001 From: BossCode45 Date: Thu, 19 Dec 2024 15:00:45 +1300 Subject: feat: Added IPC client side to main binary Updated command line arguments to use `getopt_long' Made it so both -v and --version work Made it so that if you give it non recognised arguments they are sent through the socket to the running window manager if possible. --- YATwm.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 YATwm.nix (limited to 'YATwm.nix') diff --git a/YATwm.nix b/YATwm.nix new file mode 100644 index 0000000..3c583af --- /dev/null +++ b/YATwm.nix @@ -0,0 +1,30 @@ +{ + stdenv, + fetchgit, + xorg, + libnotify, + pkg-config +}: + + +stdenv.mkDerivation { + pname = "YATwm"; + version = "0.0.1"; + + src = fetchgit { + url = "https://git.tehbox.org/cgit/boss/YATwm.git/"; + rev = "v0.0.1"; + hash = "sha256-c0GIwZFZoaYsq6cK1cPzjxwPZzNg7tyDh44vLFsdMAI="; + }; + + installPhase = '' +runHook preInstall +mkdir -p $out/bin +install -D -m 755 YATwm $out/bin/YATwm +install -D -m 644 yat.desktop $out/usr/share/xsessions/yat.desktop +install -D -m 644 config $out/etc/YATwm/config +runHook postInstall + ''; + + buildInputs = [ xorg.libX11 xorg.libXrandr libnotify pkg-config ]; +} -- cgit v1.2.3