|
1 | 1 | #!/bin/bash
|
2 |
| -pacman -S i3 compton conky nitrogen rofi maim xclip playerctl cronie |
3 |
| -cp -R .i3 ~/.config/i3 |
| 2 | + |
| 3 | +print(){ |
| 4 | + echo "[i3wm-installer] $1" |
| 5 | +} |
| 6 | + |
| 7 | +i3path="~/.config/i3" |
| 8 | + |
| 9 | +sudo pacman -S i3 compton conky nitrogen rofi maim xclip playerctl cronie help2man |
| 10 | +mv $i3path ~/.config/i3.old |
| 11 | +print "$i3path moved into ~/.config/i3.old" |
| 12 | +cp -R i3 ~/.config/ |
| 13 | +print "copied new configs into $i3path" |
4 | 14 | cp .compton.conf ~/
|
| 15 | +print "Copied compton config into ~/.compton.conf" |
5 | 16 | cp .conkyrc ~/
|
| 17 | +print "Copied conkyrc config into ~/.conkyrc" |
| 18 | + |
| 19 | +print "[git] started clone of /haikarainen/light repo" |
| 20 | +print "[git] that library needs for adjust brightness on pc" |
| 21 | +git clone --progress https://github.com/haikarainen/light.git 2> gitLightOutput.log |
| 22 | +print "[git] output is shown in file gitLightOutput.log" |
| 23 | +cd light |
| 24 | +print "[making] $(sudo make)" |
| 25 | +print "[installing light]$(sudo make install)" |
| 26 | +cd .. |
| 27 | +rm -rf light/ |
| 28 | +print "removed light repo" |
| 29 | + |
| 30 | +if [ "$(crontab -l | head -n1 | cut -d " " -f1)" == "*" ] |
| 31 | +then |
| 32 | + print "Cron have shelduded jobs" |
| 33 | + crontab -l > lastjobs.txt |
| 34 | + cat i3/crontabWork.txt >> lastjobs.txt |
| 35 | + print "appending in lastjobs.txt" |
| 36 | + crontab lastjobs.txt |
| 37 | + print "added new jobs in cron" |
| 38 | +else |
| 39 | + print "Cron does not have any jobs" |
| 40 | + crontab i3/crontabWork.txt |
| 41 | + print "Added new job in cron for battery check" |
| 42 | +fi |
| 43 | + |
6 | 44 |
|
7 |
| -crontab ~/.config/i3/crontabWork.txt |
8 | 45 | sudo systemctl start cronie.service
|
| 46 | +print "started cronie service" |
9 | 47 | sudo systemctl enable cronie.service
|
| 48 | +print "enabled cronie for autostart with system" |
10 | 49 |
|
11 |
| -git clone https://github.com/unix121/i3wm-themer |
12 |
| -cd i3wm-themer/scripts/ |
13 |
| -sh i3wmthemer -b i3.backup |
14 |
| -sh i3wmthemer -c |
15 |
| -sh i3wmthemer -t Forest |
| 50 | +#pwd |
| 51 | +#sudo git clone https://github.com/unix121/i3wm-themer.git |
| 52 | +#cd i3wm-themer/scripts/ |
| 53 | +#sh i3wmthemer -b i3.backup |
| 54 | +#sh i3wmthemer -c |
| 55 | +#sh i3wmthemer -t Forest |
16 | 56 |
|
0 commit comments