Author Topic: Application Screen Orientations  (Read 2844 times)

stac

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://
Application Screen Orientations
« on: October 07, 2005, 10:10:09 am »
Hi Folks -

Having a lot of fun hacking around with pdaXrom - is there a way to tell an application that my 6000L is using portrait orientation so that when they launch, half the window isn't in timbuktu? In other words, is there a setting in the default WM that an app checks while launching to see what kind of size/orientation it should draw it's windows in? This'd be very helpful for those of us using 6000L's...

Thanks,
Stac
« Last Edit: October 07, 2005, 10:10:25 am by stac »
Sporting...

CacKo 1.23

Sl-C1000, PDAir Leather Case, 1GB ATP 60X SD, Socket 10/100 CF, NetGear MA701, Memorex 64MB (for flashing), 1GB Microdrive (for storing ipkgs and data)


Visit my new package feed and feel free to donate to show your support!

kmeaw

  • Newbie
  • *
  • Posts: 45
    • View Profile
Application Screen Orientations
« Reply #1 on: October 07, 2005, 02:18:55 pm »
You need to fix -geometry argument, specified when launching applications. See the files in /usr/share/applications/

jcabrer

  • Full Member
  • ***
  • Posts: 161
    • View Profile
Application Screen Orientations
« Reply #2 on: October 07, 2005, 09:49:06 pm »
Quote
Hi Folks -

Having a lot of fun hacking around with pdaXrom - is there a way to tell an application that my 6000L is using portrait orientation so that when they launch, half the window isn't in timbuktu? In other words, is there a setting in the default WM that an app checks while launching to see what kind of size/orientation it should draw it's windows in? This'd be very helpful for those of us using 6000L's...

Thanks,
Stac
[div align=\"right\"][a href=\"index.php?act=findpost&pid=98550\"][{POST_SNAPBACK}][/a][/div]


Here is one solution that I used when packaging Crimson Fields:

I created a file called crimson.sh with the following...

#!/bin/sh

ROTA=`xrandr | grep 'Current rotation' | sed -e 's/Current rotation\ \-\ //g'`

case "$ROTA" in
    normal)
        crimson --fullscreen 1 --sound 1 --width 480 --height 640
        ;;
    left)
        crimson --fullscreen 1 --sound 1 --width 640 --height 480
        ;;
    *)    
        crimson --fullscreen 1 --sound 1 --width 480 --height 640
        ;;
esac      


Of course this works only if your application has a way of controling screen dimensions from the command line.
Sharp SL-C3100 - pdaXrom Beta 3
Sharp SL-6000L - pdaXrom Beta 1

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Application Screen Orientations
« Reply #3 on: October 08, 2005, 12:04:02 am »
icewm handles portrait mode apps, and so does xfce.
My solution has been to use one or the other instead of the default.
Icewm is part of the feed, chero did xfce--there are a couple threads on it.
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

stac

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://
Application Screen Orientations
« Reply #4 on: October 10, 2005, 07:52:35 pm »
Thanks very much all - great suggestions!

Regards,
Stac
Sporting...

CacKo 1.23

Sl-C1000, PDAir Leather Case, 1GB ATP 60X SD, Socket 10/100 CF, NetGear MA701, Memorex 64MB (for flashing), 1GB Microdrive (for storing ipkgs and data)


Visit my new package feed and feel free to donate to show your support!