Fix last_display path, update toggle targets
No longer necessary to restart mako
This commit is contained in:
parent
5e556193ca
commit
9a73102ab5
|
@ -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 &
|
||||
|
|
Loading…
Reference in New Issue