From 9bcea226bbd4b2cdd78612defae95f5bd948b6c4 Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Wed, 10 Nov 2021 23:45:17 -0700 Subject: [PATCH] update helpers --- build.sh | 2 +- install.sh | 10 +++++++++- ryudo.desktop | 6 ++++++ startryudo | 3 +++ 4 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 ryudo.desktop create mode 100755 startryudo diff --git a/build.sh b/build.sh index ce136f8..7053ea1 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,6 @@ #!/bin/sh -if [! -e config.h ]; then +if [ ! -e config.h ]; then cp config.def.h config.h fi diff --git a/install.sh b/install.sh index 82ac188..f451473 100755 --- a/install.sh +++ b/install.sh @@ -13,8 +13,16 @@ if [ $(whoami) != "root" ]; then echo "You may want to add it to your PATH." echo "The manual pages were not installed." else - cp ryudo $PLAN9/bin/ryudo + cp ryudo ${PLAN9}/bin/ryudo + cp ryudo.desktop /usr/share/xsessions/ryudo.desktop + cp startryudo /usr/bin/startryudo cp ryudo.1 $PLAN9/man/man1/ryudo.1 + + chmod a+x /usr/bin/startryudo + chmod a+x ${PLAN9}/bin/ryudo + echo "ryudo has been installed to '${PLAN9}/bin/';" + echo "xsession has been installed to '/usr/share/xsessions';" + echo "startryudo script has been installed to '/usr/bin/';" echo "The manual pages have been installed to '${PLAN9}/man/'" fi diff --git a/ryudo.desktop b/ryudo.desktop new file mode 100644 index 0000000..3058863 --- /dev/null +++ b/ryudo.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Ryudo +Comment=The minimal hybrid window manager that flows +Exec=startryudo +TryExec=startryudo +Type=Application diff --git a/startryudo b/startryudo new file mode 100755 index 0000000..f8b8f0f --- /dev/null +++ b/startryudo @@ -0,0 +1,3 @@ +#!/bin/sh +sh ~/.ryudorc & +ryudo $(cat ~/.ryudo.conf)