update awesome config and add shell script

This commit is contained in:
2020-12-26 00:58:32 +08:00
parent b5a68d24a7
commit c1e3c46034
4 changed files with 370 additions and 211 deletions

30
awesome/README.org Normal file
View File

@@ -0,0 +1,30 @@
#+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