Comandos
Comandos
cd /home/s4vitar/Descargas/
git clone https://github.com/baskerville/bspwm.git
git clone https://github.com/baskerville/sxhkd.git
cd bspwm/
make
sudo make install
cd ../sxhkd/
make
sudo make install
mkdir ~/.config/bspwm
mkdir ~/.config/sxhkd
cd /home/s4vitar/Descargas/bspwm/
cp examples/bspwmrc ~/.config/bspwm/
chmod +x ~/.config/bspwm/bspwmrc
cp examples/sxhkdrc ~/.config/sxhkd/
# terminal emulator
super + Return
gnome-terminal
# program launcher
super + d
rofi -show run
#
# bspwm hotkeys
#
# quit/restart bspwm
super + alt + {q,r}
bspc {quit,wm -r}
#
# state/flags
#
#
# focus/swap
#
#
# preselect
#
#
# move/resize
#
# Custom move/resize
alt + super + {Left,Down,Up,Right}
/home/s4vitar/.config/bspwm/scripts/bspwm_resize {west,south,north,east}
#
-----------------------------------------------------------------------------------
-------------
mkdir ~/.config/bspwm/scripts/
touch ~/.config/bspwm/scripts/bspwm_resize; chmod +x
~/.config/bspwm/scripts/bspwm_resize
case "$1" in
west) dir=right; falldir=left; x="-$step"; y=0;;
east) dir=right; falldir=left; x="$step"; y=0;;
north) dir=top; falldir=bottom; x=0; y="-$step";;
south) dir=top; falldir=bottom; x=0; y="$step";;
esac
bspc node -z "$dir" "$x" "$y" || bspc node -z "$falldir" "$x" "$y"
#
-----------------------------------------------------------------------------------
--------------
cd /home/s4vitar/Descargas/
git clone --recursive https://github.com/polybar/polybar
cd polybar/
mkdir build
cd build/
cmake ..
make -j$(nproc)
sudo make install
10. Configuramos un poco la terminal e instalamos las Hack Nerd Fonts, además del
Firefox (hay que descargarse la última versión, también instalaremos firejail con
'apt install firejail' con el objetivo de lanzar firefox bajo este contexto
enjaulado con sxhkd). [Las fuentes de Hack Nerd Fonts deben ir descomprimidas en
/usr/local/share/fonts/, una vez hecho hay que ejecutar el comando 'fc-cache -v']
13. Instalamos 'feh' con 'apt install feh' para poder cargar fondos de pantalla.
mkdir ~/.config/polybar
cd ~/Descargas/blue-sky/polybar/
cp * -r ~/.config/polybar
echo '~/.config/polybar/./launch.sh' >> ~/.config/bspwm/bspwmrc
cd fonts
sudo cp * /usr/share/fonts/truetype/
fc-cache -v
mkdir ~/.config/picom
cd ~/.config/picom
cp ~/Descargas/blue-sky/picom.conf .
17. Configuramos los colores de la polybar (paleta central), además de las paletas
deseadas.
[module/tumodulo]
type = custom/script
interval = 2
exec = ~/.config/bin/binario.sh
#!/bin/sh
#!/bin/sh
mkdir -p ~/.config/rofi/themes
cp ~/Descargas/blue-sky/nord.rasi ~/.config/rofi/themes
cd ~/Descargas/
git clone https://github.com/joelburget/slimlock.git
cd slimlock/
sudo make
sudo make install
cd ~/Descargas/blue-sky/slim
sudo cp slim.conf /etc/
sudo cp slimlock.conf /etc
sudo cp -r default /usr/share/slim/themes
23. Cambiamos el tipo de shell por defecto tanto para root como para el usuario con
bajos privilegios
# POWERLEVEL9K_CONTEXT_PREFIX='%246Fwith '
cd .config/nvim/
wget https://github.com/arcticicestudio/nord-vim/archive/master.zip
unzip master.zip
rm master.zip
mv nord-vim-master/colors/ .
rm -r nord-vim-master/
wget https://raw.githubusercontent.com/Necros1s/lotus/master/lotus.vim
wget https://raw.githubusercontent.com/Necros1s/lotus/master/lotusbar.vim
wget https://raw.githubusercontent.com/Necros1s/lotus/master/init.vim (Quitamos las
líneas del plug)
Añadimos justo al final del 'init.vim' la línea 'syntax on' para la detección de
sintaxis.
[TODO ESTE PROCESO HAY QUE HACERLO TAMBIÉN COMO EL USUARIO ROOT]
Incorporamos posteriormente las siguientes líneas al final del zshrc para que al
salir del nvim no se quede el cursor en modo Block:
# Start with beam shape cursor on zsh startup and after every command.
zle-line-init() { zle-keymap-select 'beam'}
29. Whichsystem.py
https://github.com/Akronox/WichSystem.py
30. fastTCPScan.go