Move toggle_outputs to sway directory

It is not specific to thinkpad hardware but it is specific to sway; this is more appropriate
This commit is contained in:
John Mertz 2020-11-16 00:53:09 -05:00 committed by John Mertz
parent d8bfb5a38e
commit 4750ac31b3
Signed by: jpm
GPG Key ID: E9C5EA2D867501AB
1 changed files with 9 additions and 0 deletions

9
sway/toggle_outputs.sh Executable file
View File

@ -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