![]() |
/usr/bin/ script request
Heya gentlemen!
Okay, so I'm trying to have a custom script that will launch Garnet VM from a personal launcher icon on my desktop. So far, this is what I have. /usr/bin/gvm/gvm -a lnch -z 1 -O none -L 0x0000,0x0000,0x0000 -f no & xkbd -geometry +65536+66016 -k /media/mmc2/Keyboards/Garnet.xkbd & xkbd -geometry +65536+65536 -k /media/mmc2/Keyboards/Rightleft.xkbd & xkbd -geometry +400+65536 -k /media/mmc2/Keyboards/Updown.xkbd So two things. I would like the screen to be rotated first before executing this. Is there such a command? Second, I need to killall kill xkbd once Garnet closes and then rotate the screen back to normal. Any chance I could get some help from one of you boys? Thanks! |
Re: /usr/bin/ script request
Install xrandr: mikie.dy.fi/maemo/dists/diablo/user/binary-armel/xrandr_1.2.2-0_armel.deb
With xrandr, commands to rotate like "xrandr -o right" should work, AFAIK. killall xkbd? |
Re: /usr/bin/ script request
Quote:
And yeah, killall kill xkbd works in Xterminal but not in my /usr/bin script. I'm pretty sure it's because, when executing xkbd, it hangs in the script code so that any later commands never gets reached. Is there any other possible way around this? |
Re: /usr/bin/ script request
Quote:
Run xkbd with an '&' (w/out quotes) on the end but run GVM like normal. After the line that runs GVM, add "kill $!" which should stop the last program we backgrounded - i.e. XKBD. Something (fake) like this: #!/bin/sh /usr/share/knots2/rotate 1 xkbd & xkbd & gvm killall xkbd /usr/share/knots/rotate 0 EDIT: Found it. Judging by your presence in the Knots thread, I presume you have it installed. :) Run "/usr/share/knots2/rotate 1" etc. for different orientations. Wait... you're starting multiple XKBDs... |
Re: /usr/bin/ script request
Quote:
I was planning on stopping by to see ukki on Thursday night so I'll talk with him then about the rest of this. Many thanks qwerty! Nice to see that you still have a huge brain. :D |
All times are GMT. The time now is 12:07. |
vBulletin® Version 3.8.8