You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何设置Awesome WM客户端窗口颜色以匹配Vertex-Maia-Dark风格?

Hey there! Glad to hear you're enjoying Awesome WM so far—customizing it to match your familiar Vertex-Maia-Dark vibe makes total sense. Let's break down exactly where to tweak those elements you mentioned:

1. Start with extracting Vertex-Maia-Dark color values

First, grab the exact hex codes from your old Xfce theme using a color picker (like xfce4-screenshot's built-in picker, or gpick). You'll need:

  • The dark base background color (Vertex-Maia-Dark's main window bg)
  • The accent/highlight color (for focused borders, hovered menu items)
  • Text colors (normal and focused states)
2. Tweak window borders & titlebars in theme.lua

Your theme config file (usually at ~/.config/awesome/themes/[your-theme-name]/theme.lua) controls most window decorative elements. Add or modify these sections:

-- Window border settings
theme.border_width = 2 -- Adjust thickness to match Vertex-Maia-Dark
theme.border_normal = "#2d3436" -- Replace with your base dark color
theme.border_focus = "#6c757d" -- Replace with Vertex-Maia-Dark's highlight color

-- Titlebar colors
theme.titlebar_bg_normal = "#2d3436" -- Match window bg
theme.titlebar_bg_focus = "#2d3436" -- Keep consistent or use a slightly darker shade
theme.titlebar_fg_normal = "#adb5bd" -- Dimmed text for unfocused windows
theme.titlebar_fg_focus = "#ffffff" -- Bright text for focused windows

-- Titlebar button colors (close, minimize, etc.)
theme.titlebar_close_button_normal = "#6c757d"
theme.titlebar_close_button_focus = "#e06c75" -- Vertex-Maia-Dark's close button accent
3. Adjust internal window borders

If you're referring to the gap between a window's content and its outer border, you can set this directly in rc.lua (your main Awesome config):

-- Add this inside the client "manage" signal block
client.connect_signal("manage", function(c)
    -- Set inner padding (adjust values to match your desired gap)
    c.padding = { left = 4, right = 4, top = 4, bottom = 4 }
    -- For apps that don't set their own background, enforce the base color
    c.bg = "#2d3436"
end)
4. Fix application menus & interface colors

There are two types of menus to address:

  • Awesome's built-in menus: Update these in theme.lua:
    theme.menu_bg_normal = "#2d3436"
    theme.menu_bg_focus = "#6c757d" -- Highlight color for hovered items
    theme.menu_fg_normal = "#adb5bd"
    theme.menu_fg_focus = "#ffffff"
    theme.menu_border_width = 1
    theme.menu_border_color = "#495057" -- Subtle border for menus
    
  • App-specific menus (GTK apps like Thunar, Firefox): These are controlled by your GTK theme, not Awesome. Make sure your GTK config is set to use Vertex-Maia-Dark:
    1. Open ~/.config/gtk-3.0/settings.ini (create it if it doesn't exist)
    2. Add these lines:
      [Settings]
      gtk-theme-name=Vertex-Maia-Dark
      gtk-icon-theme-name=Vertex-Maia
      gtk-font-name=Noto Sans 10 -- Match your preferred font
      
    3. Restart your GTK apps or log out/in to apply changes.
5. Set matching fonts

Wrap up by updating font settings in theme.lua to match Vertex-Maia-Dark:

theme.font = "Noto Sans 10" -- Replace with the font used in your Xfce theme
theme.titlebar_font = "Noto Sans Bold 10"
theme.menu_font = "Noto Sans 10"

After making these changes, press Mod+Shift+r to restart Awesome and see your updates. If some apps still don't match, double-check that the Vertex-Maia-Dark theme package is installed on your system (use pamac install vertex-maia-dark-theme if needed).

内容的提问来源于stack exchange,提问作者Squalo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 09:34:46