View Single Post
Posts: 111 | Thanked: 23 times | Joined on Sep 2008 @ Singapore
#298
>That sounds useful! Could you post the command you use?

Here is a simple script file to toggle between landscape and portrait mode. You need to install the xrandr (command line program for rotation -- the author has removed it from sse2.net/rotate -- Chinook version).

if (xdpyinfo|grep -c 800x480)
then
xrandr -o right
else
xrandr -o normal
fi


>FBReader must use a non-standard full-screen command. Some >other programs will probably display slightly different fullscreen >behaviours too. We could make the Debian fullscreen into a >two-step process, maybe? Minus then fullscreen?

Yes, I did the same. I mapped debian fullscreen to minus + fullscreen. So the standard one-button fullscreen now behaves the standard way with maemo apps.

(define (second-binding)
"Second binding"
(display "New binding")
(ungrab-all-keys)
(remove-all-keys)
; Minus + Fullscreen = debian apps fullscreen
(xbindkey-function '(F6)
(lambda ()
(run-command "wmctrl -r :ACTIVE: -b toggle,fullscreen")
(reset-first-binding)))
; Minus + Plus = toggle between landscape & portrait. /home/user/rotate as above script.
(xbindkey-function 'F7
(lambda ()
(display-n "Minus and Plus")
(run-command "/home/user/rotate")
(reset-first-binding)))
...
(debug)
(grab-all-keys))



>I don't want to do that, because it opens the Debian chroot, and >I'd prefer not to do that automatically; only when the user >wants it.
OK, understood.
 

The Following User Says Thank You to pton For This Useful Post: