scripts/sway/toggle_outputs.sh

12 lines
221 B
Bash
Raw Normal View History

#!/bin/bash
CURRENT=`cat /home/jpm/.config/last_display`
if [ "$CURRENT" == "detached" ]; then
2022-04-19 04:34:54 +00:00
/home/jpm/scripts/sway/displays.pl TV
else
2020-11-23 09:35:26 +00:00
/home/jpm/scripts/sway/displays.pl detached
fi
pkill mako
mako &