My Manjaro i3 recording software for personal use

Manjaro i3 own software archive

Font Installer

Reference: https: //www.jianshu.com/p/26fa3a803439

  1. Basic Fonts

    sudo pacman -S ttf-roboto noto-fonts ttf-dejavu
    
  2. WenQuanYi

    sudo pacman -S wqy-bitmapfont wqy-microhei wqy-microhei-lite wqy-zenhei
    
  3. Siyuan font

    sudo pacman -S noto-fonts-cjk adobe-source-han-sans-cn-fonts adobe-source-han-serif-cn-fonts</pre>
    
  4. Awesome 字体

    sudo pacman -S ttf-font-awesome
    
  5. Powerline Font

    sudo pacman -S powerline-fonts
    
  6. Line and code with the Source Code Pro and Fira Code

    sudo pacman -S ttf-fira-code ttf-fira-mono ttf-rira-sans
    sudo pacman -S adobe-source-code-pro-fonts
    

Configuring Fonts:

Edit the file ~/.config/fontconfig/conts.conf(if not created)

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">

<fontconfig>
    <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
        <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
    </its:rules>
    <description>Manjaro Font Config</description>
    <!-- Font directory list -->
    <dir>/usr/share/fonts</dir>
    <dir>/usr/local/share/fonts</dir>
    <dir prefix="xdg">fonts</dir>
    <dir>~/.fonts</dir> <!-- this line will be removed in the future -->

    <!-- 自动微调 微调 抗锯齿 内嵌点阵字体 -->
    <match target="font">
        <edit name="autohint"> <bool>false</bool> </edit>
        <edit name="hinting"> <bool>true</bool> </edit>
        <edit name="antialias"> <bool>true</bool> </edit>
        <edit name="embeddedbitmap" mode="assign"> <bool>false</bool> </edit>
    </match>

    <!-- 英文默认字体使用 Roboto 和 Noto Serif ,终端使用 DejaVu Sans Mono. -->
    <match>
        <test qual="any" name="family">
            <string>serif</string>
        </test>
        <edit name="family" mode="prepend" binding="strong">
            <string>Noto Serif</string>
        </edit>
    </match>
    <match target="pattern">
        <test qual="any" name="family">
            <string>sans-serif</string>
        </test>
        <edit name="family" mode="prepend" binding="strong">
            <string>Roboto</string>
        </edit>
    </match>
    <match target="pattern">
        <test qual="any" name="family">
            <string>monospace</string>
        </test>
        <edit name="family" mode="prepend" binding="strong">
            <string>DejaVu Sans Mono</string>
        </edit>
    </match>

    <!-- 中文默认字体使用思源宋体,不使用 Noto Sans CJK SC 是因为这个字体会在特定情况下显示片假字. -->
    <match>
        <test name="lang" compare="contains">
            <string>zh</string>
        </test>
        <test name="family">
            <string>serif</string>
        </test>
        <edit name="family" mode="prepend">
            <string>Source Han Serif CN</string>
        </edit>
    </match>
    <match>
        <test name="lang" compare="contains">
            <string>zh</string>
        </test>
        <test name="family">
            <string>sans-serif</string>
        </test>
        <edit name="family" mode="prepend">
            <string>Source Han Sans CN</string>
        </edit>
    </match>
    <match>
        <test name="lang" compare="contains">
            <string>zh</string>
        </test>
        <test name="family">
            <string>monospace</string>
        </test>
        <edit name="family" mode="prepend">
            <string>Noto Sans Mono CJK SC</string>
        </edit>
    </match>

    <!-- 把Linux没有的中文字体映射到已有字体,这样当这些字体未安装时会有替代字体 -->
    <match target="pattern">
        <test qual="any" name="family">
            <string>SimHei</string>
        </test>
        <edit name="family" mode="assign" binding="same">
            <string>Source Han Sans CN</string>
        </edit>
    </match>
    <match target="pattern">
        <test qual="any" name="family">
            <string>SimSun</string>
        </test>
        <edit name="family" mode="assign" binding="same">
            <string>Source Han Serif CN</string>
        </edit>
    </match>
    <match target="pattern">
        <test qual="any" name="family">
            <string>SimSun-18030</string>
        </test>
        <edit name="family" mode="assign" binding="same">
            <string>Source Han Serif CN</string>
        </edit>
    </match>
    <!--
    <match target="pattern">
        <test qual="any" name="family">
            <string>Microsoft YaHei</string>
        </test>
        <edit name="family" mode="assign" binding="same">
            <string>Source Han Sans CN</string>
        </edit>
    </match>
    --> 
    <!-- Load local system customization file -->
    <include ignore_missing="yes">conf.d</include>
    <!-- Font cache directory list -->
    <cachedir>/var/cache/fontconfig</cachedir>
    <cachedir prefix="xdg">fontconfig</cachedir>
    <!-- will be removed in the future -->
    <cachedir>~/.fontconfig</cachedir>
    <config>
        <!-- Rescan in every 30s when FcFontSetList is called -->
        <rescan> <int>30</int> </rescan>
    </config>
</fontconfig>

Chinese input method - Sogou Pinyin

sudo pacman -S fcitx-sogoupinyin
sudo pacman -S fcitx-im 
sudo pacman -S fcitx-configtool
sudo pacman -S fcitx-gtk2 fcitx-gtk3
sudo pacman -S fcitx-qt5

Edit ~/.profilethe file specified input method

vim ~/.profile
# 在文件后面加上
export LC_CTYPE=zh_CN.UTF-8
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"

Restart, open fcitx, fcitx-configtoolyou should be able to see the configuration Sogou input method, if the prompt "Sogou input method does not work, please delete ~/.config/SougouPYafter reboot" and the like, follow the prompts to delete it ~/.config/SougouPYand then restart.

If the restart can not be solved on the installation fcitx-qt4, I install this directly addressed.

sudo pacman -S fcitx-qt4

Install AURplug -yay

sudo pacman -S yay

yayInstalling the software and pacmando not use when you install the software sudo, and the other pacmanusing a similar method.

pacmanAnd yaythe difference is like an official release included, is a development or shareware.

AUR more information: https: //aur.archlinux.org/

Zsh & oh-my-zsh

View Installed shelllist:

cat /etc/shells

manjaroInstalled by default zshonly need to switch shellon the line. But do not rush to change here, install the oh-my-zshplug-in;

sh -c“$(curl -fsSL https:``//raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)”

Installation oh-my-zshafter should automatically generate a zshdefault configuration:~/.zshrc

Replace the shell:

chsh -s /bin/zsh

Install the plugin, recommended: frames, automatic suggestion, syntax highlighting plugins

sudo pacman -S autojump

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

Configuring plugins and themes:

vim ~/.zshrc
#主题
ZSH_THEME="agnoster"

#插件
plugins=(git zsh-autosuggestions web-search autojump zsh-syntax-highlighting)

More local themes and plug-ins:~/.oh-my-zsh/plugins

About oh-my-zshMore: https: //github.com/robbyrussell/oh-my-zsh/wiki

Typora - Markdown editing software

sudo pacman -S typora

Sublime-Text3

Mounting Sublime-Text3many ways, for example:

# 方法1
yay -S sublime-text-3-imfix

# 方法2
yay -S sublime-text

# 方法3
curl -O https://download.sublimetext.com/sublimehq-pub.gpg && sudo pacman-key --add sublimehq-pub.gpg && sudo pacman-key --lsign-key 8A8F901A && rm sublimehq-pub.gpg

echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/stable/x86_64" | sudo tee -a /etc/pacman.conf

sudo pacman -Syu sublime-text

Because my network is very bad, I was through Method 3 installed. Of course, there are many ways.

Rofi - Alternate dmenu

sudo pacman -S rofi

Run the installation is complete rofi-theme-selectorselect a variety of topics

See More: [Rofi Configuration] [Rofi configuration .md]

Other configurations Links

  1. ~/.zshrc

    # Path to your oh-my-zsh installation.
    # 如果觉得东西都放HOME想移动.oh-my-zsh目录,记得改一下这里
    export ZSH=$HOME/.oh-my-zsh 
    
    # zsh 主题
    ZSH_THEME="agnoster"
    
    # 插件
    plugins=(git zsh-autosuggestions web-search autojump zsh-syntax-highlighting colored-man-pages colorize)
    
    source $ZSH/oh-my-zsh.sh
    
    # 用alias自定义指令
    alias showtime="tty-clock -c -C 5 -r -s -f '%A, %B %d'"
    
    
    # 定制prompt, 下面配置为空,就是什么也不显示
    prompt_context(){
      #if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
          # prompt_segment red default " %(!.%{%F{yellow}%}.)CN "
      #fi
    }
    
  2. ~/.config/i3status/config My i3status configuration instructions

    See More: [i3status Configuration] [i3status configuration .md]

  3. ~/.i3/conifgMy i3wm configuration instructions

    See More: [i3config profile Description] [i3config Profile Description .md]

  4. My comptonconfiguration instructions

    See More: [compton configuration instructions .md] [compton configuration instructions .md]

Guess you like

Origin www.cnblogs.com/siyingcheng/p/11706127.html