Skip to content

明城的 i3wm 配置,以及相关的环境配置文件和脚本

License

Notifications You must be signed in to change notification settings

mingcheng/i3wm.conf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

明城的 i3wm 环境配置

Screenshot

简介

您好,这里是明城的 Linux 图形配置文件列表,这里包括了 i3wm、xorg 相关的配置。抱歉,由于都是出于需求出发(主要是开发),因此这里可能没有美化相关的配置,所以看起来会「很丑」。

图形界面下,搭配的窗口管理器使用的是 i3wm 以及 mate 相关的些工具保证基本的操作(例如电源管理、网络管理等)。

不要过于折腾 Linux 的图形环境,应该将更多的精力花在更有意义的事情上面(哪怕是发呆)。

安装软件

安装必要的 xorg 相关、以及 i3wm 相关的必要软件包:

sudo pacman -S i3-wm py3status rofi clipmenu
sudo pacman -S xorg-xsetroot xorg-xinput xorg-xbacklight xclip xsel xautolock
sudo pacman -S mate-power-manager mate-system-monitor dunst

i3wm 目前还是有很多的问题,使用过以后还是使用了 i3-gaps 软件包,同时安装 i3lock-fancy 等相关的增强包。

yay -S i3-gaps i3lock-fancy-git

因为 py3status 获取系统信息需要额外的 Python 模块,因此都需要安装上:

pip3 install pydbus pytz tzlocal

这样子软件包就安装好了。

配置项

具体的配置项目在各个目录以及文件中都有说明,这里不再复述。下面只列举比较常见的解决方案。

自动锁定

需要使用 xautolock 以及 i3lock 的相互配合,后期使用了 i3lock-fancy 的软件包,相比黑屏的 i3lock 视觉效果上会好很多。

休眠以后自动锁定,使用 i3lock 这个 service,参见配置文件中 config/i3/i3lock@.service 这个文件。

电源管理和网络管理

基本上都使用了 mate 模块里面的对应包(mate-power-managernm-applet),使用 mate 是因为包的依赖比较少同时能够提供完整而且简单的功能。

CapsLock

将 Capslock 这个键位映射成了 Ctrl,详细可参见 Xmodmap 文件。

剪贴板管理

剪贴板历史使用 ClipMenu + rofi 方案,详细可以在对应的 Arch Wiki 上找到。

鼠标加速度

因为个人习惯,默认去除了鼠标和触摸板的加速度,可以在 i3wm 的主配置中修改。建议在其它环境下(例如 GNOME)配置好比较输入的参数,然后获取以后粘贴到 i3wm 的配置中。

我的对应的配置文件如下:

# @see https://wiki.archlinux.org/index.php/Mouse_acceleration
exec --no-startup-id xinput --set-prop 'TPPS/2 IBM TrackPoint' 'libinput Accel Speed' -0.6
exec --no-startup-id xinput --set-prop 'TPPS/2 IBM TrackPoint' 'libinput Accel Speed Default' 0
#xinput --set-prop 'TPPS/2 IBM TrackPoint' 'libinput Accel Profiles Available' 1, 1
exec --no-startup-id xinput --set-prop 'TPPS/2 IBM TrackPoint' 'libinput Accel Profile Enabled' 1, 0
exec --no-startup-id xinput --set-prop 'TPPS/2 IBM TrackPoint' 'libinput Accel Profile Enabled Default' 1, 0

exec --no-startup-id xinput --set-prop 'Synaptics TM3072-003' 'libinput Tapping Enabled' 1
exec --no-startup-id xinput --set-prop 'Synaptics TM3072-003' 'libinput Accel Speed' -0.22
exec --no-startup-id xinput --set-prop 'Synaptics TM3072-003' 'libinput Click Methods Available' 1, 1
exec --no-startup-id xinput --set-prop 'Synaptics TM3072-003' 'libinput Click Method Enabled' 0, 1
exec --no-startup-id xinput --set-prop 'Synaptics TM3072-003' 'Coordinate Transformation Matrix' 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0

因为我的 Thinkpad Carbon 3rd 分别有触控板以及指点杆(小红点),因此要分别分开配置。

Apple Color Emoji

Screenshot

因为项目本身使用了 gitmoji 等插件,所以需要终端以及网页显示 emoji。配置文件在 config/fontconfig 目录下。其实 Arch 下有很多 Emoji 的方案,但是我个人还是使用了 macOS 的 Apple Color Emoji 。原因主要有两点,一来是苹果的 Emoji 比较全二来显示方面能够和 macOS 保持一致。

注意:单独使用 Apple Color Emoji 在其它非 Apple 设备以及系统,可能在版权方面会有问题,哪怕已经拥有了台 Mac。

- eof -

About

明城的 i3wm 配置,以及相关的环境配置文件和脚本

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published