In linux, how does one set wmii initialization after it is started?

Source: Internet
Author: User

1. Create the wmii Initialization Configuration File

For example, creating a wmii-config.sh file in/home // config

The content is as follows: 10 windows are created in my instance, and different configurations can be initialized in each window)

#! /Bin/sh-f # Configure wmii # Configuration VariablesMODKEY = Mod1UP = kDOWN = jLEFT = hRIGHT = l # Colors tuples: "" outputs = '#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 1 echo" $ WMII_FOCUSCOLORS "" 1 "| wmiir create"/lbar/1 "wmiir xwrite/ctl view" 1 "x-terminal-emulator &

Firefox & sleep 1 # for tag 2 echo "$ WMII_FOCUSCOLORS" "2" | wmiir create "/lbar/2" wmiir xwrite/ctl view "2" x-terminal-emulator &# mountudisk

# You can add your configurationsleep 1 # for tag 3 echo "$ WMII_FOCUSCOLORS" "3" | wmiir create "/lbar/3" wmiir xwrite/ctl view "3" x-terminal- emulator & sleep 1 # for tag 4 echo "$ 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. Modify/home //. bashrc

Add the following information to the configuration file:

Alias wmiiconf = 'sh/home // config/wmii-config.sh'

Restart the shell to make the above changes.

3. Use

Enter the wmii interface after the boot. First open the first shell through alt + enter, and then enter the command

Wmiiconf

It will quickly generate 10 shells corresponding to the number 0 ~ 10 tags of 9

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.