From 274549dddc2c03a3d7173d2ebef7d0135de175e1 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sat, 21 Sep 2024 00:15:06 +0200 Subject: [PATCH] polybar: Use new builtin tray module New in 3.7. --- .config/polybar/config | 8 +++----- .config/polybar/launch.sh | 2 -- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.config/polybar/config b/.config/polybar/config index 79ec45f..7655bdc 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -22,11 +22,7 @@ module-margin-right = 2 modules-left = i3 pulseaudio xbacklight battery-custom modules-center = datetime -modules-right = media vpn wlan powermenu - -tray-position = ${env:TRAY_POS:right} -tray-detached = false -tray-scale = 1.0 +modules-right = media vpn wlan powermenu tray font-0 = MesloLGS NF:style=Regular:size=18;4 ; used for the dots in module/powermenu @@ -170,3 +166,5 @@ click-left = ${env:POLYBAR_BLUETOOTH_CLICK_LEFT} type = custom/text content = ${env:POLYBAR_POWERMENU} +[module/tray] +type = internal/tray diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh index 8880115..6ceacb5 100755 --- a/.config/polybar/launch.sh +++ b/.config/polybar/launch.sh @@ -23,8 +23,6 @@ if ! pgrep -ax polybar >/dev/null 2>&1; then # launch Polybar on every monitor # https://github.com/polybar/polybar/issues/763 while read m; do - export TRAY_POS=none - [[ "${m%(primary)}" == "$m" ]] || export TRAY_POS=right export MONITOR="${m%%:*}" polybar --reload -c "$BASE_DIR/config" main & done <<<$(polybar --list-monitors)