Posts
Arch Linux 安装 NVIDIA 专有驱动
2021-09-09
之前安装 Arch Linux 的时候,我并没有安装 NVIDIA 独显驱动,因为一提到 Linux 下的 NVIDIA 驱动,脑海中最先浮现的便是 Linus 竖中指的画面。况且笔记本上还有 Intel 的集成显卡,在 Linux 下…
多写,写少
2021-07-28
今天在 Mike Crittenden 的博客看到一篇文章,同时关联了他以前的一篇文章,都是在讲同样的一个原则 “more-often-but-smaller”,如果用中文…
再读《三国演义》
2021-07-11
这两天又读了一遍《三国演义》,发现了一个以前没有关注到的点,可以解释为什么人们要选择保一个主公,“择木而栖”。 在刘备入主西川后,诸臣劝刘备称…
How to auto lock screen in i3wm
2021-04-25
Desktop environments (Gnome, KDE, …) have an elaborate set of utilities covering almost every aspect of usages. When I started using i3wm, I missed the convenience of power-manager, locking screen, etc. But it is possible to implement them manually. This article is written about how auto lock-screen working in i3wm. Desktop environments like Gnome and KDE come with a plethora of utilities that cater to almost every conceivable usage scenario. However, when I switched to i3wm, I found myself missing the convenience of certain features such as power management and screen locking. But fear not, for it is possible to manually implement these features in i3wm. In this article, I will be sharing my insights on how to set up an automatic lock-screen in i3wm, so you can enjoy the best of both worlds - the minimalism and efficiency of i3wm coupled with the convenience of a fully functional desktop environment. …
Git checkout 的两个替代命令
2021-03-22
git checkout 可以算是 Git 里最常用的命令之一了,git checkout [--branch] <branch> 来切换(新建)分支,git checkout -- <filename> 来撤销工作区的文件修改。看上去很让人困惑,为什么分支命令和文…
在 Vim 里更好地使用中文输入法
2021-03-10
最近看到 jdhao 更新了两篇博文,总结了几种在 Vim 里切换输入法和使用 Vim 自带的补全输入中文的方法。刚好这段时间我也在折腾在 Vim 下的中文输入,在此做一个总结。 …
A small tip when using vim macros
2021-03-08
Show the tip first: …