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
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue