惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The Cloudflare Blog
小众软件
小众软件
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Tailwind CSS Blog
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
博客园 - 司徒正美
V
Visual Studio Blog
G
Google Developers Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
aimingoo的专栏
aimingoo的专栏
博客园_首页
Blog — PlanetScale
Blog — PlanetScale
博客园 - 聂微东
S
SegmentFault 最新的问题
T
The Blog of Author Tim Ferriss
D
Docker
Vercel News
Vercel News
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
爱范儿
爱范儿
J
Java Code Geeks
大猫的无限游戏
大猫的无限游戏

Jiajun的技术笔记

你好,2026! TiDB 源码阅读(六):TiDB Coprocessor 源码解析 性能优化的核心思想 TiDB 源码阅读(五):索引 TiDB 源码阅读(四):AST、逻辑计划、物理计划 CockroachDB Serverless Architecture podman 无故退出 Cursor Control-L (CTRL-L) Keyboard Shortcuts in Terminal Replace docker with podman Using xmonad with xfce4 A RC script for freebsd frpc 自己动手写一个k8s controller AI 会取代你的(编程)岗位吗? 自建DERP服务器提升Tailscale连接速度(使用Nginx转发) 自动升级Docker容器 再读《程序员修炼之道-从小工到专家》 让浏览器下载文件 再读《软件随想录》/《黑客与画家》/《软技能》 HTTP 压力测试中的 Coordinated Omission 2的补码 编程语言中的 context 是什么? flutter macOS 构建出错 Flatpak 使用小记 Golang CAS 操作是怎么实现的 PostgreSQL 当MQ来使用 Clash 结合 工作VPN 的网络设计 使用 PostgreSQL 搭建 JuiceFS PostgreSQL 配置优化和日志分析 有GitHub Copilot?那就可以搭建你的ChatGPT4服务 窗口函数的使用(以PG为例)
从XMonad迁移到i3
Jiajun Huang · 2019-06-08 · via Jiajun的技术笔记

XMonad用了很多年了,但是ArchLinux上,Haskell的包更新太频繁了,而XMonad的配置语言使用Haskell,每次更新之后,如果没有 编译一下,可能下次就进不去了,而且ArchLinux上Haskell的包分得太小了,再加上我使用Haskell就是为了写配置文件,但是配置文件 不常更新,因此有点忘记了。

所以对比了一下i3和awesome,最后选择了i3。

首先安装i3:

$ sudo pacman -S i3-wm i3status i3lock dmenu

然后卸载xmonad(此处因为使用i3lock,我把slock一起卸载了):

sudo pacman -Rsn xmonad xmonad-contrib xmobar slock

另外在ArchLinux上清理一下无用的包:

$ sudo pacman -Rns $(pacman -Qtdq)

接下来就是配置了,我仔细研究了一下i3的配置,然后把它配置的快捷键改成和XMonad差不多,因此目前迁移还挺愉快的,主要配置:

set $mod Mod1
font pango:Consolas 8

# start a terminal
bindsym $mod+Shift+Return exec i3-sensible-terminal
bindsym $mod+Return exec i3-sensible-terminal

# kill focused window
bindsym $mod+Shift+c kill

# start dmenu (a program launcher)
bindsym $mod+p exec dmenu_run

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
    status_command i3status -c ~/.i3/i3status.conf
    position top
    tray_output primary
}

# default orientation
default_orientation horizontal

# automatically starting applications on i3 startup
exec xcompmgr
exec feh --bg-scale ~/.i3/background.jpg
exec fcitx
exec volumeicon
exec nm-applet
exec redshift

# focus do not follow
focus_follows_mouse no

# executing applications
bindsym $mod+c exec firefox
bindsym $mod+z exec zathura

# hide title bar by default
for_window [class="^.*"] border pixel 1

# i3lock
bindsym Mod4+l exec i3lock

详见: https://github.com/jiajunhuang/doti3/