Moved some fixed values into variables.
This commit is contained in:
146
i3/i3/config
146
i3/i3/config
@@ -1,5 +1,5 @@
|
||||
# vim:set foldmethod=indent:
|
||||
# vim:set foldignore="":
|
||||
# vim:set foldignore=:
|
||||
# This file has been auto-generated by i3-config-wizard(1).
|
||||
# It will not be overwritten, so edit it as you like.
|
||||
#
|
||||
@@ -56,82 +56,121 @@
|
||||
set $workspace9 9
|
||||
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 ################################################################
|
||||
##################9#############################################################
|
||||
|
||||
### MOVING AND WINDOW BEHAVIOUR ############################################
|
||||
bindsym $mod+$kill kill
|
||||
|
||||
bindsym $mod+Shift+Q kill
|
||||
|
||||
bindsym $mod+h focus left
|
||||
bindsym $mod+j focus down
|
||||
bindsym $mod+k focus up
|
||||
bindsym $mod+l focus right
|
||||
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+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
|
||||
|
||||
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+g split h
|
||||
bindsym $mod+v split v
|
||||
bindsym $mod+$splith split h
|
||||
bindsym $mod+$splitv split v
|
||||
|
||||
bindsym $mod+f fullscreen
|
||||
bindsym $mod+$fullscreen fullscreen
|
||||
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout default
|
||||
bindsym $mod+$layout_stacking layout stacking
|
||||
bindsym $mod+$layout_tabbed layout tabbed
|
||||
bindsym $mod+$layout_default layout default
|
||||
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
bindsym $mod+space focus mode_toggle
|
||||
bindsym $mod+$floating_toggle floating toggle
|
||||
bindsym $mod+$focus_mode_toggle focus mode_toggle
|
||||
|
||||
bindsym $mod+a focus parent
|
||||
bindcode $mod+d focus child
|
||||
bindsym $mod+$focus_parent focus parent
|
||||
bindsym $mod+$focus_child focus child
|
||||
|
||||
bindsym $mod+1 workspace $workspace1
|
||||
bindsym $mod+2 workspace $workspace2
|
||||
bindsym $mod+3 workspace $workspace3
|
||||
bindsym $mod+4 workspace $workspace4
|
||||
bindsym $mod+5 workspace $workspace5
|
||||
bindsym $mod+6 workspace $workspace6
|
||||
bindsym $mod+7 workspace $workspace7
|
||||
bindsym $mod+8 workspace $workspace8
|
||||
bindsym $mod+9 workspace $workspace9
|
||||
bindsym $mod+0 workspace $workspace10
|
||||
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+exclam move container to workspace $workspace1
|
||||
bindsym $mod+Shift+quotedbl move container to workspace $workspace2
|
||||
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+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+u workspace prev_on_output
|
||||
bindsym $mod+i workspace next_on_output
|
||||
bindsym $mod+$prev_on_output workspace prev_on_output
|
||||
bindsym $mod+$next_on_output 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
|
||||
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
|
||||
|
||||
# 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+Shift+E exit
|
||||
bindsym $mod+$restart restart
|
||||
bindsym $mod+$exit exit
|
||||
|
||||
### START APPLICATIONS #####################################################
|
||||
|
||||
@@ -151,10 +190,10 @@
|
||||
# Pressing right will grow the window’s width.
|
||||
# Pressing up will shrink the window’s height.
|
||||
# Pressing down will grow the window’s height.
|
||||
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 $left resize grow width 10 px or 10 ppt
|
||||
|
||||
# same bindings, but for the arrow keys
|
||||
bindsym 113 resize shrink width 10 px or 10 ppt
|
||||
@@ -216,7 +255,8 @@
|
||||
focus_follows_mouse yes
|
||||
|
||||
# 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
|
||||
force_focus_wrapping no
|
||||
|
||||
Reference in New Issue
Block a user