Skip to content

Commit 104e83f

Browse files
committed
Updated install script. added "light" as dependency.
1 parent a2c5a61 commit 104e83f

File tree

4 files changed

+57
-14
lines changed

4 files changed

+57
-14
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
i3/lock.png
2+
3+
gitLightOutput\.log

i3/config

+6-6
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ bindsym $mod+Shift+Print exec maim -s ~/Pictures/screenshot$(date +%s).png && no
5858

5959

6060
#Display blight
61-
bindsym XF86MonBrightnessUp exec xbacklight -inc 5
62-
bindsym XF86MonBrightnessDown exec xbacklight -dec 5
61+
bindsym XF86MonBrightnessUp exec light -A 10
62+
bindsym XF86MonBrightnessDown exec light -U 10
6363

6464
# Before i3 v4.8, we used to recommend this one as the default:
6565
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
@@ -214,12 +214,12 @@ for_window [class="^.*"] border pixel 1 floating enable
214214
new_window 1pixel
215215

216216
# colors
217-
# class border backgr. text
217+
# class border backgr. text
218218
client.focused #315858 #315858 #111111
219-
#client.focused #bf3f34 #bf3f34 #bf3f34
219+
#client.focused #bf3f34 #bf3f34 #bf3f34
220220
client.unfocused #2c2e2f #2c2e2f #315858
221-
client.focused_inactive #2c2e2f #2c2e2f #2c2e2f
222-
client.urgent #383a3b #383a3b #ee0000
221+
client.focused_inactive #2c2e2f #2c2e2f #2c2e2f
222+
client.urgent #383a3b #383a3b #ee0000
223223

224224

225225
# Start i3bar to display a workspace bar (plus the system information i3status

install.sh

100644100755
+48-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,56 @@
11
#!/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"
414
cp .compton.conf ~/
15+
print "Copied compton config into ~/.compton.conf"
516
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+
644

7-
crontab ~/.config/i3/crontabWork.txt
845
sudo systemctl start cronie.service
46+
print "started cronie service"
947
sudo systemctl enable cronie.service
48+
print "enabled cronie for autostart with system"
1049

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
1656

update.sh

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ print "loaded new config"
2525
cp ~/.conkyrc .
2626
print "Loaded .conkyrc"
2727
cp ~/.compton.conf .
28+
print "Loaded compton.conf"
2829
cd $path
2930
print "returned into $path"
3031

0 commit comments

Comments
 (0)