Disable auto startx for root
This commit is contained in:
parent
94835ef01d
commit
35fc6b8a65
|
@ -11,6 +11,7 @@ SRC,https://github.com/augustogunsch/dwm-bar,Dwm status bar
|
||||||
PAC,feh,Image viewer
|
PAC,feh,Image viewer
|
||||||
PAC,firejail,Sandbox program
|
PAC,firejail,Sandbox program
|
||||||
PAC,fzf,Fuzzy finder
|
PAC,fzf,Fuzzy finder
|
||||||
|
PAC,gcc,C compiler
|
||||||
PAC,gvim,Text editor
|
PAC,gvim,Text editor
|
||||||
PAC,libnotify,Implementation of the Desktop Notifications Specification
|
PAC,libnotify,Implementation of the Desktop Notifications Specification
|
||||||
PAC,libxinerama,X11 extension which provides support for extending a desktop across multiple displays
|
PAC,libxinerama,X11 extension which provides support for extending a desktop across multiple displays
|
||||||
|
|
|
|
@ -575,8 +575,6 @@ install_packages() {
|
||||||
# these should be installed before as they are needed to build other packages
|
# these should be installed before as they are needed to build other packages
|
||||||
install sudo "Tool for running a command as other user"
|
install sudo "Tool for running a command as other user"
|
||||||
install git "Version control system"
|
install git "Version control system"
|
||||||
install go "Go compiler"
|
|
||||||
install gcc "C compiler"
|
|
||||||
|
|
||||||
install_loop
|
install_loop
|
||||||
}
|
}
|
||||||
|
@ -585,8 +583,10 @@ change_shells() {
|
||||||
echo -n "Configuring zsh..."
|
echo -n "Configuring zsh..."
|
||||||
quiet chsh -s /bin/zsh "root"
|
quiet chsh -s /bin/zsh "root"
|
||||||
quiet chsh -s /bin/zsh "$INSTALL_USER"
|
quiet chsh -s /bin/zsh "$INSTALL_USER"
|
||||||
|
# change root prompt color
|
||||||
sed 's/^export PROMPT=.*/export PROMPT='"'"'%B%F{166}[%F{172}%n@%m %F{white}%~%F{166}]$%b%f '"'"'/' < "$HOME/.zshrc" > /tmp/zshrc
|
sed 's/^export PROMPT=.*/export PROMPT='"'"'%B%F{166}[%F{172}%n@%m %F{white}%~%F{166}]$%b%f '"'"'/' < "$HOME/.zshrc" > /tmp/zshrc
|
||||||
mv /tmp/zshrc "$HOME/.zshrc"
|
# disable auto startx for root
|
||||||
|
sed -E 's/^(\s*exec\s*startx)/#\1/' < /tmp/zshrc > "$HOME/.zshrc"
|
||||||
echo "done"
|
echo "done"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue