home/bin/autoFocus.sh

10 lines
153 B
Bash
Raw Normal View History

2021-10-11 16:30:58 +02:00
#! /bin/bash
swaymsg -t get_outputs|grep 'eDP-1' > /dev/null
if [ $? == 0 ]; then
swaymsg focus output eDP-1
else
swaymsg focus output HDMI-A-3
fi