#!/bin/bash CURRENT=`cat /home/jpm/.local/state/last_display` if [ "$CURRENT" == "x13" ]; then /home/jpm/scripts/sway/displays.pl Both else /home/jpm/scripts/sway/displays.pl x13 fi