zaurus-hinge
来自「GPE内核镜像文件 已在qemu上跑过的」· 代码 · 共 59 行
TXT
59 行
#!/bin/sh## Quick handler for chkhinge26 and X. #killproc() { # kill the named process(es) pid=`/bin/ps -e x | /bin/grep $1 | /bin/grep -v grep | /bin/sed -e 's/^ *//' -e 's/ .*//'` [ "$pid" != "" ] && kill $pid}ZD_BINDIR="/usr/bin"export DISPLAY=:0if [ -z "$1" ]; then echo "Usage: hinge-handler <state> ( 3 = closed, 0 = landscape, 2 = portrait )" exit 1fipanel_user="`ps aux|grep matchbox-panel|grep -v grep | awk '{print $2}'`"STATE=$1if [ $STATE = "3" ]; then for script in `ls -1 /etc/zaurusd/hinge-close.d` do . /etc/zaurusd/hinge-close.d/$script done exit 0fiif [ $STATE = "0" ]; then #echo "landscape" for script in `ls -1 /etc/zaurusd/hinge-landscape.d` do . /etc/zaurusd/hinge-landscape.d/$script done exit 0fiif [ $STATE = "2" ]; then #echo "portrait" for script in `ls -1 /etc/zaurusd/hinge-portrait.d` do . /etc/zaurusd/hinge-portrait.d/$script done exit 0fi
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?