Manjaro i3 自用軟件歸檔
字體安裝
-
基本字體
sudo pacman -S ttf-roboto noto-fonts ttf-dejavu
-
文泉驛
sudo pacman -S wqy-bitmapfont wqy-microhei wqy-microhei-lite wqy-zenhei
-
思源字體
sudo pacman -S noto-fonts-cjk adobe-source-han-sans-cn-fonts adobe-source-han-serif-cn-fonts</pre>
-
Awesome 字體
sudo pacman -S ttf-font-awesome
-
Powerline Font
sudo pacman -S powerline-fonts
-
擼代碼用 Source Code Pro 和 Fira Code
sudo pacman -S ttf-fira-code ttf-fira-mono ttf-rira-sans sudo pacman -S adobe-source-code-pro-fonts
配置字體:
編輯文件~/.config/fontconfig/conts.conf
(如果沒有就創建)
<?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>
中文輸入法 - 搜狗拼音
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
編輯~/.profile
文件指定輸入法
vim ~/.profile
# 在文件后面加上
export LC_CTYPE=zh_CN.UTF-8
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
重啟,打開fcitx
、fcitx-configtool
應該就能看到搜狗輸入法配置上了,如果提示“搜狗輸入法不能正常工作,請刪除~/.config/SougouPY
后重啟”之類的,就按照提示刪除~/.config/SougouPY
然后重啟。
如果重啟還不能解決,就安裝fcitx-qt4
,我是安裝這個直接解決的。
sudo pacman -S fcitx-qt4
安裝AUR
插件 —— yay
sudo pacman -S yay
yay
安裝軟件和pacman
安裝軟件時不要使用sudo
,其他和pacman
使用方法差不多。
pacman
和yay
的區別就像一個是正式發行收錄的,一個是開發中或者共享軟件。
更多AUR信息:https://aur.archlinux.org/
Zsh & oh-my-zsh
查看已安裝的shell
列表:
cat /etc/shells
manjaro
默認安裝了zsh
只需要切換shell
就行了。但是這里先別急着換,先安裝oh-my-zsh
插件;
sh -c“$(curl -fsSL https:``//raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)”
安裝oh-my-zsh
后應該會自動生成一份zsh
的默認配置:~/.zshrc
更換shell:
chsh -s /bin/zsh
安裝插件,推薦:自動跳轉、自動建議、語法高亮插件
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
配置插件和主題:
vim ~/.zshrc
#主題
ZSH_THEME="agnoster"
#插件
plugins=(git zsh-autosuggestions web-search autojump zsh-syntax-highlighting)
本地更多主題和插件:~/.oh-my-zsh/plugins
關於
oh-my-zsh
更多:https://github.com/robbyrussell/oh-my-zsh/wiki
Typora —— Markdown 編輯軟件
sudo pacman -S typora
Sublime-Text3
安裝Sublime-Text3
的方法很多,例如:
# 方法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
因為我網絡很不好,我是通過方法3安裝的。當然方法有很多。
Rofi —— 代替dmenu
sudo pacman -S rofi
安裝完成后運行rofi-theme-selector
選擇各種主題
See More: Rofi配置
其他配置相關鏈接
-
~/.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 }
-
~/.config/i3status/config
我的i3status配置說明See More: i3status配置
-
~/.i3/conifg
我的i3wm配置說明See More: i3config配置文件說明
-
我的
compton
配置說明See More: compton配置說明.md