From 6834785d1e78160f2c5e5fdce864782625a21bf4 Mon Sep 17 00:00:00 2001 From: yutent Date: Wed, 5 Jul 2023 03:13:37 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0picom=E7=9A=84=E9=85=8D?= =?UTF-8?q?=E7=BD=AE;=20=E8=B0=83=E6=95=B4alacritty=E7=9A=84=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E4=BB=A5=E9=85=8D=E5=90=88=E5=8D=8A=E9=80=8F=E6=98=8E?= =?UTF-8?q?=E6=95=88=E6=9E=9C;=20=E9=A1=B9=E7=9B=AE=E6=94=B9=E5=90=8D?= =?UTF-8?q?=E4=B8=BAwm-logs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 +++-- home/config/alacritty/alacritty.yml | 4 +- home/config/picom/picom.conf | 70 +++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index bd905f1..706e585 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,17 @@ -# i3-logs -记录`debian bookworm + i3`从0开始配置的历险记。 +# wm-logs +记录`debian bookworm + wm`从0开始配置的历险记。 ## 基础安装 ```bash -sudo apt install i3 ly xserver-xorg picom polybar rofi feh +# sudo apt install i3 ly alacritty xserver-xorg picom polybar rofi feh +sudo apt install bspwm ly alacritty xserver-xorg picom polybar rofi feh ``` + + - `ly` 一个TUI形式的`display manager` -- `i3` 平铺式窗口管理管理器 +- ~~`i3` 平铺式窗口管理管理器~~ // 从入门到放弃, 改为用bspwm了 +- `bspwm` 另外一个平铺式窗口管理器 - `xserver-xorg` X - `picom` 一个轻量的流行的特效合成器 - `polybar` 状态栏 diff --git a/home/config/alacritty/alacritty.yml b/home/config/alacritty/alacritty.yml index a95fdcb..6b8ee38 100644 --- a/home/config/alacritty/alacritty.yml +++ b/home/config/alacritty/alacritty.yml @@ -11,7 +11,7 @@ window: x: 6 y: 6 - opacity: 0.96 + opacity: 0.8 scrolling: @@ -53,7 +53,7 @@ colors: red: '0xF33E22' green: '0x19BC9C' yellow: '0xF5BD07' - blue: '0x2095F3' + blue: '0x62aeef' magenta: '0x9595D0' cyan: '0x05979A' white: '0xCED6E0' diff --git a/home/config/picom/picom.conf b/home/config/picom/picom.conf index da21c36..a569ff1 100644 --- a/home/config/picom/picom.conf +++ b/home/config/picom/picom.conf @@ -1,2 +1,72 @@ +# 常规设置 backend = "glx"; vsync = true; + +# 阴影 +shadow = true; +shadow-radius = 12; +shadow-opacity = 0.3; +shadow-offset-x = -8; +shadow-offset-y = -8; + +shadow-exclude = [ +# wine 应用不加阴影 + "class_g *= '.exe'", +# chrome + "name *= 'Chrome'", +# 这2个是啥我也不清楚, 大家都写 + "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'", + "_GTK_FRAME_EXTENTS@:c" +] + + + +# 渐隐渐现 + +fading = true; +fade-in-step = 0.03; +fade-out-step = 0.03; +fade-delta = 5; + +fade-exclude = [ + "class_g = 'slop'", + "class_g *= 'fcitx'" +] + + +# 透明度 + +opacity-rule = [ +# telegram pop media viewer + "100:name = 'Media viewer'", + "100:class_g *= 'Gnome-boxes'", + "100:class_g *= '.exe'" +] + + +# 模糊 +# +blur-background = true; +blur-background-frame = false; +blur-method = "dual_kawase"; +blur-size = 3; +blur-background-exclude = [ +# wine 应用不加模糊 + "class_g *= '.exe'", +# "window_type = 'dock'", + "window_type = 'desktop'", + "class_g = 'slop'", + "_GTK_FRAME_EXTENTS@:c" +]; + +wintypes: +{ + tooltip = {fade = true; shadow = false; opacity = 0.93;} + normal = {fade = true; shadow = true; focus = true; opacity = 0.93;} + fullscreen = {fade = true; shadow = false; focus = true; opacity = 1.0;} + dock = {shadow = false;} + utility = {shadow = false;} + dnd = {shadow = true;} + popup_menu = {shadow = false; opacity = 0.93;} + dropdown_menu = {shadow = false; opacity = 0.93;} +} \ No newline at end of file