如何让wmii 在开机后快速进行初始化设置
1. 创建 wmii 的初始化配置文件 比如在 /home//config 中创建 wmii-config.sh 文件 内容如下:(我的实例中是创建10个窗口,每个窗口可以初始化不同的配置) #!/bin/sh -f# Configure wmii# Configuration VariablesMODKEY=Mod1UP=kDOWN=jLEFT=hRIGHT=l# Colors tuples: " "WMII_NORMCOLORS=''#222222 #5FBF77 #2A7F3F''WMII_FOCUSCOLORS=''#ffffff #153F1F #2A7F3F''WMII_BACKGROUND=''#333333''WMII_FONT=''-*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*''set -- $(echo $WMII_NORMCOLORS $WMII_FOCUSCOLORS)WMII_MENU="dmenu -b -fn $WMII_FONT -nf $1 -nb $2 -sf $4 -sb $5"WMII_9MENU="wmii9menu -font $WMII_FONT -nf $1 -nb $2 -sf $4 -sb $5 -br $6"WMII_TERM="x-terminal-emulator"# added by amuhong#for tag 1echo "$WMII_FOCUSCOLORS" "1" | wmiir create "/lbar/1"wmiir xwrite /ctl view "1"x-terminal-emulator & firefox &sleep 1#for tag 2echo "$WMII_FOCUSCOLORS" "2" | wmiir create "/lbar/2"wmiir xwrite /ctl view "2"x-terminal-emulator &#mountudisk #you can add your configurationsleep 1#for tag 3echo "$WMII_FOCUSCOLORS" "3" | wmiir create "/lbar/3"wmiir xwrite /ctl view "3"x-terminal-emulator &sleep 1#for tag 4echo "$WMII_FOCUSCOLORS" "4" | wmiir create "/lbar/4"wmiir xwrite /ctl view "4"x-terminal-emulator &sleep 1#for tag 5cd /usr/src/borqs/linux/echo "$WMII_FOCUSCOLORS" "5" | wmiir create "/lbar/5"wmiir xwrite /ctl view "5"x-terminal-emulator &sleep 1#for tag 6cd /usr/src/borqs/deviceecho "$WMII_FOCUSCOLORS" "6" | wmiir create "/lbar/6"wmiir xwrite /ctl view "6"x-terminal-emulator &sleep 1#for tag 7cd /usr/src/borqs/deviceecho "$WMII_FOCUSCOLORS" "7" | wmiir create "/lbar/7"wmiir xwrite /ctl view "7"x-terminal-emulator &sleep 1#for tag 8cd /home/derekecho "$WMII_FOCUSCOLORS" "8" | wmiir create "/lbar/8"wmiir xwrite /ctl view "8"x-terminal-emulator &sleep 1#for tag 9cd /home/derekecho "$WMII_FOCUSCOLORS" "9" | wmiir create "/lbar/9"wmiir xwrite /ctl view "9"x-terminal-emulator &sleep 1#for tag 0cd /home/derekecho "$WMII_FOCUSCOLORS" "0" | wmiir create "/lbar/0"wmiir xwrite /ctl view "0"x-terminal-emulator &sleep 1 2. 修改 /home//.bashrc 在该配置文件中加入如下信息 alias wmiiconf=''sh /home//config/wmii-config.sh'' 然后重启shell来使能上面的修改 3. 使用 开机后进入wmii界面,通过 alt enter 打开第一个shell,然后输入命令 拥有帝国一切,皆有可能。欢迎访问phome.net wmiiconf 就会快速产生10个shell对应到数字的0~9的十个tags 拥有帝国一切,皆有可能。欢迎访问phome.net |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |