Files
dotfiles/i3/i3/config

326 lines
12 KiB
Plaintext
Raw Normal View History

2013-09-27 02:11:00 +02:00
# vim:set foldmethod=indent:
# vim:set foldignore=:
2013-09-14 14:35:23 +02:00
# 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!
2013-09-27 02:11:00 +02:00
################################################################################
### VARIABLES ##################################################################
################################################################################
2013-09-27 05:08:08 +02:00
# Use the win-key as modifier
set $mod Mod4
# The default terminal
2014-11-07 17:37:04 +01:00
set $terminal ~/bin/start-urxvtc.sh
#-e bash -c "tmux -q has-session && exec tmux attach-session -d || exec tmux new-session -n$USER -s$USER@$HOSTNAME"
2013-09-27 05:08:08 +02:00
# Path to the exit script
set $path_i3exit ~/.i3/scripts/i3exit.bash
# Keys for the exit mode
set $key_lock l
set $key_logout e
set $key_suspend s
2013-09-27 05:08:08 +02:00
set $key_hibernate h
set $key_reboot r
set $key_shutdown Shift+S
2013-09-27 05:08:08 +02:00
set $signal_lock lock
set $signal_logout logout
set $signal_suspend suspend
2013-09-27 05:08:08 +02:00
set $signal_hibernate hibernate
set $signal_reboot reboot
set $signal_shutdown shutdown
2013-09-27 05:08:08 +02:00
2014-11-07 17:37:04 +01:00
set $workspace1 1:web
set $workspace2 2
set $workspace3 3
set $workspace4 4
set $workspace5 5
2014-11-07 17:37:04 +01:00
set $workspace6 6:irc
set $workspace7 7:music
set $workspace8 8:notes
set $workspace9 9:mail
set $workspace10 10:im
2013-09-27 02:11:00 +02:00
set $key_workspace1 1
set $key_workspace2 2
set $key_workspace3 3
set $key_workspace4 4
set $key_workspace5 5
set $key_workspace6 6
set $key_workspace7 7
set $key_workspace8 8
set $key_workspace9 9
set $key_workspace10 0
set $left h
set $down j
set $up k
set $right l
set $splith c
set $splitv v
2014-04-22 22:14:06 +02:00
set $split_toggle x
set $fullscreen f
set $layout_stacking s
set $layout_tabbed w
set $layout_default e
set $focus_parent q
set $focus_child a
set $floating_toggle Shift+space
set $focus_mode_toggle space
set $prev_on_output u
set $next_on_output i
2014-04-22 22:14:06 +02:00
set $workspace_back_and_forth asciicircum
set $reload Shift+C
set $restart Shift+R
set $exit Shift+E
set $kill Shift+Q
2013-10-02 18:04:42 +02:00
set $redshift_latitude 49.5
set $redshift_longitude 11
set $redshift_colortemp_day 6500
set $redshift_colortemp_night 4500
2013-10-02 18:04:42 +02:00
2013-09-27 02:11:00 +02:00
################################################################################
### KEYBINDINGS ################################################################
2013-09-27 05:08:08 +02:00
##################9#############################################################
2013-09-27 02:11:00 +02:00
### MOVING AND WINDOW BEHAVIOUR ############################################
bindsym $mod+$kill kill
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus 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
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
bindsym $mod+$splith split h
bindsym $mod+$splitv split v
bindsym $mod+$fullscreen fullscreen
bindsym $mod+$layout_stacking layout stacking
bindsym $mod+$layout_tabbed layout tabbed
bindsym $mod+$layout_default layout default
2014-04-22 22:14:06 +02:00
bindsym $mod+$split_toggle layout toggle split
bindsym $mod+$floating_toggle floating toggle
bindsym $mod+$focus_mode_toggle focus mode_toggle
bindsym $mod+$focus_parent focus parent
bindsym $mod+$focus_child focus child
bindsym $mod+$key_workspace1 workspace $workspace1
bindsym $mod+$key_workspace2 workspace $workspace2
bindsym $mod+$key_workspace3 workspace $workspace3
bindsym $mod+$key_workspace4 workspace $workspace4
bindsym $mod+$key_workspace5 workspace $workspace5
bindsym $mod+$key_workspace6 workspace $workspace6
bindsym $mod+$key_workspace7 workspace $workspace7
bindsym $mod+$key_workspace8 workspace $workspace8
bindsym $mod+$key_workspace9 workspace $workspace9
bindsym $mod+$key_workspace10 workspace $workspace10
bindsym $mod+Shift+$key_workspace1 move container to workspace $workspace1
bindsym $mod+Shift+$key_workspace2 move container to workspace $workspace2
bindsym $mod+Shift+$key_workspace3 move container to workspace $workspace3
bindsym $mod+Shift+$key_workspace4 move container to workspace $workspace4
bindsym $mod+Shift+$key_workspace5 move container to workspace $workspace5
bindsym $mod+Shift+$key_workspace6 move container to workspace $workspace6
bindsym $mod+Shift+$key_workspace7 move container to workspace $workspace7
bindsym $mod+Shift+$key_workspace8 move container to workspace $workspace8
bindsym $mod+Shift+$key_workspace9 move container to workspace $workspace9
bindsym $mod+Shift+$key_workspace10 move container to workspace $workspace10
bindsym $mod+$prev_on_output workspace prev_on_output
bindsym $mod+$next_on_output workspace next_on_output
2014-04-22 22:14:06 +02:00
bindsym $mod+$workspace_back_and_forth workspace back_and_forth
bindsym $mod+Shift+$prev_on_output move container to workspace prev_on_output
bindsym $mod+Shift+$next_on_output move container to workspace next_on_output
2013-09-27 02:11:00 +02:00
# regenerate and reload the configuration file
# if genconfig gets any paramters, it will invoke i3-msg reload
2014-08-17 23:34:02 +02:00
bindsym $mod+$reload exec --no-startup-id ~/.i3/scripts/genconfig.bash 1
2013-09-27 02:11:00 +02:00
bindsym $mod+$restart restart
bindsym $mod+$exit exit
2013-09-27 02:11:00 +02:00
### START APPLICATIONS #####################################################
2014-11-07 17:37:04 +01:00
bindsym $mod+d exec j4-dmenu-desktop --dmenu="dmenu -fn 'DejaVu Sans:size=11' -i -p '>' -nb '#000000' -nf '#ffffff' -sb '#e16b40' -sf '#000000'"
2013-09-27 02:11:00 +02:00
bindsym $mod+Return exec $terminal
bindsym $mod+F1 exec firefox
2014-08-17 23:34:02 +02:00
bindsym Pause exec --no-startup-id ~/.i3/scripts/shutdown-menu.bash
2013-09-27 02:11:00 +02:00
################################################################################
### MODES ######################################################################
################################################################################
# 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 windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
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
2013-10-05 01:24:03 +02:00
bindsym $right resize grow width 10 px or 10 ppt
2013-09-27 02:11:00 +02:00
# same bindings, but for the arrow keys
bindsym 113 resize shrink width 10 px or 10 ppt
bindsym 116 resize grow height 10 px or 10 ppt
bindsym 111 resize shrink height 10 px or 10 ppt
bindsym 114 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"
################################################################################
### GENERAL SETUP ##############################################################
################################################################################
2013-09-14 14:35:23 +02:00
2013-09-27 05:08:08 +02:00
#workspace $workspace1 output VBOX0
#workspace $workspace2 output VBOX0
#workspace $workspace3 output VBOX0
#workspace $workspace4 output VBOX0
#workspace $workspace5 output VBOX0
#workspace $workspace6 output VBOX0
#workspace $workspace7 output VBOX0
#workspace $workspace8 output VBOX0
#workspace $workspace9 output VBOX0
#workspace $workspace10 output VBOX1
2013-09-27 02:11:00 +02:00
# Default orientation for new workspaces will be derived from aspect ratio
default_orientation auto
2013-09-14 14:35:23 +02:00
2013-09-27 02:11:00 +02:00
# New containers will start in tiling mode
workspace_layout default
2013-09-14 14:35:23 +02:00
2013-09-27 02:11:00 +02:00
# Draw normal borders around all windows with 1-pixel borders
2014-06-14 00:26:03 +02:00
new_window 1pixel
new_float normal 1
2013-09-14 14:35:23 +02:00
2013-09-27 02:11:00 +02:00
# Do show borders at the screen edges
hide_edge_borders none
2013-09-14 14:35:23 +02:00
2014-04-19 04:25:49 +02:00
focus_follows_mouse no
2013-09-14 14:35:23 +02:00
2013-09-27 02:11:00 +02:00
# Only map a popup in fullscreen mode if it belongs to the fullscreen window
# <smart|ignore|leave_fullscreen>
popup_during_fullscreen leave_fullscreen
2013-09-14 14:35:23 +02:00
2013-09-27 02:11:00 +02:00
# Do not always wrap but change to a container on the same level instead
2014-09-30 19:55:51 +02:00
force_focus_wrapping yes
2013-09-14 14:35:23 +02:00
2013-09-27 02:11:00 +02:00
force_xinerama no
2013-09-14 14:35:23 +02:00
2013-09-27 02:11:00 +02:00
# Hit the current workspace button again to return to the previous workspace
workspace_auto_back_and_forth yes
2013-09-14 14:35:23 +02:00
2013-09-27 02:11:00 +02:00
# Draw a window as urgent when switching to its workspace, even if focused, for
# 500 ms
force_display_urgency_hint 500 ms
2013-09-14 14:35:23 +02:00
2013-09-27 02:11:00 +02:00
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
2013-09-14 14:35:23 +02:00
2014-04-22 22:14:06 +02:00
floating_minimum_size 0 x 0
floating_maximum_size 0 x 0
2014-04-19 04:25:49 +02:00
################################################################################
### COLOR SETTINGS #############################################################
################################################################################
# class border backgr. text indicator
client.focused #E16B40 #E16B40 #000000 #FF0000
client.focused_inactive #333333 #5f676a #ffffff #484e50
client.unfocused #333333 #202020 #cccccc #292d2e
client.urgent #2f343a #900000 #ffffff #900000
2013-09-27 02:11:00 +02:00
################################################################################
### APPLICATION SPECIFIC SETTINGS ##############################################
################################################################################
2013-09-14 14:35:23 +02:00
2013-09-27 02:11:00 +02:00
for_window [class="^Wicd-client.py$"] floating enable
2014-04-22 22:14:06 +02:00
for_window [class="^Xfce4-notifyd$"] floating enable , border none
2013-09-27 02:11:00 +02:00
for_window [class="^Conky$"] floating enable
for_window [class="^Terminator$"] border 1pixel
2014-06-14 00:26:03 +02:00
for_window [class="^Firefox$"] border none
for_window [class="^Truecrypt$"] floating enable
2014-07-21 02:29:37 +02:00
for_window [class="^URxvt$"] border 1pixel
2014-04-22 22:14:06 +02:00
for_window [class="^Cairo-dock$"] floating enable , border none
2014-07-25 12:18:52 +02:00
for_window [class="^Pavucontrol$"] floating enable , border normal
for_window [class="^Chromium$" ] border none
2014-04-22 22:14:06 +02:00
for_window [class="^yad-status$" ] floating enable , border none
for_window [class="^Docky$" ] floating enable , border none
2014-11-07 17:37:04 +01:00
for_window [title="^Skype.*for Linux$" ] floating enable , border none
2014-07-31 02:51:20 +02:00
for_window [class="^Skype$" ] border none
2014-07-21 02:29:37 +02:00
for_window [class="^Steam$" ] border none
2014-06-14 00:26:03 +02:00
for_window [class="^Eclipse$" ] border none
2014-04-22 22:14:06 +02:00
#for_window [class="^Steam$" title="^Friends$" ] border 1pixel , floating enable , floating_maximum_size 200 x 700
#for_window [class="^Steam$" title="Chat$" ] border 1pixel , floating enable
2014-06-14 00:26:03 +02:00
for_window [class="^sublime-text$" ] border none
for_window [class="^Evince$" ] border none
for_window [class="^Designer$" ] border none
for_window [class="^main\.py$" ] floating enable
2014-11-07 17:37:04 +01:00
#for_window [class="^Xfce4-panel$"] floating enable
for_window [class="^Thunderbird$"] border none
2014-08-17 23:34:02 +02:00
for_window [instance="^shutdown-menu$"] border normal
2014-11-07 17:37:04 +01:00
for_window [class="^VirtualBox$" ] border normal
#assign [class="^Thunderbird"] $workspace9
assign [class="^Firefox$" ] $workspace1
2014-06-14 00:26:03 +02:00
2014-11-07 17:37:04 +01:00
assign [title=".*[Ss]team.*" ] $workspace5
assign [class=".*[Ss]team.*" ] $workspace5
assign [class="^Quassel$" ] $workspace6
assign [instance="^ncmpcpp$" ] $workspace7
assign [class="^Zim$" ] $workspace8
assign [class="^Thunderbird$" ] $workspace9
2014-07-31 02:51:20 +02:00
assign [class="^Skype$"] $workspace10
2014-11-07 17:37:04 +01:00