scripts/sway/toggle_outputs.sh

12 lines
213 B
Bash
Raw Normal View History

#!/bin/bash
CURRENT=`cat /home/jpm/.config/last_display`
if [ "$CURRENT" == "detached" ]; then
2023-01-06 19:41:31 +00:00
/home/jpm/scripts/sway/displays.pl TV
else
2023-01-06 19:41:31 +00:00
/home/jpm/scripts/sway/displays.pl detached
fi
pkill mako
mako &