scripts/sway/toggle_outputs.sh

12 lines
213 B
Bash
Executable File

#!/bin/bash
CURRENT=`cat /home/jpm/.config/last_display`
if [ "$CURRENT" == "detached" ]; then
/home/jpm/scripts/sway/displays.pl TV
else
/home/jpm/scripts/sway/displays.pl detached
fi
pkill mako
mako &