scripts/sway/toggle_outputs.sh

10 lines
208 B
Bash
Raw Normal View History

#!/bin/bash
CURRENT=`cat /home/jpm/.config/last_display`
if [ "$CURRENT" == "detached" ]; then
2020-11-23 09:35:26 +00:00
/home/jpm/scripts/sway/displays.pl stacked
else
2020-11-23 09:35:26 +00:00
/home/jpm/scripts/sway/displays.pl detached
fi