add eufonctl script
This commit is contained in:
parent
5a7f2abab9
commit
9b36e46674
9
bin/eufonctl.sh
Executable file
9
bin/eufonctl.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
SOCAT=socat
|
||||
display=$1
|
||||
test -n "$display" || display=$WAYLAND_DISPLAY
|
||||
test -n "$display" || display=wayland-0
|
||||
|
||||
socket_name="${XDG_RUNTIME_DIR}/kiwmi-repl.${display}.socket"
|
||||
|
||||
${SOCAT} - unix-connect:$socket_name
|
@ -10,6 +10,7 @@
|
||||
, gtk3
|
||||
, gtk-layer-shell
|
||||
, lua5_3
|
||||
, socat
|
||||
} :
|
||||
let
|
||||
lua = lua5_3;
|
||||
@ -63,5 +64,12 @@ stdenv.mkDerivation {
|
||||
webkitgtk
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
substitute bin/eufon.sh $out/bin/eufon \
|
||||
--replace SOCAT=socat SOCAT=${socat}/bin/socat
|
||||
chmod +x $out/bin/eufon
|
||||
'';
|
||||
|
||||
src = ./.;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user