Reload waybar by using restore_display.sh with -w

Pass arguments to display.pl inside restore_display.sh
This commit is contained in:
John Mertz 2024-07-21 19:21:24 -06:00
parent eacff1a815
commit 60344ec940
2 changed files with 2 additions and 3 deletions

View File

@ -4,6 +4,6 @@ OLDPWD=$OLDPWD
PWD=$PWD
cd $HOME/scripts/sway/
source ~/.dotfiles/bash/plenv-path.sh
perl -Ilocal/lib/perl5/5.38.2 displays.pl
perl -Ilocal/lib/perl5/5.38.2 displays.pl $@
cd $OLDPWD
cd $PWD

View File

@ -2,6 +2,5 @@
if [ -z ${SWAYSOCK+x} ]; then
i3 reload
else
cd ${HOME}/scripts/sway
perl -Ilocal/lib/perl5/5.38.2 display.pl -w
${HOME}/scripts/sway/restore_display.sh -w
fi