Moved some fixed values into variables.

This commit is contained in:
2013-09-28 02:41:32 +02:00
parent bacf1e8175
commit 9c001bf7c4

View File

@@ -1,5 +1,5 @@
# vim:set foldmethod=indent: # vim:set foldmethod=indent:
# vim:set foldignore="": # vim:set foldignore=:
# This file has been auto-generated by i3-config-wizard(1). # This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like. # It will not be overwritten, so edit it as you like.
# #
@@ -25,19 +25,19 @@
set $path_i3exit ~/.i3/scripts/i3exit.bash set $path_i3exit ~/.i3/scripts/i3exit.bash
# Keys for the exit mode # Keys for the exit mode
set $key_lock l set $key_lock l
set $key_logout e set $key_logout e
set $key_suspend s set $key_suspend s
set $key_hibernate h set $key_hibernate h
set $key_reboot r set $key_reboot r
set $key_shutdown Shift+S set $key_shutdown Shift+S
set $signal_lock lock set $signal_lock lock
set $signal_logout logout set $signal_logout logout
set $signal_suspend suspend set $signal_suspend suspend
set $signal_hibernate hibernate set $signal_hibernate hibernate
set $signal_reboot reboot set $signal_reboot reboot
set $signal_shutdown shutdown set $signal_shutdown shutdown
# Path and options for the wallpaper changer script # Path and options for the wallpaper changer script
set $path_wallchanger ~/.i3/scripts/wallchanger.bash set $path_wallchanger ~/.i3/scripts/wallchanger.bash
@@ -45,93 +45,132 @@
set $wallpaper_logfile "$HOME/.i3/logs/wallpaper.log" set $wallpaper_logfile "$HOME/.i3/logs/wallpaper.log"
set $wallpaper_interval 900 set $wallpaper_interval 900
set $workspace1 1:firefox set $workspace1 1:firefox
set $workspace2 2 set $workspace2 2
set $workspace3 3 set $workspace3 3
set $workspace4 4 set $workspace4 4
set $workspace5 5 set $workspace5 5
set $workspace6 6 set $workspace6 6
set $workspace7 7 set $workspace7 7
set $workspace8 8 set $workspace8 8
set $workspace9 9 set $workspace9 9
set $workspace10 10:skype set $workspace10 10:skype
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 g
set $splitv v
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
set $reload Shift+C
set $restart Shift+R
set $exit Shift+E
set $kill Shift+Q
################################################################################ ################################################################################
### KEYBINDINGS ################################################################ ### KEYBINDINGS ################################################################
##################9############################################################# ##################9#############################################################
### MOVING AND WINDOW BEHAVIOUR ############################################ ### MOVING AND WINDOW BEHAVIOUR ############################################
bindsym $mod+$kill kill
bindsym $mod+Shift+Q kill bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $mod+h focus left bindsym $mod+Left focus left
bindsym $mod+j focus down bindsym $mod+Down focus down
bindsym $mod+k focus up bindsym $mod+Up focus up
bindsym $mod+l focus right bindsym $mod+Right focus right
bindsym $mod+Left focus left bindsym $mod+Shift+$left move left
bindsym $mod+Down focus down bindsym $mod+Shift+$down move down
bindsym $mod+Up focus up bindsym $mod+Shift+$up move up
bindsym $mod+Right focus right bindsym $mod+Shift+$right move right
bindsym $mod+Shift+H move left bindsym $mod+Shift+Left move left
bindsym $mod+Shift+J move down bindsym $mod+Shift+Down move down
bindsym $mod+Shift+K move up bindsym $mod+Shift+Up move up
bindsym $mod+Shift+L move right bindsym $mod+Shift+Right move right
bindsym $mod+Shift+Left move left bindsym $mod+$splith split h
bindsym $mod+Shift+Down move down bindsym $mod+$splitv split v
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
bindsym $mod+g split h bindsym $mod+$fullscreen fullscreen
bindsym $mod+v split v
bindsym $mod+f fullscreen bindsym $mod+$layout_stacking layout stacking
bindsym $mod+$layout_tabbed layout tabbed
bindsym $mod+$layout_default layout default
bindsym $mod+s layout stacking bindsym $mod+$floating_toggle floating toggle
bindsym $mod+w layout tabbed bindsym $mod+$focus_mode_toggle focus mode_toggle
bindsym $mod+e layout default
bindsym $mod+Shift+space floating toggle bindsym $mod+$focus_parent focus parent
bindsym $mod+space focus mode_toggle bindsym $mod+$focus_child focus child
bindsym $mod+a focus parent bindsym $mod+$key_workspace1 workspace $workspace1
bindcode $mod+d focus child 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+1 workspace $workspace1 bindsym $mod+Shift+$key_workspace1 move container to workspace $workspace1
bindsym $mod+2 workspace $workspace2 bindsym $mod+Shift+$key_workspace2 move container to workspace $workspace2
bindsym $mod+3 workspace $workspace3 bindsym $mod+Shift+$key_workspace3 move container to workspace $workspace3
bindsym $mod+4 workspace $workspace4 bindsym $mod+Shift+$key_workspace4 move container to workspace $workspace4
bindsym $mod+5 workspace $workspace5 bindsym $mod+Shift+$key_workspace5 move container to workspace $workspace5
bindsym $mod+6 workspace $workspace6 bindsym $mod+Shift+$key_workspace6 move container to workspace $workspace6
bindsym $mod+7 workspace $workspace7 bindsym $mod+Shift+$key_workspace7 move container to workspace $workspace7
bindsym $mod+8 workspace $workspace8 bindsym $mod+Shift+$key_workspace8 move container to workspace $workspace8
bindsym $mod+9 workspace $workspace9 bindsym $mod+Shift+$key_workspace9 move container to workspace $workspace9
bindsym $mod+0 workspace $workspace10 bindsym $mod+Shift+$key_workspace10 move container to workspace $workspace10
bindsym $mod+Shift+exclam move container to workspace $workspace1 bindsym $mod+$prev_on_output workspace prev_on_output
bindsym $mod+Shift+quotedbl move container to workspace $workspace2 bindsym $mod+$next_on_output workspace next_on_output
bindsym $mod+Shift+section move container to workspace $workspace3
bindsym $mod+Shift+dollar move container to workspace $workspace4
bindsym $mod+Shift+percent move container to workspace $workspace5
bindsym $mod+Shift+ampersand move container to workspace $workspace6
bindsym $mod+Shift+slash move container to workspace $workspace7
bindsym $mod+Shift+parenleft move container to workspace $workspace8
bindsym $mod+Shift+parenright move container to workspace $workspace9
bindsym $mod+Shift+equal move container to workspace $workspace10
bindsym $mod+u workspace prev_on_output bindsym $mod+Shift+$prev_on_output move container to workspace prev_on_output
bindsym $mod+i workspace next_on_output bindsym $mod+Shift+$next_on_output move container to workspace next_on_output
bindsym $mod+Shift+u move container to workspace prev_on_output
bindsym $mod+Shift+i move container to workspace next_on_output
# regenerate and reload the configuration file # regenerate and reload the configuration file
bindsym $mod+Shift+C exec --no-startup-id bash ~/.i3/scripts/genconfig.bash ; reload bindsym $mod+$reload exec --no-startup-id bash ~/.i3/scripts/genconfig.bash ; reload
bindsym $mod+Shift+R restart bindsym $mod+$restart restart
bindsym $mod+Shift+E exit bindsym $mod+$exit exit
### START APPLICATIONS ##################################################### ### START APPLICATIONS #####################################################
@@ -151,10 +190,10 @@
# Pressing right will grow the windows width. # Pressing right will grow the windows width.
# Pressing up will shrink the windows height. # Pressing up will shrink the windows height.
# Pressing down will grow the windows height. # Pressing down will grow the windows height.
bindsym h resize shrink width 10 px or 10 ppt bindsym $left resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt bindsym $down resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt bindsym $up resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt bindsym $left resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys # same bindings, but for the arrow keys
bindsym 113 resize shrink width 10 px or 10 ppt bindsym 113 resize shrink width 10 px or 10 ppt
@@ -216,7 +255,8 @@
focus_follows_mouse yes focus_follows_mouse yes
# Only map a popup in fullscreen mode if it belongs to the fullscreen window # Only map a popup in fullscreen mode if it belongs to the fullscreen window
popup_during_fullscreen smart # <smart|ignore|leave_fullscreen>
popup_during_fullscreen leave_fullscreen
# Do not always wrap but change to a container on the same level instead # Do not always wrap but change to a container on the same level instead
force_focus_wrapping no force_focus_wrapping no