-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathconfig-en.sh
43 lines (30 loc) · 1.16 KB
/
config-en.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
#!/bin/sh
echo -e '\e[[1;36m configure i3\e[[0m'
draw_line
echo -e 'tray icon'
name=$(xrandr | sed -n '2p' | cut -d ' ' -f 1)
[[ $name ]] && echo -e echo -e 'your display device is '$name
if [[ -n $name ]]; then
sed -i "s/eDP1/$name/g" ~/.config/i3/config
echo 'setted tray icon'
fi
draw_line
read -p "Do you use "networkmanager" tray icon ? input y or n:" nmicon
if [[ $nmicon == y ]]; then
sed -i 's/#exec --no-startup-id nm-applet/exec --no-startup-id nm-applet/' ~/.config/i3/config
echo 'OK,please make sure nm-applet has been installed'
fi
draw_line
read -p 'Do you use "xcompmgr"(make the terminal transparent)? input y or n:' xcomp
if [[ $xcomp == y ]]; then
sed -i 's/#exec --no-startup-id xcompmgr &/exec --no-startup-id xcompmgr &/' ~/.config/i3/config
echo 'OK,please make sure xcompmgr has been installed'
fi
draw_line
read -p 'Do you use "mate-power-manager" ? input y or n:' matepower
if [[ $matepower == y ]]; then
sed -i 's/#exec --no-startup-id mate-power-manager/exec --no-startup-id mate-power-manager/' ~/.config/i3/config
echo 'OK,please make sure mate-power-manager has been installed'
fi
draw_line
echo 'Done!More info see README-en.md'