.dotfiles/sway/get_active_display.sh

2 lines
116 B
Bash
Executable File

swaymsg -t get_outputs -p | grep Output | cut -d ' ' -f 3- | sort | awk '{print NR-1 $s}' | grep focused | cut -c 1