feat(ags): add startup script when ags launches

This commit is contained in:
matt1432 2023-09-08 14:21:31 -04:00
parent cbebf081ec
commit e09a8e9fbb
2 changed files with 12 additions and 0 deletions

10
config/ags/bin/startup.sh Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
## Make bluetooth status persistent between reboots
if [[ ! -f "$HOME/.config/.bluetooth" ]]; then
echo 󰂲 > "$FILE"
fi
if grep -q 󰂲 "$HOME/.config/.bluetooth"; then
rfkill block bluetooth
fi

View file

@ -9,6 +9,8 @@ const css = ags.App.configDir + '/style.css';
exec(`touch ${css}`);
exec(`sassc ${scss} ${css}`);
exec(`bash -c "$AGS_PATH/startup.sh"`);
export default {
style: css,
windows: [