This repository contains the configuration file (config
) for the i3 window manager, tailored for the Manjaro Linux distribution. Below is an explanation of the keybindings and their corresponding code snippets in the configuration file.
- i3 Window Manager Configuration File Boilerplate
- Keybindings
- Editing and Customizing the Configuration
- Copying the Configuration to the Correct Location
-
Mod+Return: Open terminal (Alacritty)
bindsym $mod+Return exec alacritty
-
Mod+Shift+q: Kill focused window
bindsym $mod+Shift+q kill
-
Mod+Shift+r: Restart i3
bindsym $mod+Shift+r restart
-
Mod+Shift+e: Exit i3
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Do you really want to exit i3?' -b 'Yes, exit i3' 'i3-msg exit'"
-
Mod+Shift+c: Reload configuration file
bindsym $mod+Shift+c reload
-
Mod+1, Mod+2, Mod+3, Mod+4: Switch to workspaces 1, 2, 3, 4
bindsym $mod+1 workspace number 1 bindsym $mod+2 workspace number 2 bindsym $mod+3 workspace number 3 bindsym $mod+4 workspace number 4
-
Mod+Right, Mod+Left: Move to next/previous workspace
bindsym $mod+Right workspace next bindsym $mod+Left workspace prev
-
Mod+Shift+f: Launch Firefox
bindsym $mod+Shift+f exec firefox
-
Mod+Shift+v: Launch VSCode
bindsym $mod+Shift+v exec code
-
Mod+Shift+m: Launch Thunar (File Manager)
bindsym $mod+Shift+m exec thunar
-
Mod+j: Focus left
bindsym $mod+j focus left
-
Mod+k: Focus down
bindsym $mod+k focus down
-
Mod+l: Focus up
bindsym $mod+l focus up
-
Mod+;: Focus right
bindsym $mod+semicolon focus right
-
Mod+Shift+j: Move window left
bindsym $mod+Shift+j move left
-
Mod+Shift+k: Move window down
bindsym $mod+Shift+k move down
-
Mod+Shift+l: Move window up
bindsym $mod+Shift+l move up
-
Mod+Shift+;: Move window right
bindsym $mod+Shift+semicolon move right
-
Mod+b: Switch to stacking layout
bindsym $mod+b layout stacking
-
Mod+s: Switch to stacking layout
bindsym $mod+s layout stacking
-
Mod+w: Switch to tabbed layout
bindsym $mod+w layout tabbed
-
Mod+e: Toggle split layout
bindsym $mod+e layout toggle split
-
Mod+f: Toggle fullscreen for the focused window
bindsym $mod+f fullscreen toggle
-
Mod+a: Focus the parent container
bindsym $mod+a focus parent
- h: Shrink window width
- j: Grow window height
- k: Shrink window height
- l: Grow window width
- Enter: Exit resize mode
- Escape: Exit resize mode
To edit and customize the i3 configuration file:
-
Clone this repository to your local machine using Git:
git clone https://github.com/00-Python/I3-Config.git
-
Navigate to the cloned repository directory:
cd I3-Config/
-
Open the
config
file in a text editor of your choice. -
Save the changes after customization.
You can customize keybindings, colors, fonts, and other settings according to your preferences.
Customizing the appearance of your i3 system allows you to personalize various aspects such as backgrounds, toolbar fonts, system colors, menus, and more. Below are detailed steps and options for customization:
-
Wallpaper: Choose a wallpaper that suits your taste. You can find wallpapers online or use your own images.
-
Set Wallpaper: Use a tool like
feh
to set the wallpaper:feh --bg-fill /path/to/your/wallpaper.jpg
- Font Selection: Modify the font settings in your i3 configuration file. You can specify the font family and size:
font pango:Roboto Mono 10
- Color Scheme: Adjust the color scheme in your i3 configuration file. Customize variables such as
$bg-color
,$text-color
,$focused-bg-color
,$focused-text-color
, etc.:set $bg-color #2E3440 set $text-color #D8DEE9 set $focused-bg-color #3B4252 set $focused-text-color #E5E9F0
- Dmenu Customization: Customize the appearance of Dmenu using command-line options in your i3 configuration file. You can modify fonts, colors, and more:
bindsym $mod+d exec --no-startup-id dmenu_run -fn 'Roboto Mono-10' -nb '$bg-color' -nf '$text-color' -sb '$focused-bg-color' -sf '$focused-text-color'
-
Bar Settings: Modify the appearance of the i3 status bar by adjusting settings in your configuration file. You can change colors, fonts, and add or remove status components:
bar { status_command i3status colors { background $bg-color statusline $text-color } }
-
Window Borders: Customize the appearance of window borders by adjusting border styles and colors:
default_border pixel 2 default_floating_border pixel 2
-
Transparency: Add transparency effects to windows and menus for a sleeker look. You can use tools like
compton
for this purpose.
- Save and Restart: After making changes to your i3 configuration file, save the file and restart i3 for the changes to take effect:
i3-msg restart
-
i3blocks: Use i3blocks to create customizable status bars with various plugins for system information such as CPU usage, memory usage, battery status, etc.
-
Rofi: Rofi is a versatile application launcher that can also be used as a window switcher, SSH launcher, and more. Customize Rofi themes and colors to match your system's look.
-
Polybar: Polybar is another popular status bar that offers extensive customization options, including fonts, colors, modules, and more.
Once you've made your customizations, follow these steps to copy the configuration to the correct location:
-
Navigate to the i3 configuration directory:
cd ~/.config/i3/
-
Make a backup of your existing configuration file (optional but recommended):
cp config config_backup
-
Copy the modified
config
file from the cloned repository to the i3 configuration directory:cp <path_to_cloned_repository>/config .
-
Restart i3 for the changes to take effect:
i3-msg restart
Now, your customized i3 configuration should be applied.