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)