From 9a73102ab54c525998c208fbb37e0c9c824c6743 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Fri, 17 Nov 2023 13:19:08 -0700 Subject: [PATCH] Fix last_display path, update toggle targets No longer necessary to restart mako --- sway/toggle_outputs.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/sway/toggle_outputs.sh b/sway/toggle_outputs.sh index 5e1a5e1..30d091b 100755 --- a/sway/toggle_outputs.sh +++ b/sway/toggle_outputs.sh @@ -1,11 +1,9 @@ #!/bin/bash -CURRENT=`cat /home/jpm/.config/last_display` +CURRENT=`cat /home/jpm/.spool/last_display` -if [ "$CURRENT" == "detached" ]; then - /home/jpm/scripts/sway/displays.pl TV +if [ "$CURRENT" == "x13" ]; then + /home/jpm/scripts/sway/displays.pl Both else - /home/jpm/scripts/sway/displays.pl detached + /home/jpm/scripts/sway/displays.pl x13 fi -pkill mako -mako &