dotfiles/fake_home/.bin/ffx.sh

17 lines
543 B
Bash
Raw Permalink Normal View History

2024-03-07 09:19:21 -05:00
#!/bin/bash
RUN_FIREFOX="MOZ_ENABLE_WAYLAND=1 setsid $HOME/.bin/firefox-developer-edition/firefox-bin"
echo "$RUN_FIREFOX"
2024-03-07 09:19:21 -05:00
kill $(pgrep firefox)
current_date="$(date '+%D')"
if [[ "$current_date" == "$(cat "$HOME/.bin/.update-firefox-last-pull")" ]]; then
gnome-terminal -- bash -c "$RUN_FIREFOX"
else
gnome-terminal -- bash -c "$HOME/.bin/update-firefox.sh && $RUN_FIREFOX"
fi
2024-03-07 09:19:21 -05:00
test -f "$HOME/.aws.exp" && bash -c "sleep 10; $HOME/.aws.exp" &> "$HOME/.aws.exp.log"
echo "$current_date" > "$HOME/.bin/.update-firefox-last-pull"
2024-03-07 09:19:21 -05:00
wait