1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-07 10:59:55 +01: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"