Fix last_display path, update toggle targets

No longer necessary to restart mako
This commit is contained in:
John Mertz 2023-11-17 13:19:08 -07:00
parent 5e556193ca
commit 9a73102ab5
1 changed files with 4 additions and 6 deletions

View File

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