From 93731a44e28c57ae5adedc7408fc790b3dd388a2 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Mon, 16 Nov 2020 00:53:09 -0500 Subject: [PATCH] Move toggle_outputs to sway directory It is not specific to thinkpad hardware but it is specific to sway; this is more appropriate --- sway/toggle_outputs.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 sway/toggle_outputs.sh 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