i3wm-config

中文介绍


install & configure

install softwares

You can search for package names using the package manager, or search keywords on pkgs.org to determine the package name.

configure i3

or

Introductions for the configs

Some important notes about this configuration.

shortcuts

In this configuration, $mod key is Mod4Generally , it is “Windows logo” key or “Super” key, Alt is mod1, Enter is Return.

Tip: Install xorg-xev, exec command xev in the terminal, then press any key, it will show the key’s name.

For other i3wm default shortcuts , see the i3wm related documentation or view the config file.


The following are the custom shortcuts in this configuration file (Reference vim and windows usage habits).

wallpaper and lock screen

power management

see i3/config , it has a line , you can adjust the seconds :

exec –no-startup-id xset dpms 333 666

In idle state , screen will turn off after 333 seconds , system will suspend after 666 seconds.

You can also use mate-power-manager (or other tool) for power management.

see more info about power management:

terminal

If you want a transparent background terminal , need to install xcompmgr (or compton .etc ) . It is recommended to select terminals that are more convenient to set transparency, such as roxterm , xfce4-terminal and terminator .

After press terminal shortcut, It tries to start one of the following in the order(see i3wm-termial):

$TERMINAL (this is a non-standard variable)

x-terminal-emulator (only present on Debian and derivatives)

urxvt

rxvt

termit

terminator

Eterm

aterm

uxterm

xterm

gnome-terminal

roxterm

xfce4-terminal

termite

lxterminal

mate-terminal

terminology

st

qterminal

lilyterm

tilix

terminix

konsole

tray icons

Open i3/config , find this line :

exec –no-startup-id xrandr –output eDP1 –primary

eDP1 is the display device’s name , you can use xrandr | grep connected to get your display device’s name .

this is my display device info:

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
eDP1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 310mm x 170mm

so , eDP1 is my display device’s name , if your display device’s name is not eDP1 , you should modify this line exec --no-startup-id xrandr --output eDP1 --primary ,use your display device’s name instead of eDP1.

Or you can try these comands for modification(xrandrneedxorg-xrandr):

name=`xrandr | sed -n '2p' | cut -d ' ' -f 1`
sed -i 's/eDP1/'"$name"'/' ~/.config/i3/config

If it show xrandr: command not found , install xorg-xrandr , then excuted commands above again.

Other Tips

edit ~/.Xresources add (example) :

Xft.dpi: 144 Xft.autohint: 0 Xft.lcdfilter: lcddefault Xft.hintstyle: hintfull Xft.hinting: 1 Xft.antialias: 1 Xft.rgba: rgb

144 is dpi (adjust according to the actual display situation). Then edit~/.xinitrc , add :

xrdb -merge ~/.Xresources

Of course, the text under the high screen is too small, you can also adjust the font size (you can use lxappearance).