From 35fc6b8a65d310b0d63a9758a7c1591fd3155ce2 Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Fri, 13 Aug 2021 13:24:01 -0300 Subject: [PATCH] Disable auto startx for root --- packages.csv | 1 + post-install.sh | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages.csv b/packages.csv index 90e2869..b810e6f 100644 --- a/packages.csv +++ b/packages.csv @@ -11,6 +11,7 @@ SRC,https://github.com/augustogunsch/dwm-bar,Dwm status bar PAC,feh,Image viewer PAC,firejail,Sandbox program PAC,fzf,Fuzzy finder +PAC,gcc,C compiler PAC,gvim,Text editor PAC,libnotify,Implementation of the Desktop Notifications Specification PAC,libxinerama,X11 extension which provides support for extending a desktop across multiple displays diff --git a/post-install.sh b/post-install.sh index 3b18a18..a40a2ec 100755 --- a/post-install.sh +++ b/post-install.sh @@ -575,8 +575,6 @@ install_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 git "Version control system" - install go "Go compiler" - install gcc "C compiler" install_loop } @@ -585,8 +583,10 @@ change_shells() { echo -n "Configuring zsh..." quiet chsh -s /bin/zsh "root" 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 - mv /tmp/zshrc "$HOME/.zshrc" + # disable auto startx for root + sed -E 's/^(\s*exec\s*startx)/#\1/' < /tmp/zshrc > "$HOME/.zshrc" echo "done" }