我试图设置计算机(运行Crunchbang Linux Waldorf和i3),以便默认情况下始终对其进行配置,以便按Ctrl + Shift和箭头键会根据箭头方向调整窗口大小。
在i3的用户指南提供了这个例子,我认为是非常接近我想要的东西:
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the window’s width.
# 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 j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym semicolon resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
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
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
# Enter resize mode
bindsym $mod+r mode "resize"
但是我想在本地构建它,而不必进入和退出调整大小模式。我只想使用箭头键,而不是j,k,l和分号键。
关于我将如何做的任何想法?