-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-darknight.sh
executable file
·128 lines (113 loc) · 2.67 KB
/
install-darknight.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo -e "\033[31;1m You must be root to do this. \033[0m" 1>&2
exit 100
fi
echo -e "\033[36;1m Setting up Dark Night Skin \033[0m"
cat > /usr/share/mc/skins/darknight.ini <<EOF
[skin]
description = Dark Night skin
[Lines]
horiz=─
vert=│
lefttop=┌
righttop=┐
leftbottom=└
rightbottom=┘
topmiddle=─
bottommiddle=─
leftmiddle=├
rightmiddle=┤
cross=┼
dhoriz=─
dvert=│
dlefttop=┌
drighttop=┐
dleftbottom=└
drightbottom=┘
dtopmiddle=─
dbottommiddle=─
dleftmiddle=├
drightmiddle=┤
[core]
_default_ = gray;black
# Also applies on the function key hints at the bottom
selected = brightred;
# Also applies on field names of file pane and the selected files
# information at the bottom of file pane
marked = yellow;
markselect = brightred;
gauge = ;white
input = brightred;gray
inputunchanged=brightred;gray
disabled=gray;lightgray
reverse = black;lightgray
[dialog]
dfocus = brightred;
dhotnormal = brightred;
dhotfocus = brightred;
[error]
_default_ = white;red
errdhotnormal = yellow;red
errdhotfocus = yellow;lightgray
# Must match /{usr/,}etc/mc/filehighlight.ini, or ~/.mc/filehighlight.ini
[filehighlight]
directory = lightgray;
executable = green;
symlink = cyan;
stalelink = lightgray;red;
device = brown;
# Such as socket, fifo
special = brown;
# Linux core dump file
core = red;
temp = black;green;
archive = red;
doc = green;
source = cyan;
media = magenta;
graph = magenta;
database = blue;
[menu]
menuhot = brightred;
menusel = brightred;
menuhotsel = brightred;
[help]
helpitalic = red;
helpbold = blue;
helplink = white;
helpslink = white;brightred
# Untouched except removing _default_
[editor]
editbold = yellow;blue
editmarked = black;cyan
editwhitespace = brightblue;blue
linestate = white;cyan
# Untoched
[viewer]
viewunderline = brightred;blue
# Added
[popupmenu]
_default_=lightgray;blue
menusel=black;cyan
menutitle=lightgray;blue
[statusbar]
_default_=black;cyan
[buttonbar]
hotkey=brightred;
button=lightgray;
EOF
sleep 5
echo -e "\033[36;1m Setting up ini config \033[0m"
INI_FILE=/home/*/.config/mc/ini
if [ -f $INI_FILE ];
then
sed -i 's/^skin=[a-zA-Z0-9]*/skin=darknight/' $INI_FILE
else
echo -e "\033[31;1m Error: ini config file does not exists. \033[0m"
echo " Run MC for the first time then exit then run the installation again."
echo " "
exit 100
fi
sleep 5
echo -e "\033[32;1m Complete! \033[0m"