config-new/modules/home/dotfiles/i3/detect-tray.sh
2025-05-24 15:38:19 +02:00

5 lines
163 B
Bash
Executable file

#!/bin/sh
# Detect primary or fallback to first connected output
OUTPUT=$(xrandr --query | awk '/ connected/{print $1; exit}')
exec i3bar --tray_output "$OUTPUT"