You are not logged in.

#1 2009-07-26 12:52:00

Alberto Ferreira
Member
Registered: 2008-10-08
Posts: 41

Xorg single application high-performance

Hi, I want to run apps without loading crap. ( Run a single program without window managers, etc. )


I have wrote a script for this: ( Fee free to use it! wink )

#! /bin/bash

echo
echo "########################"
echo "# Full Performance GUI #"
echo "########################"
echo 
echo

cp ~/.xinitrc ~/.xinitrc_gui_app_bak && ok=1


if [ "$ok" == 1 ];then
 echo "SUCESSFUL BACKUP COMPLETED"
 echo "PROCEEDING"
 echo
 echo "Starting ","$1"

cat << EOF > ~/.xinitrc
exec "$@"
EOF

 xinit

 mv ~/.xinitrc_gui_app_bak ~/.xinitrc && done=1

else
 echo "BACKUP FAILED"
 echo "ABORTING"
fi

if [ "$ok" == 1 ];then
 [ "$done" == 1 ] && echo "INIT STAT RESTORED    [DONE]" 
fi

Just create an alias at your .bashrc:
e.g.:
alias xapp="~/gui_app.sh"

Then to run a app with no crap do xapp `your application and it's arguments`

My problem is that blender doesn't work. yikes
The keyboard works great and the mouse moves but the mouse buttons can't click and so I can't interact with the window.

Can someone help me out? Please?

Last edited by Alberto Ferreira (2009-07-26 15:10:39)

Offline

#2 2009-07-26 15:40:13

gnud
Member
Registered: 2005-11-27
Posts: 182

Re: Xorg single application high-performance

You could try to run blender with twm as a wm, and see if that works - the difference won't be very big smile

Offline

#3 2009-08-02 23:09:01

Alberto Ferreira
Member
Registered: 2008-10-08
Posts: 41

Re: Xorg single application high-performance

The mouse has the right icon now, not the ugly cross but it doesn't work. Any suggestions?

Offline

Board footer

Powered by FluxBB