Languages
- 🇪🇸 - Español
- 🇺🇸 - English
- neovim
but feel free to use your preferred text editor (vim, nano, ...)
Login with the root user and run the following commands
pacman -Syu
pacman -S --needed gcc make git base-devel \
numlockx \
nmap wget curl inetutils dnsutils \
xclip \
p7zip unzip \
zsh tmux \
dunst ranger htop locate \
flameshot \
libsecret gnome-keyring gnome-themes-extra \
xorg-server xorg-xev \
bspwm sxhkd \
alacritty kitty \
rofi polybar picom \
lightdm lightdm-gtk-greeter \
bat lsd fzf jq \
feh \
neofetch \
pipewire pipewire-pulse \
udisks2 udiskie \
openssh \
keepassxc redshift
Set keyboard layout
localectl set-x11-keymap es
Edit the file /etc/lightdm/lightdm.conf
with text editor and modify the following lines
-#greeter-session=example-gtk-gnome
+greeter-session=lightdm-gtk-greeter
...
-#display-setup-script=
+display-setup-script=/usr/bin/setxkbmap -layout latam,es
...
-#greeter-setup-script=
+greeter-setup-script=/usr/bin/numlockx on
Activate the lightdm service
systemctl enable lightdm
Change user
su alejo
Create or edit the file ~/.xprofile
with text editor and set the following lines
In case of running in a virtual machine like VirtualBox add the following line
VBoxClient-all &
dbus-update-activation-environment --systemd DISPLAY &
sxhkd &
exec bspwm
Create the directories and set the configuration
# Create directories
mkdir -p ~/{.config,.ssh,Images}
# Clone repo
git clone https://github.com/alecodev/dotfiles.git
cd dotfiles
# Add permissions to files
sudo chmod +x $PWD/.config/bspwm/bspwmrc
sudo chmod +x $PWD/.config/bspwm/scripts/{bspwm_count,bspwm_layout,bspwm_resize,bspwm_smart_move}
# Create symbolic links of the files
ln -sf $PWD/.config/{alacritty,bspwm,gtk-3.0,kitty,picom,polybar,sxhkd,systemd} ~/.config/
ln -sf $PWD/{.aliases,.bashrc,.p10k.zsh,.xprofile,.zshrc,.tmux.conf} ~/
# Change default shell per user
sudo usermod --shell /usr/bin/zsh $(whoami)
sudo usermod --shell /usr/bin/zsh root
# Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Add plugins and themes
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k
# Install Oh My Zsh for root user
sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Rest after installation
exit
# Create symbolic links of the files to the root user
sudo ln -sf ~/.oh-my-zsh/custom/plugins/{zsh-autosuggestions,zsh-syntax-highlighting} /root/.oh-my-zsh/custom/plugins/
sudo ln -sf ~/.oh-my-zsh/custom/themes/powerlevel10k /root/.oh-my-zsh/custom/themes/
sudo ln -sf ~/{.aliases,.bashrc,.p10k.zsh,.zshrc} /root/
# Set Wallpaper
wget --quiet https://wallpaperaccess.com/full/2098223.png --output-document ~/Images/wallpaper.png
# Change power button behavior
sudo sed -i 's/#HandlePowerKey=poweroff/HandlePowerKey=ignore/' /etc/systemd/logind.conf
sudo systemctl restart systemd-logind
Reboot and log in with the other user
reboot
Ready now you can log in with the other user and use bspwm by pressing Super + Enter
- Yay
- Git
- Bluetooth
- SSH
- GPG
- Fonts
- Visual Studio Code
- Firefox
- Google Chrome
- Docker
- K8s
- DBeaver
- DroidCam
- VirtualBox