Disable auto startx for root

This commit is contained in:
Augusto Gunsch 2021-08-13 13:24:01 -03:00
parent 94835ef01d
commit 35fc6b8a65
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
2 changed files with 4 additions and 3 deletions

View File

@ -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

1 PAC alsa-utils Utilities for ALSA
11 PAC feh Image viewer
12 PAC firejail Sandbox program
13 PAC fzf Fuzzy finder
14 PAC gcc C compiler
15 PAC gvim Text editor
16 PAC libnotify Implementation of the Desktop Notifications Specification
17 PAC libxinerama X11 extension which provides support for extending a desktop across multiple displays

View File

@ -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"
} }