Last active
October 11, 2015 04:58
-
-
Save danielstockton/3806775 to your computer and use it in GitHub Desktop.
i3 config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set $mod Mod4 | |
# Font | |
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 | |
# font xft:DejaVu Sans Mono 10 | |
# Volume controls | |
bindsym XF86AudioRaiseVolume exec amixer -q set Master 2dB+ unmute | |
bindsym XF86AudioLowerVolume exec amixer -q set Master 2dB- unmute | |
bindsym XF86AudioMute exec amixer -q set Master toggle | |
# Drag floating window | |
floating_modifier $mod | |
# Applications | |
bindsym $mod+d exec dmenu_run | |
bindsym $mod+t exec urxvt | |
bindsym $mod+b exec chromium | |
bindsym $mod+e exec thunar | |
bindsym $mod+x exec i3lock -c 000000 | |
# Kill | |
bindsym $mod+Shift+q kill | |
# Focus | |
bindsym $mod+h focus left | |
bindsym $mod+j focus down | |
bindsym $mod+k focus up | |
bindsym $mod+l focus right | |
# Move window | |
bindsym $mod+Shift+h move left | |
bindsym $mod+Shift+j move down | |
bindsym $mod+Shift+k move up | |
bindsym $mod+Shift+l move right | |
# Split | |
bindsym $mod+Shift+s split h | |
bindsym $mod+s split v | |
# Fullscreen | |
bindsym $mod+f fullscreen | |
# Tabbed or split | |
bindsym $mod+w layout tabbed | |
bindsym $mod+p layout toggle split | |
# Tiling/floating | |
bindsym $mod+Shift+space floating toggle | |
# Change focus (tiling/floating) | |
bindsym $mod+space focus mode_toggle | |
# Focus parent | |
bindsym $mod+a focus parent | |
# switch to workspace | |
bindsym $mod+1 workspace 1 | |
bindsym $mod+2 workspace 2 | |
bindsym $mod+3 workspace 3 | |
bindsym $mod+4 workspace 4 | |
bindsym $mod+5 workspace 5 | |
bindsym $mod+6 workspace 6 | |
bindsym $mod+7 workspace 7 | |
bindsym $mod+8 workspace 8 | |
bindsym $mod+9 workspace 9 | |
bindsym $mod+0 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 exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg 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 semicolon resize grow width 10 px or 10 ppt | |
# same bindings, but for the arrow keys | |
bindsym Left resize shrink width 10 px or 10 ppt | |
bindsym Down resize grow height 10 px or 10 ppt | |
bindsym Up resize shrink height 10 px or 10 ppt | |
bindsym Right 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" | |
# No titles or borders | |
new_window none | |
workspace 1 output LVDS | |
workspace 2 output VGA-0 | |
bar { | |
mode hide | |
modifier $mod | |
position bottom | |
status_command i3status --config ~/.i3/status.conf | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
general { | |
colors = true | |
interval = 1 | |
} | |
order = "ipv6" | |
order += "wireless wlan0" | |
order += "disk /" | |
order += "disk /home" | |
order += "volume master" | |
order += "cpu_usage" | |
order += "cpu_temperature 0" | |
order += "cpu_temperature 1" | |
order += "load" | |
order += "battery 0" | |
order += "time" | |
battery 0 { | |
format = "%status %remaining (%emptytime %consumption)" | |
last_full_capacity = true | |
low_threshold = 30 | |
} | |
ipv6 { | |
format_up = "IP: %ip" | |
} | |
wireless wlan0 { | |
format_up = "W: (%quality at %essid, %bitrate) %ip" | |
format_down = "W: down" | |
} | |
time { | |
format = "%a %d-%b-%Y %I:%M:%S %p" | |
} | |
load { | |
format = "Load: %5min" | |
} | |
cpu_usage { | |
format = "CPU: %usage" | |
} | |
cpu_temperature 0 { | |
format = "T1: %degrees °C" | |
path = "/sys/devices/platform/coretemp.0/temp2_input" | |
} | |
cpu_temperature 1 { | |
format = "T2: %degrees °C" | |
path = "/sys/devices/platform/coretemp.0/temp3_input" | |
} | |
disk "/" { | |
format = "/: %free" | |
} | |
disk "/home" { | |
format = "/home: %free" | |
} | |
volume master { | |
format = "♪: %volume" | |
device = "default" | |
mixer = "Master" | |
mixer_idx = 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment