Skip to content

Instantly share code, notes, and snippets.

@efazati
Last active February 22, 2017 06:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save efazati/3aaf6c4995bf88edabfe620e7f4adef4 to your computer and use it in GitHub Desktop.
Save efazati/3aaf6c4995bf88edabfe620e7f4adef4 to your computer and use it in GitHub Desktop.
i3
# 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
set $mark Mod1
set $screen0 HDMI-1
set $screen1 DVI-I-1
#set $screen1 VGA1
#set $screen0 LVDS1
set $w0 0:www
set $w1 1:www
set $w2 2:files
set $w3 3:code
set $w4 4:telegram
set $w5 5:5
set $w6 6:6
set $w7 7:7
set $w8 8:misc
set $w9 9:Terminal
set $jail jail
#force_xinerama yes
# font for window titles. ISO 10646 = Unicode
#font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
font xft:Tahoma 10
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec urxvt
# kill focused window
bindsym $mod+q kill
# start dmenu (a program launcher)
bindsym $mod+space exec --no-startup-id dmenu_run
bindsym $mod+F1 exec --no-startup-id firefox
#bindsym $mod+Shift+F1 exec --no-startup-id chromium
bindsym $mod+F2 exec --no-startup-id thunar
bindsym $mod+F3 exec --no-startup-id subl
bindsym $mod+b exec --no-startup-id xfce4-screenshooter
bindsym $mod+F4 exec --no-startup-id ~/apps/Telegram/Telegram
#bindsym $mod+Ctrl+F2 exec --no-startup-id thunar-volman-settings
#bindsym $mod+Shift+F2 exec bingpic.sh
#pm-suspend is in sudoers NOPASSWORD
bindsym $mod+F6 exec --no-startup-id sudo pm-suspend
#bindsym $mod+t exec --no-startup-id ~/.i3/znotice.sh
#bindsym $mod+Ctrl+t exec --no-startup-id ~/.i3/nowplaying.sh
bindsym $mod+l exec i3lock
# 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+colon 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+Shift+x fullscreen
# change container layout (stacked, tabbed, default)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout default
# toggle tiling / floating
bindsym $mod+Shift+T floating toggle
# change focus between tiling / floating windows
bindsym $mod+f focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
bindsym XF86AudioPlay exec mpc toggle
bindsym XF86AudioStop exec mpc stop
bindsym XF86AudioPrev exec mpc prev
bindsym XF86AudioNext exec mpc next
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
# focus the child container
#bindcode $mod+d focus child
# switch to workspace
bindsym $mod+1 workspace $w1
bindsym $mod+2 workspace $w2
bindsym $mod+3 workspace $w3
bindsym $mod+4 workspace $w4
bindsym $mod+5 workspace $w5
bindsym $mod+6 workspace $w6
bindsym $mod+7 workspace $w7
bindsym $mod+8 workspace $w8
bindsym $mod+9 workspace $w9
bindsym $mod+0 workspace $w0
# move focused container to workspace
bindsym $mod+Shift+exclam move workspace $w1
bindsym $mod+Shift+at move workspace $w2
bindsym $mod+Shift+numbersign move workspace $w3
bindsym $mod+Shift+dollar move workspace $w4
bindsym $mod+Shift+percent move workspace $w5
bindsym $mod+Shift+asciicircum move workspace $w6
bindsym $mod+Shift+ampersand move workspace $w7
bindsym $mod+Shift+asterisk move workspace $w8
bindsym $mod+Shift+parenleft move workspace $w9
bindsym $mod+Shift+parenright move workspace $w0
bindsym $mod+comma move workspace to output up
bindsym $mod+period move workspace to output down
# 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+Q restart
# exit i3 (logs you out of your X session)
bindsym $mod+Ctrl+Q exit
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# They resize the border in the direction you pressed, e.g.
# when pressing left, the window is resized so that it has
# more space on its left
bindsym j resize shrink left 10 px or 10 ppt
bindsym Shift+J resize grow left 10 px or 10 ppt
bindsym k resize shrink down 10 px or 10 ppt
bindsym Shift+K resize grow down 10 px or 10 ppt
bindsym l resize shrink up 10 px or 10 ppt
bindsym Shift+L resize grow up 10 px or 10 ppt
bindsym semicolon resize shrink right 10 px or 10 ppt
bindsym Shift+colon resize grow right 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink left 10 px or 10 ppt
bindsym Shift+Left resize grow left 10 px or 10 ppt
bindsym Down resize shrink down 10 px or 10 ppt
bindsym Shift+Down resize grow down 10 px or 10 ppt
bindsym Up resize shrink up 10 px or 10 ppt
bindsym Shift+Up resize grow up 10 px or 10 ppt
bindsym Right resize shrink right 10 px or 10 ppt
bindsym Shift+Right resize grow right 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# $i3-theme-window
# tango dark
set $darkblue #204A87
set $darkbrown #8F5902
set $darkgreen #4E9A06
set $darkmagenta #5C3566
set $darkred #A40000
set $darkyellow #C4A000
set $darkorange #CE5C00
# tango light
set $lightblue #729FCF
set $lightbrown #E9B96E
set $lightgreen #8AE234
set $lightmagenta #AD7FA8
set $lightred #EF2929
set $lightyellow #FCE94F
set $lightorange #FCAF3E
# tango normal
set $blue #3465A4
set $brown #C17D11
set $green #73D216
set $magenta #75507B
set $red #CC0000
set $yellow #EDD400
set $orange #F57900
# tango mono
set $black #555753
set $grey #BABDB6
set $white #EEEEEC
set $darkblack #2E3436
set $darkgrey #888A85
set $darkwhite #D3D7CF
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
tray_output HDMI-1
strip_workspace_numbers yes
status_command i3status
position top
separator_symbol ":|:"
colors {
# <workclass> <border> <backg> <text>
focused_workspace $lightblue $blue $white
active_workspace $darkgrey $black $grey
inactive_workspace $black $darkblack $grey
urgent_workspace $lightred $red $white
background #222222
separator #444444
statusline $darkgrey
}
}
workspace "$w1" output $screen0
workspace "$w2" output $screen0
workspace "$w3" output $screen1
workspace "$w4" output $screen0
workspace "$w5" output $screen1
workspace "$w6" output $screen0
workspace "$w7" output $screen1
workspace "$w8" output $screen0
workspace "$w9" output $screen1
workspace "$w0" output $screen1
assign [class="Sublime"] $w3
assign [class="subl"] $w3
assign [class="Telegram"] $w4
assign [class="Chromium"] $w0
assign [class="Firefox"] $w1
assign [class="Thunar"] $w2
assign [class="Spacefm"] $w2
assign [class="Firefox" instance="Firebug"] $jail
assign [class="Thunderbird"] $w6
assign [class="Geany"] $w5
assign [class="Hexchat"] $w4
assign [class="Xchat"] $w4
assign [class="Vlc"] $w3
assign [class="Totem"] $w3
assign [class="xbmc.bin"] $w3
for_window [class="Guake"] floating enable
#for_window [class="URxvt"] border pixel 1
for_window [class="Emacs"] border none
for_window [class="Hotot-gtk3"] border none
for_window [class="Workrave"] border none
for_window [class="Workrave"] floating enable
for_window [instance="Download" class="Firefox"] floating enable
# for_window [class="Xfce4-notifyd"] border none
for_window [class="Xfce4-notifyd"] floating enable
for_window [class="Lazarus"] floating enable
for_window [instance="dropdown_urxvt"] move to scratchpad, border 1pixel
for_window [instance="dropdown_urxvt"] focus
bindsym F12 [instance="dropdown_urxvt"] scratchpad show
#bindsym F12 exec guake,[class="Guale"] scratchpad show
focus_follows_mouse yes
exec_always --no-startup-id xsetroot -solid '#000000'
# <clientclass> <border> <backg> <text> <indicator>
client.focused $lightblue $blue $white $lightblue
client.focused_inactive $darkgrey $black $grey $darkgrey
client.unfocused $black $darkblack $grey $darkgrey
client.urgent $lightred $red $white $lightred
exec --no-startup-id ~/.config/i3/i3rc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment