Run display.pl with proper PATH

This commit is contained in:
John Mertz 2024-03-08 11:58:45 -07:00
parent fcf2b91b7b
commit 636be47198
1 changed files with 3 additions and 0 deletions

View File

@ -128,6 +128,9 @@ elif [[ $1 == "sleep" ]]; then
elif [[ $1 == "unsleep" ]]; then elif [[ $1 == "unsleep" ]]; then
for i in $(cat $OPFILE); do swaymsg "output $i dpms on"; done for i in $(cat $OPFILE); do swaymsg "output $i dpms on"; done
#$HOME/scripts/sway/displays.pl #$HOME/scripts/sway/displays.pl
cd $HOME/scripts/sway
source $HOME/.dotfiles/bash/plenv-path.sh
$HOME/scripts/sway/displays.pl 2>&1 >$HOME/.spool/display_unsleep
elif [[ $1 == "hibernate" ]]; then elif [[ $1 == "hibernate" ]]; then
if [[ $IDLEMODE -gt 4 ]]; then if [[ $IDLEMODE -gt 4 ]]; then
sudo systemctl suspend-then-hibernate.target sudo systemctl suspend-then-hibernate.target