diff --git a/sway/toggle_outputs.sh b/sway/toggle_outputs.sh index 5e1a5e1..30d091b 100755 --- a/sway/toggle_outputs.sh +++ b/sway/toggle_outputs.sh @@ -1,11 +1,9 @@ #!/bin/bash -CURRENT=`cat /home/jpm/.config/last_display` +CURRENT=`cat /home/jpm/.spool/last_display` -if [ "$CURRENT" == "detached" ]; then - /home/jpm/scripts/sway/displays.pl TV +if [ "$CURRENT" == "x13" ]; then + /home/jpm/scripts/sway/displays.pl Both else - /home/jpm/scripts/sway/displays.pl detached + /home/jpm/scripts/sway/displays.pl x13 fi -pkill mako -mako &