From 9da4f73411f23abd83c5343e114d3a22b7e13c0d Mon Sep 17 00:00:00 2001 From: yutent Date: Sat, 8 Jul 2023 07:17:03 +0000 Subject: [PATCH] =?UTF-8?q?polybar=E9=85=8D=E7=BD=AE=E6=94=B9=E4=B8=BA3.7?= =?UTF-8?q?=E7=89=88=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/config/polybar/config.ini | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/home/config/polybar/config.ini b/home/config/polybar/config.ini index 03db613..003fe34 100644 --- a/home/config/polybar/config.ini +++ b/home/config/polybar/config.ini @@ -41,18 +41,13 @@ fixed-center = true modules-left = logo workspace pipe-db mpd modules-center = date -modules-right = netspeed pipe volume pipe power +modules-right = netspeed pipe tray pipe volume power -tray-position = right -tray-maxsize = 16 -tray-padding = 5 -tray-detached = false -tray-background = ${color.background} -tray-scale = 1.0 pseudo-transparency = true + enable-ipc = true ; 可点击鼠标状态 @@ -79,4 +74,16 @@ compositing-background = source compositing-foreground = over compositing-overline = over compositing-underline = over -compositing-border = over \ No newline at end of file +compositing-border = over + + +[module/tray] +type = internal/tray + +tray-margin = 6 +tray-position = adaptive +tray-padding = 4 +tray-maxsize = 16 +tray-detached = false +tray-background = ${color.background} +tray-scale = 1.0 \ No newline at end of file