Skip to content

Instantly share code, notes, and snippets.

@hernandof
Created March 14, 2016 17:37
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 hernandof/5aaa14a674a085b1413f to your computer and use it in GitHub Desktop.
Save hernandof/5aaa14a674a085b1413f to your computer and use it in GitHub Desktop.
# main
set $mod Mod4
set $ws workspace
# workspace definitions
set $ws1 1: console
set $ws2 2: vim
set $ws3 3: logs
set $ws4 4: browser
set $ws5 5: mail
set $ws6 6: graphics
set $ws7 7: misc
set $ws8 8: misc
set $ws9 9: misc
set $ws10 10: misc
# 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+exclam move workspace 1
bindsym $mod+Shift+at move workspace 2
bindsym $mod+Shift+numbersign move workspace 3
bindsym $mod+Shift+dollar move workspace 4
bindsym $mod+Shift+percent move workspace 5
bindsym $mod+Shift+asciicircum move workspace 6
bindsym $mod+Shift+ampersand move workspace 7
bindsym $mod+Shift+asterisk move workspace 8
bindsym $mod+Shift+parenleft move workspace 9
bindsym $mod+Shift+parenright move workspace 10
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
# move focused 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 in horizontal orientation
bindsym $mod+o split h
# split in vertical orientation
bindsym $mod+p split v
# 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
# screenshot
bindsym Print exec scrot ~/Pictures/Screenshots/screenshot_%Y_%m_%d_%H_%M_%S.png
# volume controls
bindsym XF86AudioRaiseVolume exec amixer -q -D pulse set Master playback 2%+ unmute
bindsym XF86AudioLowerVolume exec amixer -q -D pulse set Master playback 2%- unmute
bindsym XF86AudioMute exec amixer -q -D pulse set Master mute
# browser
bindsym XF86HomePage exec google-chrome
# mail
bindsym XF86Mail exec thunderbird
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run
assign [window_role="^browser$"] → $ws4
assign [class="^Mail$"] → $ws5
assign [class="^Gimp$"] → $ws8
for_window [window_role="pop-up"] floating enable
exec --no-startup-id nm-applet
################################################################################
# BAR
################################################################################
bar {
status_command i3status
position bottom
colors {
background #000000
focused_workspace #333333 #222222 #00ffff
inactive_workspace #222222 #111111 #666666
}
}
################################################################################
# THEME
#################################################################################
set $c_urg #00ff00
set $c_fg2 #508000
set $R_fg1 #FC0053
set $c_bg4 #909090
set $c_bg3 #606060
set $c_bg2 #303030
set $c_bg1 #000000
set $magenta = #FC0053
set $negro = #000000
set $gris = #606060
#Windows
new_window 1pixel
new_float 1pixel
#colors
#class border backgr. text indicator
client.focused #444444 #333333 #ffffff
client.unfocused #444444 #111111 #444444
client.focused_inactive #444444 #111111 #444444
client.urgent #444444 #333333 #ff0000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment