Archlinux瞎折腾

DWM 窗口管理器

我的DWM配置

这是大佬编译的dwm,补丁完美无冲突,我将其做了细微改动,去除了自己不需要的功能。

patches

  • dwm-alpha-6.3.diff
  • dwm-alpha-systray-6.3.diff
  • dwm-autostart-20161205-bb3bd6f.diff
  • dwm-doublepressquit-6.3.diff
  • dwm-fancybar-20200423-ed3ab6b.diff
  • dwm-fullgaps-toggle-20200830.diff
  • dwm-gaplessgrid-20160731-56a31dc.diff
  • dwm-hide_vacant_tags-6.3.diff
  • dwm-launchers-20200527-f09418b.diff
  • dwm-pertag-perseltag-6.2.diff
  • dwm-restartsig-20180523-6.2.diff
  • dwm-rotatestack-20161021-ab9571b.diff
  • dwm-scratchpad-6.2.diff
  • dwm-statuscmd-20210405-67d76bd.diff
  • dwm-viewontag-20210312-61bb8b2.diff

St(Simple Terminal) 极简主义终端

我的st配置

安装zim

1
curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh

安装yshui版本的picom

1
git clone https://github.com/yshui/picom.git

小鹤双拼

1
git clone https://github.com/ssnhd/rime.git ~/.config/fcitx5/rime

字体

1
sudo pacman -S ttf-cascadia-code

rofi

oranchelo图标主题

1
2
3
4
5
6
git clone https://github.com/OrancheloTeam/oranchelo-icon-theme.git
cd oranchelo-icon-theme
sudo make
sudo make install

git clone https://github.com/catppuccin/rofi.git

drun添加软件

你可以手动创建一个 .desktop 文件,并将其放置在 /usr/share/applications 目录下,以便使用 Rofi 的 “drun” 模式启动应用程序。以下是创建一个简单的 .desktop 文件的步骤:

1
nvim /usr/share/applications/qq.desktop
1
2
3
4
5
[Desktop Entry]
Name=QQ
Exec=/home/your_username/software/qq.appimage
Type=Application
Icon=/path/to/qq/icon.png

鼠标灵敏度

1
2
xinput list #列出使用的设备
xinput --set-prop "设备ID" "libinput Accel Speed" -0.5

需要安装的东西

安装feh nautilus flameshot qq clash yesplaymusic

1
2
3
wget https://github.com/qier222/YesPlayMusic/releases/download/v0.4.7/YesPlayMusic-0.4.7.AppImage

sudo pacman -S feh nautilus flameshot Hightlight fzf feh fd zsh lolcat

配置环境变量

1
sudo nvim /etc/environment
1
2
3
4
5
6
7
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
SDL_IM_MODULE=fcitx
GLFW_IM_MODULE=ibus
https_proxy=http://127.0.0.1:7890
http_proxy=http://127.0.0.1:7890

GRUB引导界面美化

https://www.pling.com/p/1230882下载主题
接下来 cd 进解压出来的文件夹,打开 终端 输入

1
sudo cp . /usr/share/grub/themes/Distro -rf

以将主题放置在系统的 GRUB 默认文件夹内。

接着编辑 /etc/default/grub 文件,找到 #GRUB_THEME= 一行,将前面的注释去掉,并指向主题的 theme.txt 文件。即

1
2
#GRUB_THEME=
GRUB_THEME="/usr/share/grub/themes/Distro/theme.txt" #修改后

然后再在终端输入

1
grub-mkconfig -o /boot/grub/grub.cfg