1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-05-30 16:47:05 +02:00
config/modules/dotfiles/i3/detect-tray.sh

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"