![]() |
Need help with my first script
Hey all.
So this is what I have so far which is basically a collection of junk I copied from others here in these forums over the past year. #!/bin/sh gconftool-2 --set -t bool /system/osso/af/keyboard-attached true echo -e \033[?25l' echo -e \033[?25l' gconftool-2 -s /apps/osso/xterm/scrollbar -t bool false gconftool-2 -s /apps/osso/xterm/toolbar -t bool false stty rows 25 stty cols 80 sleep 2 xkbd -geometry +65536+65992 -k /media/mmc2/Keyboards/Flat2.xkbd & xkbd -geometry +725+360 -k /media/mmc2/Keyboards/Keypad.xkbd & ssh -l addison ancardia.ath.cx gconftool-2 --set -t bool /system/osso/af/keyboard-attached false killall xkbd So two requests. How can I make this so it launches a full screen X Terminal? The other thing is that I'd like it so that pressing the center D-Pad, it would run this additional routine. #!/bin/sh killall xkbd sleep 2 xkbd -geometry +65536+65992 -k /media/mmc2/Keyboards/Flat2.xkbd & xkbd -geometry +725+360 -k /media/mmc2/Keyboards/Keypad.xkbd The reason for this is that I'd like to view the 25th row in Xterm from time to time since my touch screen keyboard covers that area. So is this last request even possible? I looked at matan's python script suggestion but it's a little over my head. :( Here's a screenshot of what I'm trying to do here. http://img684.imageshack.us/img684/2...9122300101.png |
Re: Need help with my first script
Quote:
osso-xterm -e your-script.sh An example (instead of your-script.sh I just use 'vi'): #!/bin/sh osso-xterm -e vi You can test this interactively with osso-xterm -e vi in an xterm. It'll launch another xterm which runs 'vi'. Try it, then drop back to multitask view - you'll see two xterms, the one you ran 'osso-xterm -e vi' in, and a new one with just 'vi'. |
Re: Need help with my first script
3 Attachment(s)
request1 :
A. use wmctrl(wmctrl -r :ACTIVE: -b toggle,fullscreen). someone uploaded it on this forlum. B. use mrxvt instead of osso-xterm . you have to download a debian package (http://http.us.debian.org/debian/poo...1+b1_armel.deb) , extract it (dpkg-deb -X mrxvt_0.5.4-1+b1_armel.deb dir) , move the binary (mv dir/usr/bin/mrxvf-full /usr/local/bin/) , write a .desktop file (/usr/share/applications/hildon/mrxvt.desktop) and edit your config file (~/.mrxvtrc). but mrxvt is faster and more flexible than osso-xterm. (ex: there is "-fn" , fullscreen startup option) probably , mrxvt can realize your request2. add "Mrxvt.macro.KP_Enter: NewTab scriptname.sh" to ~/.mrxvtrc . |
Re: Need help with my first script
Thanks guys!
Hey moyashi, I'm pretty sure I made it correctly through all of your steps except for the last one about the config file. I have: /home/user/.mrxvtrc/mrxvtrc for my config file that I'm borrowing from you. Is that the correct placement for it and file extention as well? I removed the .txt from it and added the folder .mrxvtrc to /home/user |
Re: Need help with my first script
Quote:
# The names of many of the config files (not directories) in Linux(Unix) contains "rc" (ie: .bashrc). #"rc" means "run command". here is the man page happy holidays ! |
Re: Need help with my first script
Wow!
This mrxvt is amazing! I can't believe I've never heard of this until now. Thank you so much for putting this gem under my Christmas tree! :D Even though I don't have much of a clue to what I'm doing here, I think it's all set up correctly. The only thing I'm having trouble with is the Macro. If I put "NewTab keyboard.sh" for my simple script to run (it works great by the way!), a new tab button appears on the screen which takes up precious space. Plus, every time I would like to see what's under the keyboard, those tabs keep building on top of eachother. Is there a way to run the script after a key has been pressed so that a new tab doesn't occur? I read that webpage you provided twice, but trying to comprehend linux is still very unfamiliar to me. And yeah, Happy Holidays Moyashi. :) |
Re: Need help with my first script
my pleasure.
ok. try to use the following code Code:
#! /bin/shCode:
mrxvt-full -fs +sb -aht -e yourstartupscript.sh |
Re: Need help with my first script
Almost there, but still not quite yet. :)
Do I need to install qole's easy debian for this to work? The error I'm seeing is this: /usr/bin/keykill.sh: line 9: start-stop-daemon: not found /usr/bin/keykill.sh: line 10: start-stop-daemon: not found I'm using the latest Diablo OS. |
Re: Need help with my first script
Dude, and I say this with all smiles, but you can't leave me hanging like this! :D
I've got mrxvt to launch in full screen with some extra nice settings on top. Big time thanks for even mentioning this app. I absolutely love it! Because this isn't hildonized, here's my new condensed script. #!/bin/sh xkbd -geometry +65536+65992 -k /media/mmc2/Keyboards/Flat2.xkbd & xkbd -geometry +725+360 -k /media/mmc2/Keyboards/Keypad.xkbd & ssh -l addison ancardia.ath.cx killall xkbd I still need a way to kill xkbd for a second or two then run xkbd again with those two keyboards after pressing a hardware button while being logged in to that ssh session. The ssh setup that I have requires every pixel to be available on the screen. So there's no room for tabs or even a one pixel border around the edges. I Googled start-stop-daemon maemo even before my last post and the first link was to this thread. :D So yeah, I'm not understanding how to make your suggestion work. Everything else you wrote about I was able to follow. I'm sorry for being such a train wreck here but please help make this request of mine a stocking stuffer this holiday season. :) |
Re: Need help with my first script
Quote:
(ls -l /sbin/start-stop-daemon) The 'not found' messages are then probably because you don't have /sbin in the $PATH, which again indicates that you're probably not running the script as root. Does the script need to be root? If so, change to root. If not, then simply add the path, i.e. /sbin/start-stop-daemon |
Re: Need help with my first script
Okay. I see it now.
I was looking at /usr/sbin that's why it wasn't there. And yeah, running mrxvt as root made the difference. So I think I'm all good from here on out. Many thanks! I feel like I'm set for life with this. :) Matan was super awesome enough to hand over a working version of xbindkeys for Diablo OS. http://talk.maemo.org/showpost.php?p...&postcount=624 I'm using it to kill the onscreen keyboard for two seconds and then fire it back up again with the fullscreen hardware key. I'm completely punchy with the whole set up that I have. This thread can now burn for all I care. :D |
Re: Need help with my first script
And I'm back. *lol*
I've decided to go with qwerty's excellent port of Roxterm. It features an easy way to customize the coloring and also supports an underlined cursor which is everything I was asking for. I'd like to run a few set up commands and then SSH to a server under Roxterm in full screen mode by simply clicking on a menu icon for it. This is basically my final script. Code:
#! /bin/shIt doesn't continue on with the script until I close out Roxterm. Anyone have some advice that could resolve my knowledge deficit on this? :) |
Re: Need help with my first script
Well, it turns out that there's a command line option in the Roxterm's menu to launch a customed script on startup.
So I'm all good. This thread can now go back to being burned once again. :) |
| All times are GMT. The time now is 16:54. |
vBulletin® Version 3.8.8