/configs

My own configs

Primary LanguageShell

Configs



Arrow keys to JKLM on Ubuntu 24.04

1. No Wayland

When you log in for the first time, ensure that you're not using Ubuntu Wayland. Check the bottom-right corner and choose ubuntu (X11)

2. Create the keybinding file in the home directory

touch .xmodmap

Fill it with the keybindings (French keyboard):

keycode 66 = Mode_switch
keycode 44 = j J Left
keycode 46 = l L Right
keycode 45 = k K Up
keycode 47 = m M Down

3. Create the executable file

touch .xmodmap.sh

Fill it with this simple command :

xmodmap ~/.xmodmap

4. Permission

sudo chmod +x ~/.xmodmap.sh

5. Startup application

Create a startup application with this command inside :

sh -c "$HOME/.xmodmap.sh"



Custom shorcut Ubuntu

super + T => gnome-terminal --maximize



Zsh

You need to have curl and git already installed

1. Install Zsh

sudo apt-get update
sudo apt-get install zsh 

2. Define Zsh as default shell

chsh -s $(which zsh)

3. Install Oh My Zsh

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

4. Choose your theme

Chosse your theme here : https://github.com/ohmyzsh/ohmyzsh/wiki/themes

# .zshrc
ZSH_THEME="robbyrussell"

5. Install plugins

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

6. Enable plugins

# .zshrc
plugins=(git zsh-autosuggestions zsh-syntax-highlighting zsh-completions)

7. Apply changes

source ~/.zshrc



Vinium

1. Download Vinium extension

Firefox : https://addons.mozilla.org/en-US/firefox/addon/vimium-ff/
Google : https://chromewebstore.google.com/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb?hl=en

2. Restore mapping

Go in the Vinium options and upload vinium-options.json to restore the custom mapping



PHPStorm

1. Create keymaps folder

mkdir ~/.config/JetBrains/PhpStorm<version>/keymaps

2. Add my own keymaps

Copy Perso.xml to keymaps folder, restart PHPStorm and choose the keybindings in the settings

3. JKLM Mapping

In order for the JKLM to arrows mapping to work, you need to check the "Use national layouts for shortcuts" box

Screenshot from 2024-11-13 15-04-50

4. Setup tests with docker compose

Setting up PhpStorm to run PHPUnit tests inside an already running docker container