-
Notifications
You must be signed in to change notification settings - Fork 0
/
options
executable file
·82 lines (74 loc) · 2.29 KB
/
options
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
#!/bin/bash
clear
# color code
L=$(tput bold)
R=$(tput setaf 1)
G=$(tput setaf 2)
B=$(tput setaf 33)
N=$(tput sgr0)
echo "${G}${L}[+] Optional steps ......${N}"
# autologin
echo "${B}${L}[+] Do you want to enable lxdm autologin ......${N}"
read -p "Enter your choice y/n:" choice
case $choice in
y)
echo "${B}${L}Enter user name that you want to enable autologin${N}"
read -p "User name:" name
sudo sed -i "3s/.*/autologin=$name/" "/etc/lxdm/lxdm.conf"
echo "${G}${L}[+] Enabled ......${N}"
;;
n)
echo "${G}${L}[-] Disabled ......${N}"
;;
esac
# Apache server
echo "${B}${L}[+] Do you want to enable apche server (For option 1 or 3) ......${N}"
read -p "Enter your choice y/n:" choice
case $choice in
y)
sudo systemctl enable httpd
echo "${G}${L}[+] Enabled ......${N}"
;;
n)
echo "${G}${L}[-] Disabled ......${N}"
;;
esac
# fish shell
echo "${B}${L}[+] Do you want to Install fish shell ......${N}"
read -p "Enter your choice y/n:" choice
case $choice in
y)
sudo pacman -S fish --noconfirm
echo /usr/bin/fish | sudo tee -a /etc/shells
chsh -s /usr/bin/fish
# fish greeting
sed -i '2c\echo Hello $USER!' ~/.config/fish/config.fish
sed -i '3c\echo The time is (set_color yellow; date +%T; set_color normal) and you are using $hostname' ~/.config/fish/config.fish
echo "${G}${L}[+] Enabled ......${N}"
;;
n)
echo "${G}${L}[-] Disabled ......${N}"
;;
esac
# download draula theme
echo "${B}${L}[+] Do you want to download dracula themes.Later you can install with lxappearance.${N}"
read -p "Enter your choice y/n:" choice
case $choice in
y)
wget https://github.com/dracula/gtk/releases/download/v4.0.0/Dracula.tar.xz
tar -xvf Dracula.tar.xz
sudo cp -r Dracula Dracula-alt-style Dracula-slim Dracula-slim-standard-buttons Dracula-standard-buttons /usr/share/themes
wget https://codeload.github.com/dracula/openbox/zip/refs/heads/master\openbox-master.zip
unzip openbox-master.zip
cd openbox-master
sudo cp -r Dracula Dracula-withoutBorder /usr/share/themes
cd ..
wget https://github.com/vinceliuice/vimix-icon-theme/archive/refs/tags/2023-06-26.zip
unzip vimix-icon-theme-2023-06-26.zip
sudo cp -r vimix-icon-theme-2023-06-26 /usr/share/icons
echo "${G}${L}[+] Added to theme directory.${N}"
;;
n)
echo "${G}${L}[-] ok ${N}"
;;
esac