1
0
Fork 0

simplified copy code and added rootless X prevention

This commit is contained in:
Kim, Jimin 2021-10-12 14:30:12 +09:00
parent 881f8b5142
commit aadb04c4be
2 changed files with 8 additions and 4 deletions

2
Xwrapper.config Normal file
View file

@ -0,0 +1,2 @@
allowed_users=anybody
needs_root_rights = yes

View file

@ -117,8 +117,8 @@ setup_brave() {
}
setup_conky() {
cp ./.conky ~/.conky
cp ./autostart/conky.desktop ~/.config/autostart/conky.desktop
cp ./.conky/ ~
cp ./autostart/conky.desktop ~/.config/autostart
package_install \
conky \
@ -314,6 +314,8 @@ setup_gnome() {
nvidia `# nvidia GPU support` \
optimus-manager-qt `# https://github.com/Shatur/optimus-manager-qt` \
# prevent rootless X
cp ./Xwrapper.config /etc/X11/
load_dconf "gnome-desktop-interface.conf"
sudo systemctl enable gdm
sudo systemctl enable optimus-manager
@ -542,7 +544,7 @@ setup_vim() {
package_install \
vim-plug `# vim plugin manager` \
cp .vimrc ~/.vimrc
cp .vimrc ~
}
setup_virtualbox() {
@ -615,7 +617,7 @@ setup_zsh() {
# install powerlevel10k theme
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
cp .zshrc ~/.zshrc
cp .zshrc ~
else
log "zsh already configured. Skipping."
fi