I3 + Neovim = 🏠
Welcome to my linux dotfiles. It can be used on all distros but is best on Arch based distros.
Get the following software:
Clone the repo
git clone https://github.com/alexandrelam/dotfiles
Use stow to create symlinks
e.g:
cd dotfiles
stow nvim
Linux VimPlug:
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
Windows VimPlug :
md ~\AppData\Local\nvim\autoload
$uri = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
(New-Object Net.WebClient).DownloadFile(
$uri,
$ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath(
"~\AppData\Local\nvim\autoload\plug.vim"
)
)
Config location AppData\Local\nvim\init.vim
If no folder or file, you need to create it.
To get this config, replace init.vim
with win_init.vim
and rename the file
I use coc for autocompletion, file explorer, eslint / prettier and whole bunch of things.
⚠️ You need node to install coc
Coc plugins are installed automatically. To install more use CocInstall
or add package to g:coc_global_extensions
in plugins-config.vim
.
shortcut | action |
---|---|
, , | emmet autocomplete html tags |
ctrl p | fzf find file in dir |
gj | previous buffer |
gk | next buffer |
gx | delete buffer |
gd | jump to definition |
space a | linting info |
space c | coc commands |
ff | format |
fl | eslint auto fix |
m | create bookmark |
ù | jump to bookmark |
space+e | file explorer |
space+do | propose fixes like auto import |
shortcut | action |
---|---|
win+hjkl | changer de focus entre les fenetres |
win+1234 | swap entre les bureaux virtuels |
win+q | fermer une fenetre |
win+entre | ouvrir un nouveau terminal |
win+c | prochaine fenetre ouverte en horizontale |
win+v | prochaine fenetre ouverte en verticale |
win+r | resize mode |
win+shift+r | reload settings |
win+i | rofi menu |
win+d | d menu |
win+o | rofi opened windows |
win+s | open sound and bluetooth manager |
win+w | open browser (brave) |
win+n | open file manager |
win+space | swap between fr and us keyboard layout |
win+rightclick | resize window |
win+shift+c | toggle floating window |
win+shift+w | tab layout |
win+shift+e | default split layout |
win+shift+z | logout |
Very basic config for tmux!
ctrl-b
to ctrl-q
bacause azerty layout keyboard|
and -
The goal is to have a lightweight, lean yet effective desktop to work and have fun 😊.
It's home. And it's also lightweight enough for heavy workflow on 8go of ram (docker + node + chrome and hundreds of tabs).
Yes I used this config daily for 5 months while working on frontend dev at Okarito.
I use Arch btw.
I used it for a while but in the end I don't like it that much. I rather have i3 default status bar and dmenu. I don't really care about heavy ricing I just want the best software for my use.
When I'm not using i3, I'm using Gnome because Gnome is the best non tilingwm for me.
The following settings are settings I'm always enabling when I install Gnome:
gsettings set org.gnome.desktop.wm.preferences resize-with-right-button true
gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier '<Alt>'
gsettings set org.gnome.desktop.wm.keybindings switch-applications "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-windows "['<Alt>Tab', '<Super>Tab']"
gsettings set org.gnome.desktop.wm.keybindings switch-windows-backward "['<Alt><Shift>Tab', '<Super><Shift>Tab']"
Edit :
/etc/systemd/logind.conf
uncomment lines :
HandleLidSwitch
-> ignoreHandleLidSwitchExternalPower
-> ignoreapply changes :
systemctl kill -s HUP systemd-logind
sudo apt install imwheel
mousewheel.sh
chmod +x mousewheel.sh
./mousewheel.sh
mousewheel.sh
to startuphttps://www.youtube.com/watch?v=OlIXQRpfJQ4
install optimus-manager-qt
and bbswitch
Alt-Resize window : https://stefansundin.github.io/altdrag/
Polybar theme : https://github.com/adi1090x/polybar-themes
Rofi theme : https://github.com/adi1090x/rofi