Reload waybar by using restore_display.sh with -w
Pass arguments to display.pl inside restore_display.sh
This commit is contained in:
parent
eacff1a815
commit
60344ec940
|
@ -4,6 +4,6 @@ OLDPWD=$OLDPWD
|
||||||
PWD=$PWD
|
PWD=$PWD
|
||||||
cd $HOME/scripts/sway/
|
cd $HOME/scripts/sway/
|
||||||
source ~/.dotfiles/bash/plenv-path.sh
|
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 $OLDPWD
|
||||||
cd $PWD
|
cd $PWD
|
||||||
|
|
|
@ -2,6 +2,5 @@
|
||||||
if [ -z ${SWAYSOCK+x} ]; then
|
if [ -z ${SWAYSOCK+x} ]; then
|
||||||
i3 reload
|
i3 reload
|
||||||
else
|
else
|
||||||
cd ${HOME}/scripts/sway
|
${HOME}/scripts/sway/restore_display.sh -w
|
||||||
perl -Ilocal/lib/perl5/5.38.2 display.pl -w
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue