aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2022-08-05 21:46:23 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2022-08-05 21:46:23 +0200
commite8838eeca60b4e43d981ff2a94d38ba8ece116cd (patch)
tree672a67da128de182f3e411dbb2ea24fa5ab1d3c1
parent8a05f8d2aeb36dcbae9eec81cd8b32570f5ab359 (diff)
Call alacritty using its full path
This fixes #20 in a somewhat dirty way, maybe PATH should just be loaded in bspwmrc instead
-rwxr-xr-xbin/lock4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/lock b/bin/lock
index 254c3e8..d4404c1 100755
--- a/bin/lock
+++ b/bin/lock
@@ -30,7 +30,7 @@ FOCUSED_MONITOR=$(bspc query -M -m)
FULLSCREEN_NODES=$(bspc query -N -n any.fullscreen)
bspc monitor -f 1
-WINIT_X11_SCALE_FACTOR=1.0 alacritty -e ~/bin/lockscr1 &
+WINIT_X11_SCALE_FACTOR=1.0 ~/.cargo/bin/alacritty -e ~/bin/lockscr1 &
while [ -z "$(ps -C lockscr1 -o pid=)" ]; do sleep 1; done
while [ -z "$(ps -s $(ps -C lockscr1 -o pid=) -o pid=)" ]; do sleep 1; done
@@ -38,7 +38,7 @@ PRIMARY_WINDOW=$(bspc query -N -n)
if [ -n "$(xrandr --listmonitors | grep 'DP-2')" ]; then
bspc monitor -f 2
- WINIT_X11_SCALE_FACTOR=1.0 alacritty -e ~/bin/lockscr2 &
+ WINIT_X11_SCALE_FACTOR=1.0 ~/.cargo/bin/alacritty -e ~/bin/lockscr2 &
while [ -z "$(ps -C lockscr2 -o pid=)" ]; do sleep 1; done
while [ -z "$(ps -s $(ps -C lockscr2 -o pid=) -o pid=)" ]; do sleep 1; done