简体中文 繁體中文 English Deutsch 한국 사람 بالعربية TÜRKÇE português คนไทย Français Japanese

站内搜索

搜索

活动公告

02-13 00:04
02-12 00:01
通知:春节期间开放常规注册【2026-2-15 00:00】至【2026-2-17 00:00】(UTC+8)
02-12 00:00
通知:本站资源由网友上传分享,如有违规等问题请到版务模块进行投诉,资源失效请在帖子内回复要求补档,会尽快处理!
10-23 09:31

探索Void Linux系统下令人惊艳的桌面视觉效果及其配置方法提升你的Linux使用体验

SunJu_FaceMall

3万

主题

504

科技点

3万

积分

大区版主

碾压王

积分
32239

立华奏

发表于 2025-10-6 09:40:00 | 显示全部楼层 |阅读模式 [标记阅至此楼]

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x
Void Linux是一个独特而强大的Linux发行版,以其滚动发布模式、runit init系统和XBPS包管理器而闻名。尽管Void Linux以其简洁和高效著称,但这并不意味着它在视觉效果上有所妥协。事实上,Void Linux提供了丰富的可能性,让用户可以创建令人惊艳的桌面环境。本文将深入探讨如何在Void Linux系统中配置和美化桌面,提升你的Linux使用体验。

1. Void Linux基础设置

在开始美化之前,我们需要确保Void Linux系统已正确安装并配置了基本组件。

1.1 系统安装与更新

首先,确保你的Void Linux系统是最新的:
  1. sudo xbps-install -S
  2. sudo xbps-install -u
复制代码

1.2 安装基本图形组件

Void Linux默认不安装图形界面,我们需要手动安装必要的组件:
  1. # 安装Xorg服务器
  2. sudo xbps-install -S xorg-server
  3. # 安装显示管理器(可选)
  4. sudo xbps-install -S lightdm lightdm-gtk3-greeter
  5. # 启用显示管理器
  6. sudo ln -s /etc/sv/lightdm /var/service/
  7. # 安装基本的字体
  8. sudo xbps-install -S font-dejavu-ttf noto-fonts-ttf
复制代码

2. 桌面环境的选择与配置

Void Linux支持多种桌面环境,每种都有其独特的视觉风格和配置选项。

2.1 XFCE桌面环境

XFCE是一个轻量级但功能丰富的桌面环境,非常适合Void Linux。
  1. # 安装XFCE
  2. sudo xbps-install -S xfce4 xfce4-goodies
  3. # 安装主题引擎
  4. sudo xbps-install -S gtk-engine-murrine gtk-engines
复制代码

XFCE提供了丰富的自定义选项:

• 右键点击桌面 → “桌面设置”:可以更改背景、图标和菜单行为
• “设置管理器” → “外观”:更改主题、图标和字体
• “设置管理器” → “窗口管理器”:调整窗口行为和主题

2.2 KDE Plasma桌面环境

KDE Plasma是一个功能丰富且视觉效果出色的桌面环境。
  1. # 安装KDE Plasma
  2. sudo xbps-install -S plasma5 plasma5-extra
复制代码

KDE Plasma的美化选项:

• 右键点击桌面 → “配置桌面和壁纸”:自定义桌面效果和壁纸
• “系统设置” → “工作空间主题”:更改整体主题
• “系统设置” → “全局主题”:下载和应用新的全局主题
• “系统设置” → “窗口装饰”:更改窗口边框和按钮样式

2.3 GNOME桌面环境

GNOME是一个现代、简洁的桌面环境。
  1. # 安装GNOME
  2. sudo xbps-install -S gnome gnome-apps
复制代码

GNOME的美化主要通过扩展和主题实现:

• 安装GNOME扩展管理器:sudo xbps-install -S gnome-shell-extensions
• 访问extensions.gnome.org安装扩展
• 使用GNOME Tweaks工具调整主题和扩展:sudo xbps-install -S gnome-tweaks

3. 窗口管理器的选择与配置

对于追求极简和高效的用户,窗口管理器是更好的选择。

3.1 i3窗口管理器

i3是一个平铺式窗口管理器,以其高效和可配置性而闻名。
  1. # 安装i3
  2. sudo xbps-install -S i3 i3status i3lock
  3. # 安装i3-gaps(提供更多自定义选项)
  4. sudo xbps-install -S i3-gaps
复制代码

i3的配置文件位于~/.config/i3/config。以下是一个美观的i3配置示例:
  1. # 设置壁纸
  2. exec --no-startup-id feh --bg-scale /path/to/your/wallpaper.jpg
  3. # 设置透明度
  4. exec_always --no-startup-id picom -f
  5. # 设置主题
  6. set $bg-color            #2f343f
  7. set $inactive-bg-color   #2f343f
  8. set $text-color          #f3f4f5
  9. set $inactive-text-color #676E7D
  10. set $urgent-bg-color     #E53935
  11. # 设置窗口颜色
  12. #                       border              background         text                 indicator
  13. client.focused          $bg-color           $bg-color          $text-color          #00ff00
  14. client.unfocused        $inactive-bg-color  $inactive-bg-color $inactive-text-color #00ff00
  15. client.focused_inactive $inactive-bg-color  $inactive-bg-color $inactive-text-color #00ff00
  16. client.urgent           $urgent-bg-color    $urgent-bg-color   $text-color          #00ff00
  17. # 设置 gaps
  18. gaps inner 10
  19. gaps outer 5
复制代码

3.2 bspwm窗口管理器

bspwm是另一个优秀的平铺式窗口管理器,以其二进制空间分区而闻名。
  1. # 安装bspwm
  2. sudo xbps-install -S bspwm sxhkd
复制代码

bspwm的配置文件位于~/.config/bspwm/bspwmrc,而快捷键配置位于~/.config/sxhkd/sxhkdrc。以下是一个美观的bspwm配置示例:
  1. #!/bin/bash
  2. # 设置壁纸
  3. feh --bg-scale /path/to/your/wallpaper.jpg
  4. # 启动合成器
  5. picom -f &
  6. # 设置边框
  7. bspc config border_width         2
  8. bspc config window_gap          12
  9. # 设置颜色
  10. bspc config normal_border_color "#4c566a"
  11. bspc config active_border_color "#1e1e1e"
  12. bspc config focused_border_color "#5e81ac"
  13. bspc config presel_feedback_color "#5e81ac"
  14. # 设置分割比率
  15. bspc config split_ratio          0.52
  16. # 设置边框和间隙
  17. bspc config borderless_monocle   true
  18. bspc config gapless_monocle      true
  19. # 设置窗口规则
  20. bspc rule -a Gimp desktop='^8' state=floating follow=on
  21. bspc rule -a Chromium desktop='^2'
  22. bspc rule -a mplayer2 state=floating
  23. bspc rule -a Kupfer.py focus=on
  24. bspc rule -a Screenkey manage=off
复制代码

4. 主题、图标和光标的美化

主题、图标和光标是美化Linux桌面的关键元素。

4.1 GTK主题

GTK主题控制GTK应用程序的外观。
  1. # 安装一些流行的GTK主题
  2. sudo xbps-install -S arc-theme adapta-gtk-theme materia-gtk-theme
复制代码

使用GNOME Tweaks或XFCE外观设置来应用GTK主题。

4.2 图标主题

图标主题可以彻底改变桌面的视觉体验。
  1. # 安装一些流行的图标主题
  2. sudo xbps-install -S papirus-icon-theme numix-icon-theme-circle
复制代码

4.3 光标主题

自定义光标可以增添桌面的精致感。
  1. # 安装一些光标主题
  2. sudo xbps-install -S capitaine-cursors openzone-cursors
复制代码

4.4 手动安装主题

如果Void Linux仓库中没有你想要的主题,你可以手动安装:
  1. # 创建主题目录
  2. mkdir -p ~/.themes ~/.icons
  3. # 下载并解压主题到相应目录
  4. # 例如,安装Nordic主题:
  5. cd ~/.themes
  6. git clone https://github.com/EliverLara/Nordic.git
复制代码

5. 合成器与动画效果

合成器可以为桌面添加透明度、阴影和动画效果,大大提升视觉体验。

5.1 Picom合成器

Picom是一个轻量级的合成器,支持多种视觉效果。
  1. # 安装Picom
  2. sudo xbps-install -S picom
复制代码

创建Picom配置文件~/.config/picom/picom.conf:
  1. # 阴影
  2. shadow = true;
  3. shadow-radius = 7;
  4. shadow-opacity = 0.7;
  5. shadow-offset-x = -7;
  6. shadow-offset-y = -7;
  7. # 模糊
  8. blur-background = true;
  9. blur-background-frame = true;
  10. blur-background-fixed = true;
  11. blur-kern = "3x3box";
  12. blur-strength = 5;
  13. # 透明度
  14. inactive-opacity = 0.8;
  15. active-opacity = 1;
  16. frame-opacity = 0.7;
  17. inactive-opacity-override = false;
  18. # 渐变
  19. fading = true;
  20. fade-in-step = 0.03;
  21. fade-out-step = 0.03;
  22. # 其他效果
  23. backend = "glx";
  24. vsync = true;
  25. mark-wmwin-focused = true;
  26. mark-ovredir-focused = true;
  27. detect-rounded-corners = true;
  28. detect-client-opacity = true;
复制代码

5.2 启动Picom

在i3或bspwm的配置文件中添加以下行以自动启动Picom:
  1. exec --no-startup-id picom
复制代码

6. 面板和小部件的配置

面板和小部件可以增强桌面的功能性和美观性。

6.1 Polybar面板

Polybar是一个高度可定制的状态栏。
  1. # 安装Polybar
  2. sudo xbps-install -S polybar
复制代码

创建Polybar配置文件~/.config/polybar/config:
  1. [bar/main]
  2. width = 100%
  3. height = 24
  4. radius = 0
  5. background = ${colors.background}
  6. foreground = ${colors.foreground}
  7. line-size = 3
  8. line-color = #f00
  9. border-size = 4
  10. border-color = #00000000
  11. padding-left = 0
  12. padding-right = 0
  13. module-margin-left = 1
  14. module-margin-right = 1
  15. font-0 = fixed:pixelsize=10;1
  16. font-1 = unifont:fontformat=truetype:size=6:antialias=false;0
  17. font-2 = siji:pixelsize=10;1
  18. modules-left = i3
  19. modules-center = xwindow
  20. modules-right = filesystem xbacklight alsa pulseaudio date powermenu
  21. cursor-click = pointer
  22. cursor-scroll = ns-resize
  23. [module/i3]
  24. type = internal/i3
  25. format = <label-state> <label-mode>
  26. index-sort = true
  27. wrapping-scroll = false
  28. label-mode-padding = 2
  29. label-mode-foreground = #000
  30. label-mode-background = ${colors.primary}
  31. label-focused = %index%
  32. label-focused-background = ${colors.background-alt}
  33. label-focused-underline= ${colors.primary}
  34. label-focused-padding = 2
  35. label-unfocused = %index%
  36. label-unfocused-padding = 2
  37. label-visible = %index%
  38. label-visible-background = ${self.label-focused-background}
  39. label-visible-underline = ${self.label-focused-underline}
  40. label-visible-padding = ${self.label-focused-padding}
  41. label-urgent = %index%
  42. label-urgent-background = ${colors.alert}
  43. label-urgent-padding = 2
  44. [module/xwindow]
  45. type = internal/xwindow
  46. label = %title%
  47. [module/filesystem]
  48. type = internal/fs
  49. interval = 25
  50. mount-0 = /
  51. label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
  52. label-unmounted = %mountpoint% not mounted
  53. label-unmounted-foreground = ${colors.disabled}
  54. [module/xbacklight]
  55. type = internal/xbacklight
  56. format = <label> <bar>
  57. label = BL
  58. bar-width = 10
  59. bar-indicator = |
  60. bar-indicator-foreground = #fff
  61. bar-indicator-font = 2
  62. bar-fill = ─
  63. bar-fill-prefix = %{F#0a81f5}
  64. bar-fill-suffix = %{F-}
  65. bar-empty = ─
  66. bar-empty-font = 2
  67. [module/alsa]
  68. type = internal/alsa
  69. format-volume = <label-volume> <bar-volume>
  70. label-volume = VOL
  71. label-volume-foreground = ${colors.primary}
  72. format-muted-prefix = " "
  73. format-muted-foreground = ${colors.disabled}
  74. label-muted = sound muted
  75. bar-volume-width = 10
  76. bar-volume-foreground-0 = #55aa55
  77. bar-volume-foreground-1 = #55aa55
  78. bar-volume-foreground-2 = #55aa55
  79. bar-volume-foreground-3 = #55aa55
  80. bar-volume-foreground-4 = #55aa55
  81. bar-volume-foreground-5 = #f5a70a
  82. bar-volume-foreground-6 = #ff5555
  83. bar-volume-gradient = false
  84. bar-volume-indicator = |
  85. bar-volume-indicator-font = 2
  86. bar-volume-fill = ─
  87. bar-volume-fill-prefix = %{F#0a81f5}
  88. bar-volume-fill-suffix = %{F-}
  89. bar-volume-empty = ─
  90. bar-volume-empty-font = 2
  91. bar-volume-empty-foreground = ${colors.disabled}
  92. [module/pulseaudio]
  93. type = internal/pulseaudio
  94. format-volume = <label-volume> <bar-volume>
  95. label-volume = VOL
  96. label-volume-foreground = ${colors.primary}
  97. label-muted = " muted"
  98. label-muted-foreground = ${colors.disabled}
  99. bar-volume-width = 10
  100. bar-volume-foreground-0 = #55aa55
  101. bar-volume-foreground-1 = #55aa55
  102. bar-volume-foreground-2 = #55aa55
  103. bar-volume-foreground-3 = #55aa55
  104. bar-volume-foreground-4 = #55aa55
  105. bar-volume-foreground-5 = #f5a70a
  106. bar-volume-foreground-6 = #ff5555
  107. bar-volume-gradient = false
  108. bar-volume-indicator = |
  109. bar-volume-indicator-font = 2
  110. bar-volume-fill = ─
  111. bar-volume-fill-prefix = %{F#0a81f5}
  112. bar-volume-fill-suffix = %{F-}
  113. bar-volume-empty = ─
  114. bar-volume-empty-font = 2
  115. bar-volume-empty-foreground = ${colors.disabled}
  116. [module/date]
  117. type = internal/date
  118. interval = 1
  119. date = %Y-%m-%d%
  120. time = %H:%M:%S%
  121. format-prefix = " "
  122. format-prefix-foreground = ${colors.primary}
  123. format-underline = ${colors.primary}
  124. label = %date% %time%
  125. [module/powermenu]
  126. type = custom/menu
  127. expand-right = true
  128. format-spacing = 1
  129. label-open = "⏻ "
  130. label-open-foreground = ${colors.secondary}
  131. label-close = " cancel"
  132. label-close-foreground = ${colors.secondary}
  133. label-separator = " | "
  134. label-separator-foreground = ${colors.disabled}
  135. menu-0-0 = reboot
  136. menu-0-0-exec = menu-open-1
  137. menu-0-1 = power off
  138. menu-0-1-exec = menu-open-2
  139. menu-1-0 = cancel
  140. menu-1-0-exec = menu-open-0
  141. menu-1-1 = reboot
  142. menu-1-1-exec = sudo reboot
  143. menu-2-0 = power off
  144. menu-2-0-exec = sudo poweroff
  145. menu-2-1 = cancel
  146. menu-2-1-exec = menu-open-0
  147. [colors]
  148. background = #222
  149. background-alt = #444
  150. foreground = #dfdfdf
  151. foreground-alt = #555
  152. primary = #ffb52a
  153. secondary = #e60053
  154. alert = #bd2c40
复制代码

6.2 Conky系统监视器

Conky是一个轻量级的系统监视器,可以显示在桌面上。
  1. # 安装Conky
  2. sudo xbps-install -S conky
复制代码

创建Conky配置文件~/.conkyrc:
  1. conky.config = {
  2.     alignment = 'top_right',
  3.     background = false,
  4.     border_width = 1,
  5.     cpu_avg_samples = 2,
  6.     default_color = 'white',
  7.     default_outline_color = 'white',
  8.     default_shade_color = 'black',
  9.     double_buffer = true,
  10.     draw_borders = false,
  11.     draw_graph_borders = true,
  12.     draw_outline = false,
  13.     draw_shades = false,
  14.     gap_x = 10,
  15.     gap_y = 40,
  16.     minimum_height = 5,
  17.     minimum_width = 5,
  18.     net_avg_samples = 2,
  19.     no_buffers = true,
  20.     out_to_console = false,
  21.     out_to_ncurses = false,
  22.     out_to_stderr = false,
  23.     out_to_x = true,
  24.     own_window = true,
  25.     own_window_class = 'Conky',
  26.     own_window_type = 'desktop',
  27.     own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
  28.     stippled_borders = 0,
  29.     update_interval = 1.0,
  30.     uppercase = false,
  31.     use_spacer = 'none',
  32.     show_graph_scale = false,
  33.     show_graph_range = false,
  34.     use_xft = true,
  35.     font = 'DejaVu Sans Mono:size=10',
  36.     own_window_argb_value = 50,
  37.     own_window_argb_visual = true,
  38.     own_window_colour = '#000000',
  39.     own_window_transparent = true,
  40. }
  41. conky.text = [[
  42. ${color #5e81ac}${font DejaVu Sans Mono:bold:size=12}SYSTEM ${hr 2}${color}${font}
  43. ${color #d8dee9}Host:${color} $nodename
  44. ${color #d8dee9}Kernel:${color} $kernel
  45. ${color #d8dee9}Uptime:${color} $uptime
  46. ${color #5e81ac}${font DejaVu Sans Mono:bold:size=12}PROCESSORS ${hr 2}${color}${font}
  47. ${color #d8dee9}CPU 1:${color} ${cpu cpu1}% ${cpubar cpu1}
  48. ${color #d8dee9}CPU 2:${color} ${cpu cpu2}% ${cpubar cpu2}
  49. ${color #d8dee9}CPU 3:${color} ${cpu cpu3}% ${cpubar cpu3}
  50. ${color #d8dee9}CPU 4:${color} ${cpu cpu4}% ${cpubar cpu4}
  51. ${color #d8dee9}CPU Temperature:${color} ${acpitemp}°C
  52. ${color #5e81ac}${font DejaVu Sans Mono:bold:size=12}MEMORY ${hr 2}${color}${font}
  53. ${color #d8dee9}RAM:${color} $mem/$memmax - $memperc% ${membar}
  54. ${color #d8dee9}Swap:${color} $swap/$swapmax - $swapperc% ${swapbar}
  55. ${color #5e81ac}${font DejaVu Sans Mono:bold:size=12}DISK ${hr 2}${color}${font}
  56. ${color #d8dee9}Root:${color} ${fs_used /}/${fs_size /} ${fs_bar /}
  57. ${color #d8dee9}Home:${color} ${fs_used /home}/${fs_size /home} ${fs_bar /home}
  58. ${color #5e81ac}${font DejaVu Sans Mono:bold:size=12}NETWORK ${hr 2}${color}${font}
  59. ${color #d8dee9}Down:${color} ${downspeed enp3s0} ${color #88c0d0}${downspeedgraph enp3s0 8,60 #5e81ac #88c0d0}${color}
  60. ${color #d8dee9}Up:${color} ${upspeed enp3s0} ${color #88c0d0}${upspeedgraph enp3s0 8,60 #5e81ac #88c0d0}${color}
  61. ${color #5e81ac}${font DejaVu Sans Mono:bold:size=12}TOP PROCESSES ${hr 2}${color}${font}
  62. ${color #d8dee9}Name              PID   CPU%   MEM%${color}
  63. ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
  64. ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
  65. ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
  66. ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
  67. ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
  68. ${color #5e81ac}${font DejaVu Sans Mono:bold:size=12}DATE ${hr 2}${color}${font}
  69. ${color #d8dee9}${alignc}${time %A, %d %B %Y}${color}
  70. ${color #d8dee9}${alignc}${time %H:%M:%S}${color}
  71. ]]
复制代码

7. 终端美化

终端是Linux用户最常用的工具之一,美化终端可以提升使用体验。

7.1 安装和配置Zsh

Zsh是一个功能强大的shell,可以替代默认的Bash。
  1. # 安装Zsh
  2. sudo xbps-install -S zsh
  3. # 设置Zsh为默认shell
  4. chsh -s /bin/zsh
复制代码

7.2 安装Oh My Zsh

Oh My Zsh是一个Zsh配置框架,提供了大量插件和主题。
  1. # 安装Oh My Zsh
  2. sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
复制代码

7.3 配置Oh My Zsh

编辑~/.zshrc文件,选择主题和插件:
  1. # 主题设置
  2. ZSH_THEME="powerlevel10k/powerlevel10k"
  3. # 插件设置
  4. plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
复制代码

7.4 安装Powerlevel10k主题

Powerlevel10k是一个美观、快速的Zsh主题。
  1. # 克隆Powerlevel10k仓库
  2. git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
  3. # 安装推荐的字体
  4. sudo xbps-install -S noto-fonts-emoji powerline-fonts
复制代码

7.5 美化终端模拟器

Alacritty是一个快速、跨平台的终端模拟器。
  1. # 安装Alacritty
  2. sudo xbps-install -S alacritty
复制代码

创建Alacritty配置文件~/.config/alacritty/alacritty.yml:
  1. # 导入默认配置
  2. import:
  3.   - /etc/alacritty/alacritty.yml
  4. # 窗口设置
  5. window:
  6.   dimensions:
  7.     columns: 80
  8.     lines: 24
  9.   padding:
  10.     x: 5
  11.     y: 5
  12.   decorations: full
  13.   startup_mode: Windowed
  14.   dynamic_title: true
  15.   opacity: 0.9
  16. # 滚动设置
  17. scrolling:
  18.   history: 10000
  19.   multiplier: 3
  20. # 字体设置
  21. font:
  22.   normal:
  23.     family: "DejaVu Sans Mono"
  24.     style: Regular
  25.   bold:
  26.     family: "DejaVu Sans Mono"
  27.     style: Bold
  28.   italic:
  29.     family: "DejaVu Sans Mono"
  30.     style: Italic
  31.   bold_italic:
  32.     family: "DejaVu Sans Mono"
  33.     style: Bold Italic
  34.   size: 10.0
  35. # 颜色设置 (Nord主题)
  36. colors:
  37.   primary:
  38.     background: '#2e3440'
  39.     foreground: '#d8dee9'
  40.     dim_foreground: '#a5abb6'
  41.   cursor:
  42.     text: '#2e3440'
  43.     cursor: '#d8dee9'
  44.   vi_mode_cursor:
  45.     text: '#2e3440'
  46.     cursor: '#d8dee9'
  47.   selection:
  48.     text: CellForeground
  49.     background: '#4c566a'
  50.   search:
  51.     matches:
  52.       foreground: CellBackground
  53.       background: '#88c0d0'
  54.     bar:
  55.       background: '#434c5e'
  56.       foreground: '#d8dee9'
  57.   normal:
  58.     black: '#3b4252'
  59.     red: '#bf616a'
  60.     green: '#a3be8c'
  61.     yellow: '#ebcb8b'
  62.     blue: '#81a1c1'
  63.     magenta: '#b48ead'
  64.     cyan: '#88c0d0'
  65.     white: '#e5e9f0'
  66.   bright:
  67.     black: '#4c566a'
  68.     red: '#bf616a'
  69.     green: '#a3be8c'
  70.     yellow: '#ebcb8b'
  71.     blue: '#81a1c1'
  72.     magenta: '#b48ead'
  73.     cyan: '#8fbcbb'
  74.     white: '#eceff4'
  75.   dim:
  76.     black: '#373e4d'
  77.     red: '#94545d'
  78.     green: '#809575'
  79.     yellow: '#b29e75'
  80.     blue: '#68809a'
  81.     magenta: '#8c738c'
  82.     cyan: '#6d96a5'
  83.     white: '#aeb3bb'
复制代码

Kitty是另一个快速、功能丰富的终端模拟器。
  1. # 安装Kitty
  2. sudo xbps-install -S kitty
复制代码

创建Kitty配置文件~/.config/kitty/kitty.conf:
  1. # 字体设置
  2. font_family      DejaVu Sans Mono
  3. bold_font        auto
  4. italic_font      auto
  5. bold_italic_font auto
  6. font_size        10.0
  7. # 窗口设置
  8. remember_window_size  yes
  9. initial_window_width  640
  10. initial_window_height 400
  11. window_margin_width   0
  12. window_padding_width  5
  13. window_opacity        0.9
  14. # 颜色设置 (Nord主题)
  15. background #2E3440
  16. foreground #D8DEE9
  17. cursor     #D8DEE9
  18. # 黑色
  19. color0   #3B4252
  20. color8   #4C566A
  21. # 红色
  22. color1   #BF616A
  23. color9   #BF616A
  24. # 绿色
  25. color2   #A3BE8C
  26. color10  #A3BE8C
  27. # 黄色
  28. color3   #EBCB8B
  29. color11  #EBCB8B
  30. # 蓝色
  31. color4   #81A1C1
  32. color12  #81A1C1
  33. # 品红
  34. color5   #B48EAD
  35. color13  #B48EAD
  36. # 青色
  37. color6   #88C0D0
  38. color14  #8FBCBB
  39. # 白色
  40. color7   #E5E9F0
  41. color15  #ECEFF4
  42. # 其他设置
  43. enable_audio_bell no
  44. visual_bell_duration 0.0
  45. confirm_os_window_close 0
复制代码

8. 登录管理器和启动画面的美化

登录管理器和启动画面是用户首先看到的界面,美化它们可以提升整体体验。

8.1 LightDM美化

LightDM是一个轻量级的显示管理器,支持多种主题。
  1. # 安装LightDM主题
  2. sudo xbps-install -S lightdm-gtk-greeter-settings
  3. # 安装额外的LightDM主题
  4. sudo xbps-install -S lightdm-webkit2-greeter
复制代码

编辑LightDM GTK Greeter配置文件/etc/lightdm/lightdm-gtk-greeter.conf:
  1. [greeter]
  2. background=/usr/share/backgrounds/void.jpg
  3. theme-name=Nordic
  4. icon-theme-name=Papirus-Dark
  5. font-name=DejaVu Sans 11
  6. position=30%,end 50%,end
  7. screensaver-timeout=60
复制代码

8.2 Plymouth启动画面

Plymouth可以美化系统启动过程。
  1. # 安装Plymouth
  2. sudo xbps-install -S plymouth plymouth-themes
  3. # 启用Plymouth
  4. sudo plymouth-set-default-theme -R spinfinity
复制代码

9. 高级技巧和资源推荐

9.1 使用Rofi作为应用启动器

Rofi是一个快速、可定制的应用启动器。
  1. # 安装Rofi
  2. sudo xbps-install -S rofi
复制代码

创建Rofi配置文件~/.config/rofi/config.rasi:
  1. configuration {
  2.     modi: "window,run,drun,ssh";
  3.     font: "DejaVu Sans Mono 12";
  4.     terminal: "alacritty";
  5.     ssh-client: "ssh";
  6.     ssh-command: "{terminal} -e {ssh-client} {host} [-p {port}]";
  7.     run-command: "{cmd}";
  8.     run-list-command: "";
  9.     run-shell-command: "{terminal} -e {cmd}";
  10.     window-command: "wmctrl -i -R {window}";
  11.     window-match-fields: "all";
  12.     icon-theme: "Papirus-Dark";
  13.     drun-match-fields: "name,generic,exec,categories,keywords";
  14.     drun-show-actions: false;
  15.     drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]";
  16.     drun-url-launcher: "xdg-open";
  17.     disable-history: false;
  18.     ignored-prefixes: "";
  19.     sort: false;
  20.     sorting-method: "normal";
  21.     case-sensitive: false;
  22.     cycle: true;
  23.     sidebar-mode: false;
  24.     hover-select: false;
  25.     eh: 1;
  26.     auto-select: false;
  27.     parse-hosts: false;
  28.     parse-known-hosts: true;
  29.     combi-modi: "window,run,drun,ssh";
  30.     matching: "normal";
  31.     tokenize: true;
  32.     m: "-5";
  33.     filter: "";
  34.     dpi: -1;
  35.     threads: 0;
  36.     scroll-method: 0;
  37.     window-format: "{w} · {c} · {t}";
  38.     click-to-exit: true;
  39.     show-match: true;
  40.     theme: "nord";
  41. }
  42. @theme "nord"
  43. * {
  44.     bg: #2E3440;
  45.     bg-alt: #3B4252;
  46.     fg: #D8DEE9;
  47.     fg-alt: #E5E9F0;
  48.     ac: #88C0D0;
  49. }
  50. #window {
  51.     background-color: @bg;
  52.     border: 2px;
  53.     border-color: @ac;
  54.     border-radius: 6px;
  55.     padding: 15px;
  56. }
  57. #mainbox {
  58.     border: 0;
  59.     padding: 0;
  60. }
  61. #message {
  62.     border: 0;
  63.     border-color: @ac;
  64.     padding: 0;
  65. }
  66. #textbox {
  67.     text-color: @fg;
  68.     padding: 5px 0;
  69. }
  70. #listview {
  71.     fixed-height: 0;
  72.     border: 0;
  73.     border-color: @ac;
  74.     spacing: 2px;
  75.     scrollbar: false;
  76.     padding: 2px 0 0;
  77. }
  78. #element {
  79.     border: 0;
  80.     padding: 3px;
  81. }
  82. #element.normal.normal {
  83.     background-color: @bg;
  84.     text-color: @fg;
  85. }
  86. #element.normal.urgent {
  87.     background-color: @bg;
  88.     text-color: @fg;
  89. }
  90. #element.normal.active {
  91.     background-color: @bg;
  92.     text-color: @fg;
  93. }
  94. #element.selected.normal {
  95.     background-color: @ac;
  96.     text-color: @bg;
  97. }
  98. #element.selected.urgent {
  99.     background-color: @ac;
  100.     text-color: @bg;
  101. }
  102. #element.selected.active {
  103.     background-color: @ac;
  104.     text-color: @bg;
  105. }
  106. #element.alternate.normal {
  107.     background-color: @bg-alt;
  108.     text-color: @fg;
  109. }
  110. #element.alternate.urgent {
  111.     background-color: @bg-alt;
  112.     text-color: @fg;
  113. }
  114. #element.alternate.active {
  115.     background-color: @bg-alt;
  116.     text-color: @fg;
  117. }
  118. #scrollbar {
  119.     width: 4px;
  120.     border: 0;
  121.     handle-width: 4px;
  122.     handle-color: @ac;
  123.     padding: 0;
  124. }
  125. #sidebar {
  126.     border: 2px dash 0px 0px;
  127.     border-color: @ac;
  128. }
  129. #button.selected {
  130.     background-color: @ac;
  131.     text-color: @bg;
  132. }
  133. #inputbar {
  134.     spacing: 0;
  135.     text-color: @fg;
  136.     padding: 1px;
  137.     children: [ prompt, textbox-prompt-sep, entry, case-indicator ];
  138. }
  139. #prompt {
  140.     text-color: @ac;
  141. }
  142. #textbox-prompt-sep {
  143.     expand: false;
  144.     str: ":";
  145.     text-color: @fg;
  146.     margin: 0 0.3em 0 0;
  147. }
  148. #entry {
  149.     text-color: @fg;
  150. }
  151. #case-indicator {
  152.     text-color: @fg;
  153. }
复制代码

9.2 使用Nitrogen管理壁纸

Nitrogen是一个简单易用的壁纸管理工具。
  1. # 安装Nitrogen
  2. sudo xbps-install -S nitrogen
复制代码

9.3 使用dunst作为通知守护进程

dunst是一个轻量级、可定制的通知守护进程。
  1. # 安装dunst
  2. sudo xbps-install -S dunst
复制代码

创建dunst配置文件~/.config/dunst/dunstrc:
  1. [global]
  2.     monitor = 0
  3.     follow = mouse
  4.     geometry = "300x5-10+30"
  5.     indicate_hidden = yes
  6.     shrink = no
  7.     transparency = 20
  8.     notification_height = 0
  9.     separator_height = 2
  10.     padding = 8
  11.     horizontal_padding = 8
  12.     frame_width = 2
  13.     frame_color = "#88C0D0"
  14.     separator_color = "#2E3440"
  15.     sort = yes
  16.     idle_threshold = 120
  17.     font = DejaVu Sans Mono 10
  18.     line_height = 1
  19.     markup = full
  20.     format = "<b>%s</b>\n%b"
  21.     alignment = left
  22.     show_age_threshold = 60
  23.     word_wrap = yes
  24.     ignore_newline = no
  25.     stack_duplicates = true
  26.     hide_duplicate_count = false
  27.     show_indicators = yes
  28.     icon_position = left
  29.     max_icon_size = 32
  30.     icon_path = /usr/share/icons/Papirus-Dark/32x32/status/:/usr/share/icons/Papirus-Dark/32x32/devices/:/usr/share/icons/Papirus-Dark/32x32/apps/
  31.     sticky_history = yes
  32.     history_length = 20
  33.     dmenu = /usr/bin/dmenu -p dunst:
  34.     browser = /usr/bin/firefox -new-tab
  35.     always_run_script = true
  36.     title = Dunst
  37.     class = Dunst
  38.     startup_notification = false
  39.     force_xwayland = false
  40. [experimental]
  41.     per_monitor_dpi = false
  42. [shortcuts]
  43.     close = ctrl+space
  44.     close_all = ctrl+shift+space
  45.     history = ctrl+grave
  46.     context = ctrl+shift+period
  47. [urgency_low]
  48.     background = "#2E3440"
  49.     foreground = "#D8DEE9"
  50.     timeout = 10
  51. [urgency_normal]
  52.     background = "#2E3440"
  53.     foreground = "#D8DEE9"
  54.     timeout = 10
  55. [urgency_critical]
  56.     background = "#2E3440"
  57.     foreground = "#BF616A"
  58.     frame_color = "#BF616A"
  59.     timeout = 0
复制代码

9.4 资源推荐

以下是一些获取主题、图标和灵感的资源:

• Gnome Look- 主题、图标、壁纸等资源
• DeviantArt- 艺术作品和壁纸
• r/unixporn- Linux桌面美化社区
• Void Linux Wiki- Void Linux官方文档
• Arch Linux Wiki- 虽然是Arch的Wiki,但包含大量通用的Linux配置信息

10. 总结

Void Linux虽然以其简洁和高效著称,但它同样提供了丰富的桌面美化可能性。通过选择合适的桌面环境或窗口管理器,配置主题、图标和光标,添加合成器和动画效果,以及美化终端和登录管理器,你可以创建一个既美观又高效的Linux桌面环境。

本文介绍的各种配置和工具只是起点,Void Linux的真正魅力在于其高度的可定制性。你可以根据自己的喜好和需求,进一步调整和优化这些配置,打造一个独一无二的桌面环境。

最重要的是,美化Linux桌面不仅是为了视觉效果,更是为了提升使用体验和工作效率。一个配置良好的桌面环境可以让你更加专注于工作,同时也能在使用过程中带来愉悦的视觉享受。

希望本文能帮助你在Void Linux上创建一个令人惊艳的桌面环境,提升你的Linux使用体验!
「七転び八起き(ななころびやおき)」
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系我们|小黑屋|TG频道|RSS |网站地图

Powered by Pixtech

© 2025-2026 Pixtech Team.

>