commit b8c332a4d9afa01708a03ecea9d02be4fc1f7268 Author: CGH0S7 <776459475@qq.com> Date: Mon Dec 29 20:58:42 2025 +0800 first commit diff --git a/config b/config new file mode 100644 index 0000000..db845df --- /dev/null +++ b/config @@ -0,0 +1,29 @@ +# ~/.config/wofi/config + +# 模式:drun (应用启动器), run (命令运行) +mode=drun + +# 界面是否显示图片(图标) +allow_images=true + +# 搜索是否不区分大小写 +insensitive=true + +# 启动时不保留之前的搜索词 +prompt=Search... + +# 窗口宽度和高度 +width=500 +height=300 + +# 窗口位置 (center, top_left, bottom_right 等) +location=center + +# 单击是否直接执行(默认双击) +# gtk-launch=true + +# 隐藏滚动条(更美观) +no_actions=true + +# 匹配算法 (contains, fuzzy) +matching=fuzzy diff --git a/style.css b/style.css new file mode 100644 index 0000000..45256cc --- /dev/null +++ b/style.css @@ -0,0 +1,55 @@ +/* ~/.config/wofi/style.css */ + +/* 整体窗口 */ +window { + margin: 0px; + border: 2px solid #5e81ac; /* 边框颜色 (Nord Blue) */ + background-color: #2e3440; /* 背景颜色 (Nord Dark) */ + border-radius: 10px; /* 窗口圆角 */ + font-family: "JetBrains Mono", monospace; /* 字体 */ + font-size: 14px; +} + +/* 输入框区域 */ +#input { + margin: 5px; + border: none; + color: #eceff4; + background-color: #3b4252; + border-radius: 5px; +} + +/* 内部容器 */ +#inner-box { + margin: 5px; + border: none; + background-color: transparent; +} + +/* 每一个条目 */ +#entry { + margin: 2px 0px; + border: none; + background-color: transparent; + border-radius: 5px; +} + +/* 选中的条目 */ +#entry:selected { + background-color: #5e81ac; /* 选中项背景 */ + color: #eceff4; /* 选中项文字颜色 */ + font-weight: bold; +} + +/* 列表中的图标 */ +#img { + margin-right: 10px; + background-color: transparent; +} + +/* 文本 */ +#text { + margin: 5px; + border: none; + color: #d8dee9; +}