理头张的博客

首页标签归档关于
  • 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. …

    #i3#linux

  • Git checkout 的两个替代命令

    2021-03-22

    git checkout 可以算是 Git 里最常用的命令之一了,git checkout [--branch] <branch> 来切换(新建)分支,git checkout -- <filename> 来撤销工作区的文件修改。看上去很让人困惑,为什么分支命令和文…

    #git

  • 在 Vim 里更好地使用中文输入法

    2021-03-10

    最近看到 jdhao 更新了两篇博文,总结了几种在 Vim 里切换输入法和使用 Vim 自带的补全输入中文的方法。刚好这段时间我也在折腾在 Vim 下的中文输入,在此做一个总结。 …

    #vim#输入法

  • A small tip when using vim macros

    2021-03-08

    Show the tip first: …

    #vim

  • 在 Linux 中查看字体名称

    2021-03-04

    在 Linux 环境下,一些应用程序的字体是需要通过配置文件来进行配置的,我们就需要知道字体的确切名字。通过 fc-list 命令可以查看所有安装的字体信息,比如,下面…

    #linux

  • 读《遥远的向日葵地》

    2021-02-02

    最近看书甚少,只看了这么一本小书。 我去过新疆,虽然没有深入体验过当地的生活,不过还是能够感觉到大概。李娟描写很精准,写新疆大地上人、动物、植…

    #读书#杂记

  • Arch Linux list installed packages by date

    2021-01-31

    This is a simple tip to determine all installed packages by date. You can search for some approach using pacman with some bash script. But we can also use pacman log to achieve it. Pacman log is located in /var/log/pacman.log and it records all events related to pacman. And grep will help us to find what we want in massive logs. Use the following command: grep installed /var/log/pacman.log If you like to use ripgrep, replace grep with rg.…

    #linux#arch

  • 1
  • 2
  • 3
  • 4
  • 5
  • »

©2017-2025 理头张

CC BY-NC-SA 4.0 | RSS

Powered by Hugo and the Notepadium-mod

^ TOP ^