Files
dotfiles/awesome/README.org

31 lines
1.1 KiB
Org Mode
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#+title: Awesome配置
#+author: Zedhugh Chen
* 安装 awesome-copycats
运行如下命令克隆 =awesome-copycats= 配置到 *=~/.config/awesome/=*
#+begin_src sh
git clone --recursive https://github.com/lcpz/awesome-copycats.git ~/.config/awesome
#+end_src
* 将 awesome 配置文件链接到配置目录下
#+begin_src sh
ln -s ./rc.lua ~/.config/awesome/
ln -s ./pravitekeys.lua ~/.config/awesome/
#+end_src
* 修改 =awesome-copycats= 代码
修改 =awesome-copycats= 代码的原因有两个:
1. 下拉终端使用 =st= =awesome-copycats= 实现下拉终端时需要设置 =st= 终端的窗口名,
=st= 设置窗口名的命令行参数为 /-n/ 而非 =xterm==rxvt-unicode= 使用的 /-name/
2. 在我们自定义的配置中,会根据显示器数量设置不同的 *tag名称* =awesome-copycats= 默认
的每个屏幕的 =tag= 都相同。
实现该功能无需手动修改代码,直接使用[[./multicolor-config.patch][该补丁]]即可,命令如下:
#+begin_src sh
dir=$(pwd)
file="${dir}/multicolor-config.patch"
cd ~/.config/awesome/
git apply $file
#+end_src