#Austin's i3 config #Modifier key for actions, I use windows set $mod Mod4 # Font for window titles. font pango:Source Code Pro 9 # set some nice colors border background text client.focused #2aa198 #2aa198 #eee895 client.unfocused #021215 #021215 #586e75 client.focused_inactive #073642 #073642 #839496 client.urgent #cb4b16 #dc322f #fdf6e3 exec xrdb .Xresources ##Startup Programs #autoname exec_always ~/.i3/i3-autoname-workspaces.py & # set bg exec --no-startup-id nitrogen --restore # wireless exec --no-startup-id nm-applet # fix keyboard, repeat rate, xcape exec setxkbmap -option ctrl:nocaps exec --no-startup-id xcape exec --no-startup-id xset r rate 400 33 # compton exec_always --no-startup-id compton --config ~/.config/compton.conf -b # pidgin exec --no-startup-id pidgin # clipit exec clipit ## Floats for_window [class="^.*"] border pixel 2 for_window [title="Screen Layout Editor"] floating enable for_window [title="Application Finder"] floating enable for_window [instance="Download"] floating enable for_window [window_role="plugin_ui"] floating enable for_window [title="Menu Update"] floating enable for_window [title="___"] floating enable # Use mouse+$mod to drag floats floating_modifier $mod # gaps !only use for i3-gaps! gaps inner 6 gaps outer 1 smart_gaps on smart_borders on # Volume controls, and screen brightness bindsym XF86AudioRaiseVolume exec amixer -q sset Master 5%+ unmute bindsym XF86AudioLowerVolume exec amixer -q sset Master 5%- unmute bindsym XF86AudioMute exec amixer -q sset Master toggle bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness bindsym XF86Homepage exec firefox bindsym XF86Tools exec terminator ##Program Bindings # start a terminal bindsym $mod+Return exec urxvt256c-ml # kill focused window bindsym $mod+Shift+q kill # start dmenu/rofi #bindsym $mod+d exec dmenu_run -p "k:" -l 10 -fn 'Terminus-12' -nb '#021215' -nf '#657b83' -sb '#002b36' -sf '#93a1a1' bindsym $mod+d exec "rofi -show combi -combi-modi run,ssh -modi combi" bindsym $mod+e exec rofi -show window # quickswitch bindsym $mod+c exec /usr/bin/quickswitch.py #fancy screen lock bindsym $mod+Shift+w exec ~/.i3/pixelate_lock.sh bindsym XF86Sleep exec ~/.i3/pixelate_lock.sh #rename the current workspace bindsym $mod+t exec ~/.i3/rename_workspace.sh # datepaste #bindsym $mod+e exec ~/.i3/date.sh ##Key Bindings # 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+g split h #split in vertical orientation bindsym $mod+v split v # enter fullscreen mode for the focused container #bindsym $mod+t fullscreen # change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+f 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 # switch to workspace bindsym $mod+1 workspace number 1 bindsym $mod+2 workspace number 2 bindsym $mod+3 workspace number 3 bindsym $mod+4 workspace number 4 bindsym $mod+5 workspace number 5 bindsym $mod+6 workspace number 6 bindsym $mod+7 workspace number 7 bindsym $mod+8 workspace number 8 bindsym $mod+9 workspace number 9 bindsym $mod+0 workspace number 10 # move focused container to workspace bindsym $mod+Shift+1 move container to workspace number 1 bindsym $mod+Shift+2 move container to workspace number 2 bindsym $mod+Shift+3 move container to workspace number 3 bindsym $mod+Shift+4 move container to workspace number 4 bindsym $mod+Shift+5 move container to workspace number 5 bindsym $mod+Shift+6 move container to workspace number 6 bindsym $mod+Shift+7 move container to workspace number 7 bindsym $mod+Shift+8 move container to workspace number 8 bindsym $mod+Shift+9 move container to workspace number 9 bindsym $mod+Shift+0 move container to workspace number 10 bindsym $mod+Shift+Right move workspace to output right bindsym $mod+Shift+Left move workspace to output left ##i3 bindings # 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+p restart # exit i3 (logs you out of your X session) bindsym $mod+Shift+f 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'" # Jump to urgent window #bindsym $mod+x [urgent=latest] focus # display management set $mode_display Screen Management (w) WORK, (s) SOLO mode "$mode_display" { bindsym w exec ~/.i3/work.sh bindsym s exec ~/.i3/notwork.sh # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } bindsym $mod+x mode "$mode_display" # resize window set $resize Resize Window 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 # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } bindsym $mod+r mode "$resize" # Start i3bar bar { status_command i3blocks -c ~/.i3/i3blocks.conf position top height 18 font pango:DejaVu Sans Mono, FontAwesome 10 colors { background #021215 statusline #93a1a1 separator #2aa198 # Type border background font focused_workspace #2aa198 #073642 #eee895 active_workspace #073642 #002b36 #839496 inactive_workspace #002b36 #021215 #586e75 urgent_workspace #cb4b16 #dc322f #fdf6e3 } } # vim:filetype=i3