Reply
Thread Tools
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#1
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.
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#2
Originally Posted by Addison View Post
How can I make this so it launches a full screen X Terminal?
If you have a script (which doesn't immediately terminate) you can do

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'.
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 

The Following User Says Thank You to TA-t3 For This Useful Post:
t_moyashi's Avatar
Posts: 49 | Thanked: 102 times | Joined on Jul 2009 @ 驚く為五郎
#3
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 .
Attached Images
 
Attached Files
File Type: txt mrxvt.desktop.txt (207 Bytes, 144 views)
File Type: txt mrxvtrc.txt (10.6 KB, 290 views)
__________________
Quasar(media player),a2recv(a2dp receiver),v4l2ucp(v4l2 controller),dmenu(keystroke launcher)
dillohelper(browser helper),SpSwApplet(speaker switcher),Blowthefire(joke app),clickhackF6,mYTubePlusStr

Last edited by t_moyashi; 2009-12-23 at 14:58. Reason: add my .mrxvtrc
 

The Following 3 Users Say Thank You to t_moyashi For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#4
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
 
t_moyashi's Avatar
Posts: 49 | Thanked: 102 times | Joined on Jul 2009 @ 驚く為五郎
#5
Originally Posted by Addison View Post
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
the correct placement is "/home/user/.mrxvtrc".
# 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 !
__________________
Quasar(media player),a2recv(a2dp receiver),v4l2ucp(v4l2 controller),dmenu(keystroke launcher)
dillohelper(browser helper),SpSwApplet(speaker switcher),Blowthefire(joke app),clickhackF6,mYTubePlusStr
 

The Following User Says Thank You to t_moyashi For This Useful Post:
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#6
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!

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.
 
t_moyashi's Avatar
Posts: 49 | Thanked: 102 times | Joined on Jul 2009 @ 驚く為五郎
#7
my pleasure.
ok. try to use the following code
Code:
#! /bin/sh

XKBDIR=/usr/bin/xkbd
XKBSET1="-geometry +65536+65992 -k /media/mmc2/Keyboards/Flat2.xkbd"
XKBSET2="-geometry +725+360 -k /media/mmc2/Keyboards/Keypad.xkbd"

killall xkbd
sleep 2
start-stop-daemon --start -q -b -x  $XKBDIR -- $XKBSET1
start-stop-daemon --start -q -b -x  $XKBDIR -- $XKBSET2
and the following command
Code:
mrxvt-full -fs +sb -aht -e yourstartupscript.sh
__________________
Quasar(media player),a2recv(a2dp receiver),v4l2ucp(v4l2 controller),dmenu(keystroke launcher)
dillohelper(browser helper),SpSwApplet(speaker switcher),Blowthefire(joke app),clickhackF6,mYTubePlusStr

Last edited by t_moyashi; 2009-12-24 at 06:01.
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#8
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.
 
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#9
Dude, and I say this with all smiles, but you can't leave me hanging like this!

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.

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.
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#10
Originally Posted by Addison View Post
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.
I don't have diablo (I have OS2007 and Maemo 5), but start-stop-daemon is normally found in /sbin/
(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
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 

The Following User Says Thank You to TA-t3 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 13:39.