Outils pour utilisateurs

Outils du site


i3

Documentations

Installation

/etc/default/nodm

% cat /etc/default/nodm 
# nodm configuration

# Set NODM_ENABLED to something different than 'false' to enable nodm
NODM_ENABLED=true

# User to autologin for
NODM_USER=fab

# First vt to try when looking for free VTs
NODM_FIRST_VT='7'

# X session
NODM_XSESSION=/etc/X11/Xsession

# Options for the X server
NODM_X_OPTIONS='-nolisten tcp'

# If an X session will run for less than this time in seconds, nodm will wait an
# increasing bit of time before restarting the session.
NODM_MIN_SESSION_TIME=60

~/.xinitrc

#!/bin/bash

#exec ck-launch-session awesome
#exec twm
#exec roxterm
exec i3
exec xbacklight -set 0 # ?

Configuration

~/.i3/config

% cat ~/.i3/config 
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#

# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!

set $mod Mod4

# font for window titles. ISO 10646 = Unicode
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1

# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

# start a terminal
bindsym $mod+Return exec i3-sensible-terminal

# kill focused window
bindsym $mod+Shift+A kill

# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run -nb black -nf blue -sb blue -sf white

# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+m focus right

# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

# move focused window
bindsym $mod+Shift+J move left
bindsym $mod+Shift+K move down
bindsym $mod+Shift+L move up
bindsym $mod+Shift+M move right

# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

# split in horizontal orientation
bindsym $mod+h split h

# split in vertical orientation
bindsym $mod+v split v

# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen

# change container layout (stacked, tabbed, default)
bindsym $mod+s layout stacking
bindsym $mod+z layout tabbed
bindsym $mod+e layout default

# toggle tiling / floating
bindsym $mod+Shift+space floating toggle

# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle

# focus the parent container
bindsym $mod+q focus parent

# focus the child container
#bindcode $mod+d focus child

# switch to workspace
bindsym $mod+ampersand workspace 1
bindsym $mod+eacute workspace 2
bindsym $mod+quotedbl workspace 3
bindsym $mod+apostrophe workspace 4
bindsym $mod+parenleft workspace 5
bindsym $mod+minus workspace 6
bindsym $mod+egrave workspace 7
bindsym $mod+underscore workspace 8
bindsym $mod+ccedilla workspace 9
bindsym $mod+agrave workspace 10

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10

# reload the configuration file
bindsym $mod+Shift+C reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+R restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+E exit

# resize window (you can also use the mouse for that)
mode "resize" {
        # These bindings trigger as soon as you enter the resize mode

        # Pressing left will shrink the window’s width.
        # Pressing right will grow the window’s width.
        # Pressing up will shrink the window’s height.
        # Pressing down will grow the window’s height.
        bindsym j resize shrink width 10 px or 10 ppt
        bindsym k resize grow height 10 px or 10 ppt
        bindsym l resize shrink height 10 px or 10 ppt
        bindsym m resize grow width 10 px or 10 ppt

        # same bindings, but for the arrow keys
        bindsym 113 resize shrink width 10 px or 10 ppt
        bindsym 116 resize grow height 10 px or 10 ppt
        bindsym 111 resize shrink height 10 px or 10 ppt
        bindsym 114 resize grow width 10 px or 10 ppt

        # back to normal: Enter or Escape
        bindsym Return mode "default"
        bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
        status_command i3status
}

#bindsym Print exec scrot -q 100
bindsym Print exec scrot

/etc/i3status.conf ou ~/.config/i3status/config

general {
        colors = true
        interval = 5
}

#order += "ipv6"
order += "disk /"
#order += "run_watch DHCP"
#order += "run_watch VPN"
#order += "wireless wlan0"
#order += "ethernet eth0"
order += "battery 0"
#order += "load"
order += "time"

wireless wlan0 {
        format_up = "W: (%quality at %essid) %ip"
        format_down = "W: down"
}

ethernet eth0 {
        # if you use %speed, i3status requires root privileges
        format_up = "E: %ip (%speed)"
        format_down = "E: down"
}

battery 0 {
        format = "%status %percentage %remaining"
}

run_watch DHCP {
        pidfile = "/var/run/dhclient*.pid"
}

run_watch VPN {
        pidfile = "/var/run/vpnc/pid"
}

time {
        format = "%a %d/%m/%Y / %H:%M:%S"

}

load {
        format = "%1min"
}

disk "/" {
        format = "%free"
}

Thèmes de couleurs

Thèmes GTK

~/.gtkrc-2.0

# -- THEME AUTO-WRITTEN DO NOT EDIT
include "/usr/share/themes/ThinIce/gtk-2.0/gtkrc"

include "/home/fab/.gtkrc.mine"

# -- THEME AUTO-WRITTEN DO NOT EDIT

~/.gtkrc.mine

gtk-toolbar-style = GTK_TOOLBAR_ICONS

Infos

Autres

~/.Xdefaults

Très bordélique et impropre à la consommation :

XTerm*termName: xterm-256color
xterm*geometry: 82x20
xterm*faceName: xft::pixelsize=10:antialias=false
xterm*font: -*-envy-code-r-*-*-8-*-*-*-*-*-*-*
!xterm*font: -misc-tamsyn-medium-r-normal--12-87-100-100-c-60-*
xterm*dynamicColors: true
xterm*utf8: 2
xterm*eightBitInput: true
xterm*saveLines: 512
xterm*scrollKey: true
xterm*scrollTtyOutput: true
xterm*scrollBar: false
xterm*rightScrollBar: false
xterm*jumpScroll: false
xterm*multiScroll: true
xterm*toolBar: false
*background: #262626
*foreground: #497BF7


URxvt.urlLauncher: firefox

*.colorBD: #CFCFCF
*.colorUL: #A0A0A0
*.colorIT: #686868

! Black
*color0: #111111
*color8: #666666

! Red
*color1: rgb:d3/62/65
*color9: rgb:ef/81/71

! Green
*color2: #aece91
*color10: #cfefb3

! Yellow
*color3: rgb:e7/e1/8c
*color11: rgb:ff/f7/96

! Blue
*color4: #5297cf
*color12: #74b8ef

! Magenta
*color5: #963c59
*color13: #b85e7b

! Cyan
*color6: #5E7175
*color14: #A3BABF

! White
*color7: #bebebe
*color15: #ffffff

!## teh URxvt stuff
URxvt.font : -*-fixed-*-*-*-12-*-*-*-*-*-*-*
URxvt.iconFile:    /usr/share/icons/Clarity/scalable/apps/terminal.svg
URxvt.perl-ext-common:  default,matcher
URxvt.url-launcher:      /usr/bin/firefox
URxvt.matcher.button:   1
URxvt.keysym.C-Delete:  perl:matcher:last
URxvt.keysym.M-Delete:  perl:matcher:list
URxvt.colorUL: #4682B4
urxvt.geometry:          54x15
URxvt.borderless:        true
urxvt*scrollBar:         false
URxvt.scrollBar_right : False
URxvt.scrollBar_floating : False
URxvt.scrollstyle : plain
!## teh transparency stuff
!URxvt.inheritPixmap: true
!URxvt.tintColor: white
!URxvt.shading: 40
URxvt.background: #262626
URxvt.foreground: #497BF7
!## teh dpi stuff
Xft.dpi:        96
Xft.antialias:  true
Xft.rgba:       rgb
Xft.hinting:    true
Xft.hintstyle:  hintslight

Personnalisation

article/linux/i3.txt · Dernière modification: 2017/02/25 17:17 par fab