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