全部博文(2005)
分类: LINUX
2008-06-19 15:07:29
vim /etc/X11/wmii-3.5/wmiirc
可以将下面内容放进去,或者直接写成一个wmii.sh然后单独执行也性能
echo "$WMII_FOCUSCOLORS" "1" | wmiir create "/lbar/1"
wmiir xwrite /ctl view "1"
firefox &
firefox &
firefox &
sleep 3
#for tag 2
echo "$WMII_FOCUSCOLORS" "2" | wmiir create "/lbar/2"
wmiir xwrite /ctl view "2"
x-terminal-emulator &
#for tag 5
cd /home/gliethttp/work/wifi
echo "$WMII_FOCUSCOLORS" "5" | wmiir create "/lbar/5"
wmiir xwrite /ctl view "5"
x-terminal-emulator &
echo "$WMII_FOCUSCOLORS" "1" | wmiir create "/lbar/8"
最后将焦点放到tag1上,
就是需要延时,效果不是很好!
======================
PS:20100307[luther.gliethttp]
等效于alt+shift+6
wmiir xwrite /client/sel/tags 6 表示将当前获得fouces了焦点的窗体送到tags 6处
等效于alt+5
wmiir xwrite /ctl view 5
显示当前所处的tags号码名称
wmiir read /tag/sel/ctl
显示所有tags
wmiir ls /tag
=========================================
如何自动运行程序
1.首先编辑自动脚本
luther@gliethttp:~/.wmii-3.5$ vim rc.wmii
firefox &
gnome-terminal &
stardict &
thunderbird &
VirtualBox &
eva &
nautilus &
2.进入wmii之后执行该脚本
Alt+a然后选择rc.wmii即可