diff --git a/sway/toggle_outputs.sh b/sway/toggle_outputs.sh new file mode 100755 index 0000000..072718c --- /dev/null +++ b/sway/toggle_outputs.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +CURRENT=`cat /home/jpm/.config/last_display` + +if [ "$CURRENT" == "detached" ]; then + /home/jpm/scripts/sway/displays.pl stacked +else + /home/jpm/scripts/sway/displays.pl detached +fi