.zlogin

1
# Script to be ran upon logging in (Basically the .bash_login file).
2
3
# First, boot the GNU Emacs daemon. This usually takes a relatively long time,
4
# allowing the computer to establish an internet connection in the meantime, so
5
# it can synchronize the directories and pull changes in repositories.
6
echo -e "Booting GNU Emacs...\n"
7
emacs --daemon=gnuemacs
8
echo -e "GNU Emacs booted as 'gnuemacs' daemon.\n"
9
10
# by pulling all changes in the repositories:
11
echo -e "Updating all repositories...\n"
12
cd ~/Repositories
13
for directory in */ ; do
14
	cd $directory
15
	git pull
16
	cd ..  # Returning to Repositories
17
done
18
19
cd ~  # Return to home
20
21
echo -e "Synchronizing remaining university data...\n"
22
rsync -a -P --delete -e ssh maarten@maartenv.be:/home/maarten/Documenten/University ~
23
rsync -a -P --delete -e ssh maarten@maartenv.be:/home/maarten/backup/shared ~
24
25
echo -e "All tasks completed. Initializing i3 boot process... OwO"
26
# Start X
27
if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
28
  exec startx
29
fi