Setting up all the tools that rock

Terminal

sudo pacman -Su
sudo pacman -S git xclip

Oh-My-ZSH

https://ohmyz.sh/#install

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

PowerLevel10k

https://github.com/romkatv/powerlevel10k?tab=readme-ov-file#oh-my-zsh
Don t forget to update the theme in .zshrc

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

ZSH Auto-Suggestions

https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md#oh-my-zsh
Update the plugin list

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

ZSH Syntax Highlighting

https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md#oh-my-zsh
Update the plugin list

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

Tmux

sudo pacman -S tmux

Get the config file from here and copy it in ~/.config/tmux/tmux.conf

Tmux Plugin Manager

https://github.com/tmux-plugins/tpm

git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
# type this in terminal if tmux is already running
tmux source ~/.tmux.conf
# Install the plugins once tmux is running ( Control - a, capital I)
C-a I

Nvidia on Manjaro

Install Nvidia proprietary drivers. Solves the black screen after sleep https://wiki.manjaro.org/index.php/Configure_Graphics_Cards

sudo mhwd -a pci nonfree 0300

Custom Keyboard config

I just found out through this video a fantastic tool to reconfigure my keyboard.
Not only it can make useless keys like CAPS LOCK useful again but it can also help fine tuning your keyboard layout.

In my case I have a Keychron K3 with a ISO UK layout and my ‘|’ key between left shift and ‘Z’ is interpreted as ‘<>’. I am sure there is a way to directly edit the layout or import the correct one but to be honest… I was lazy. So when I watched this video, I seized the opportunity to fix this problem as well as tweaking my CAPS LOCK key. Lets dive in.

Kanata

The project is called kanata and is written in Rust, so let start by installing Rust.

sudo pacman -S rust
# or download it from here https://www.rust-lang.org/tools/install by typing
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

The doc can be found here
And this site can help you find key name/code/numer if your layout is not directly covered in the doc. This one as well.

[Unit]
Description=Kanata keyboard remapper
Documentation=https://github.com/jtroo/kanata

[Service]
Environment=PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:%h/.cargo/bin
Environment=DISPLAY=:0
Type=simple
ExecStart=/usr/bin/sh -c 'exec $$(which kanata) --cfg $${HOME}/.config/kanata/config.kbd'
Restart=no

[Install]
WantedBy=default.target
(defsrc
  caps
  IntlBackslash
)

(defalias
  escctrl (tap-hold 100 100 esc lctrl)
)

(deflayer base
  @escctrl
  \
)

Hyprland

Warning : Does not works with NVidia drivers at the moment.
This starter script is a really good place to start playing around with an out of the box config.
https://github.com/mylinuxforwork/hyprland-starter

This video is more like a step-by-step “build your own config”
https://www.youtube.com/watch?v=2CP_9-jCV6A