Skip to content

Instantly share code, notes, and snippets.

@jpleau
Created April 10, 2015 20:23
Show Gist options
  • Save jpleau/0e52ec29c76b838b2347 to your computer and use it in GitHub Desktop.
Save jpleau/0e52ec29c76b838b2347 to your computer and use it in GitHub Desktop.
i3-wm
# vim: et:ts=4:sw=4
set $mod Mod1
# wallpaper
exec --no-startup-id nitrogen --restore
# start i3lock
exec --no-startup-id /home/oxez/stuff/scripts/i3/lock.sh
font pango:Ubuntu Medium 10
floating_modifier $mod
bindsym $mod+z exec --no-startup-id i3-sensible-terminal
bindsym $mod+x exec gvim
bindsym $mod+Return exec nautilus
# kill focused window
bindsym $mod+Shift+q kill
# Multimedia keys
bindsym XF86AudioLowerVolume exec --no-startup-id pulseaudio-ctl down 5% && pkill --signal RTMIN+1 i3blocks
bindsym XF86AudioMute exec --no-startup-id pulseaudio-ctl mute && pkill --signal RTMIN+1 i3blocks
bindsym XF86AudioRaiseVolume exec --no-startup-id pulseaudio-ctl up 5% && pkill --signal RTMIN+1 i3blocks
bindsym XF86AudioPlay exec mpc toggle && pkill --signal RTMIN+2 i3blocks
bindsym XF86AudioPause exec mpc toggle && pkill --signal RTMIN+2 i3blocks
bindsym XF86AudioNext exec mpc next && pkill --signal RTMIN+2 i3blocks
bindsym XF86AudioPrev exec mpc prev && pkill --signal RTMIN+2 i3blocks
bindsym $mod+d exec --no-startup-id rofi-dmenu-desktop
bindsym $mod+w exec --no-startup-id rofi -show window
## change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l 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+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
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+c 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, toggle split)
bindsym $mod+s layout stacking
#bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+Shift+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# 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
# http://www.jpleau.ca
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
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'"
bindsym $mod+m move workspace to output right
# resize window (you can also use the mouse for that)
mode "resize" {
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
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
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# border background font
set $focused_workspace #8bc7ef #8bc7ef #000000
set $active_workspace #101010 #101010 #ffffff
set $inactive_workspace #101010 #101010 #888888
set $urgent_workspace #F58181 #F58181 #000000
set $bar_bg #101010
bar {
colors {
# Whole color settings
background $bar_bg
statusline #ffffff
separator #666666
# Type border background font
focused_workspace $focused_workspace
active_workspace $active_workspace
inactive_workspace $inactive_workspace
urgent_workspace $urgent_workspace
}
position top
status_command i3blocks
tray_output primary
output DVI-I-2
}
bar {
colors {
# Whole color settings
background $bar_bg
statusline #ffffff
separator #666666
# Type border background font
focused_workspace $focused_workspace
active_workspace $active_workspace
inactive_workspace $inactive_workspace
urgent_workspace $urgent_workspace
}
position top
tray_output none
status_command i3blocks -c ~/.i3blocks.min.conf
output DVI-I-3
}
hide_edge_borders both
workspace_auto_back_and_forth yes
# remove borders and titlebars
for_window [class="^.*"] border pixel 0px
for_window [class="Nvidia-settings"] floating enable
for_window [title="Terminator Preferences"] floating enable
for_window [class="Pavucontrol"] floating enable
for_window [class="Steam"] floating enable
for_window [class="Nautilus"] floating enable
gaps inner 10
gaps outer 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment