Skip to content

Instantly share code, notes, and snippets.

@vahit
Created June 23, 2014 17:11
Show Gist options
  • Save vahit/c94ec429670469212695 to your computer and use it in GitHub Desktop.
Save vahit/c94ec429670469212695 to your computer and use it in GitHub Desktop.
i3config
# 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. Will also be used by the bar unless a different font
# is used in the bar {} block below. ISO 10646 = Unicode
#font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, if you need a lot of unicode glyphs or
# right-to-left text rendering, you should instead use pango for rendering and
# chose an xft font, such as:
#font xft:Iranian Sans 10
font xft:Inconsolata 9
#font xft:Source Code pro 9
#font pango:FreeFarsi 16
#font xft:ubuntu 10
# 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+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run
bindsym $mod+i exec irssi
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon 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+semicolon 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
# default orientation
default_orientation vertical
# default layout mode for new containers
workspace_layout tabbed
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# 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+a focus parent
# focus the child container
#bindcode $mod+d focus child
# switch to workspace
bindsym $mod+1 workspace 1:www
bindsym $mod+2 workspace 2:term
bindsym $mod+3 workspace 3:dev
bindsym $mod+4 workspace 4:conv
bindsym $mod+5 workspace 5:mm
bindsym $mod+6 workspace 6:vm
bindsym $mod+7 workspace 7:ot
bindsym $mod+8 workspace 8:dl
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1:www
bindsym $mod+Shift+2 move container to workspace 2:term
bindsym $mod+Shift+3 move container to workspace 3:dev
bindsym $mod+Shift+4 move container to workspace 4:conv
bindsym $mod+Shift+5 move container to workspace 5:mm
bindsym $mod+Shift+6 move container to workspace 6:vm
bindsym $mod+Shift+7 move container to workspace 7:ot
bindsym $mod+Shift+8 move container to workspace 8:dl
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"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
mode dock
modifier Mod4
position top
# font xft:Source Code Pro 9
font xft:PixelSplitter 7.5
workspace_buttons yes
}
# Tacke screenshot x
#bindsym --release $mod+x exec --no-startup-id import /tmp/screenshot.png
bindsym --release $mod+Print exec --no-startup-id import ~/Pictures/screenshots/screenshot-`date "+%H-%M-%S"`.png
bindsym --release Print exec import -window root ~/Pictures/screenshots/screenshot-`date "+%H-%M-%S"`.png
# Assign FireFox to workspace 1
assign [class="Firefox"] 1:www
# Assign Urxvt to workspace 2
assign [class="URxvt"] 2:term
# Assign Emacs to workspace 3
assign [class="Emacs"] 3:dev
# Assign Emacs to workspace 3
assign [class="Evince"] 3:dev
# Assign Libreoffice to workspace 3
assign [class="OpenOffice"] 3:dev
# Assign Thunderbird to workspace 4
assign [class="Thunderbird"] 4:conv
# Assign Hotot-qt to workspace 4
assign [class="Hotot"] 4:conv
# Assign Xchat to workspace 4
assign [title="XChat"] 4:conv
# Assign hexchat to workspace 4
assign [class="Hexchat"] 4:conv
# Assign Transmission-gtk to workspace 8
assign [title="Transmission"] 8:dl
# Assing vlc to workspace 5
assign [class="Vlc"] 5:mm
# Assing mplayer to workspace 5
assign [class="MPlayer"] 5:mm
# Assign xbmc to workspace 5
assign [class="xbmc.bin"] 5:mm
# Assign virtualbox to workspace 6
assign [class="VirtualBox"] 6:vm
# Assign spacefm to workspace 7
assign [class="Spacefm"] 7:ot
# Focus follows mounse
focus_follows_mouse no
# Running Firefox with $mod+shift+f
bindsym $mod+shift+f exec firefox
# Running Thunderbird with $mod+shift+t
bindsym $mod+shift+t exec thunderbird
# Running Hotot with $mod+shift+h
bindsym $mod+shift+h exec hotot-qt
# Running Xchat with $mod+shift+x
bindsym $mod+shift+x exec hexchat
# Running Emacs with $mod+shift+E
bindsym $mod+shift+M exec emacs
# Shortcus for MPC (MPD Client)
bindsym XF86AudioStop exec mpc stop
bindsym XF86AudioPlay exec mpc toggle
bindsym $mod+KP_Add exec mpc volume +2
bindsym $mod+KP_Subtract exec mpc volume -2
#bindsym $mod+Alt_L+Right exec mpc volume +5
bindsym XF86AudioNext exec mpc next
bindsym XF86AudioPrev exec mpc prev
#bindsym XF86Forward exec mpc seek +2%
#bindsym XF86Back exec mpc seek -2%
bindsym $mod+greater exec mpc seek +00:00:10
bindsym $mod+less exec mpc seek -00:00:10
bindsym XF86HomePage exec spacefm
#bindsym $mod+KP_Add exec /home/vahit/Programs/alsa_vol +
#bindsym $modKP_Subtract exec /home/vahit/Programs/alsa_vol -
bindsym XF86AudioLowerVolume exec amixer set Master 1dB-
bindsym XF86AudioRaiseVolume exec amixer set Master 1dB+
bindsym $mod+KP_0 exec amixer set Master toggle
exec --no-startup-id sh ./fehbg.sh
bindsym $mod+b exe tweet update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment