sudo apt-get remove --purge "libreoffice-core"
sudo apt autoremove
https://github.com/baskerville/bspwm/wiki
Dependencias de bspwm
sudo apt-get install libxcb-xinerama0-dev libxcb-icccm4-dev libxcb-randr0-dev libxcb-util0-dev libxcb-ewmh-dev libxcb-keysyms1-dev libxcb-shape0-dev
mkdir build
cd build
git clone https://github.com/baskerville/bspwm.git
cd bspwm
cd bspwm && make && sudo make install
cd ../
git clone https://github.com/baskerville/sxhkd.git
cd sxhkd
sudo make uninstall
sudo apt install polybar
sudo apt install compton
sudo apt install feh
sudo apt install rofi
mkdir -p ~/.config/{bspwm,sxhkd,compton,polybar, scripts}
cp /usr/local/share/doc/bspwm/examples/bspwmrc ~/.config/bspwm/
cp /usr/local/share/doc/bspwm/examples/sxhkdrc ~/.config/sxhkd/
chmod u+x ~/.config/bspwm/bspwmrc
Modificamos ~/.config/bspwm/bspwmrc
con esto:
#! /bin/sh
sxhkd &
compton --config ~/.config/compton/compton.conf &
feh --bg-fill ~/Pictures/wallpapers/blue_mustang.jpg &
wmname LG3D &
~/.config/polybar/launch.sh &
bspc config pointer_modifier mod1
bspc monitor -d I II III IV V VI VII VIII IX X
bspc config border_width 2
bspc config window_gap 10
bspc config split_ratio 0.52
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc rule -a Caja desktop='^8' state=floating follow=on
bspc rule -a Gimp desktop='^8' state=floating follow=on
bspc rule -a Chromium desktop='^2'
bspc rule -a mplayer2 state=floating
bspc rule -a Kupfer.py focus=on
bspc rule -a Screenkey manage=off
Modificamos en ~/.config/sxhkd/sxhkdrc
la terminal y el 'program launcher' con esto:
# terminal emulator
super + Return
gnome-terminal
#urxvt
# program launcher
super + d
rofi -show run
....
touch config
touch launch.sh
cp /usr/share/doc/polybar/config ~/.config/polybar/
El archivo de configuración arriba personalizado es demasiado extenso como para ponerlo aquí.
El archivo launch.sh
:
#!/bin/bash
killall -q polybar
while pgrep -u SUID -x polybar > /dev/null; do sleep 1; done
polybar example &
chmod +x ~/.config/polybar/launch.sh
Creamos ~/.config/scripts/ip_main.sh
:
#!/bin/sh
echo "%{F#2495e7} %{F#e2ee6a} $(/usr/sbin/ifconfig eth0 | grep "inet " | awk '{print $2}')%{u-}"
Creamos ~/.config/scripts/vpnstatus.sh
:
#!/bin/sh
IFACE=$(/usr/sbin/ifconfig | grep tun0 | awk '{print $1}' | tr -d ':')
if [ "$IFACE" = "tun0" ]; then
echo "%{F#1bbf3e} %{F-e2ee6a}$(/usr/sbin/ifconfig tun0 | grep "inet " | awk '{print $2}')%{u-}"
else
echo "%{F#1bbf3e}%{u-}%{F-}"
fi
Nota: No importa si algunos caracteres no se ven ahorao aquí, eso lo resolvemos usando otras fuentes.
Los dos scripts arriba lo usamos en la polybar
, en nuestra config personalizada, no la default.
Creamos ~/.config/compton/compton.conf
:
active-opacity = 0.90;
inactive-opacity = 0.80;
frame-opacity = 0.80;
backend = "glx";
opacity-rule = [
"50:class_g = 'Bspwm' && class_i = 'presel_feedback'",
"80:class_g = 'Rofi'",
"80:class_g = 'Caja'",
"99:class_g = 'Google-chrome'",
"99:class_g = 'burp-StartBurp'",
"99:class_g = 'Firefox'",
"99:class_g = 'Gimp'"
];
blur-background = true;
Descargamos Hack Nerd Fonts
(tiene que ser root o usar sudo
en ese directorio):
cd /usr/local/share/fonts
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/Hack.zip
unzip Hack.zip
rm Hack.zip
cd -
Si queremos iniciar sesión usando LightDM que es el manager que usa MATE, necesitamos agregar en usr/share/xsessions/
el archivo bspwm.desktop
con un contenido como el siguiente:
[Desktop Entry]
Name=bspwm
Comment=Binary space partitioning window manager
Exec=bspwm
Type=Application
Si se instala bspwm
con apt
esto no es necesario porque ese archivo debería ser creeado automáticamente.
Cerramos sesión, volvemos a la pantalla de inicio de sesión y allí elegimos bspwm
.
touch ~/.zshrc
Para el usuario normal y root:
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >> ~/.zshrc
zsh
sudo usermod --shell /usr/bin/zsh alex
sudo su
usermod --shell /usr/bin/zsh root
ln -s /home/alex/.zshrc .zshrc
wget https://github.com/Peltoche/lsd/releases/download/0.17.0/lsd-musl_0.17.0_amd64.deb
sudo dpkg -i lsd-musl_0.17.0_amd64.deb
rm lsd-musl_0.17.0_amd64.deb
wget https://github.com/sharkdp/bat/releases/download/v0.15.0/bat_0.15.0_amd64.deb
dpkg -i bat_0.15.0_amd64.deb
rm bat_0.15.0_amd64.deb
Para el usuario normal y root:
sudo apt install fzf
git clone https://github.com/gpakosz/.tmux.git
ln -s -f .tmux/.tmux.conf
cp .tmux/.tmux.conf.local .
Mayormente notas de la guía de s4vitar en Cómo configurar un buen entorno de trabajo en Linux
.