[英]i3 assign number to window and move to number
I am totally new to i3 and am coming from tilix.我是 i3 的新手,来自 tilix。 So far I love i3.
到目前为止,我喜欢 i3。 In tilix I used to jump from windows to window using the $mod+numberOfWindow.
在 tilix 中,我曾经使用 $mod+numberOfWindow 从 windows 跳转到 window。 But I can't find out how to
但我不知道该怎么做
With workspaces it automaticly assigns numbers and we can jump to them.对于工作区,它会自动分配编号,我们可以跳转到它们。 How can I activate this for windows?
我如何为 windows 激活它?
greetings!问候!
Put this in your i3 config at ~/.config/i3/config把这个放在你的 i3 配置中 ~/.config/i3/config
I don't really the concept of numbered windows. When we have multiple windows you can move around with focus.我真的不是编号 windows 的概念。当我们有多个 windows 时,您可以随焦点移动。
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
In i3, we have workspaces displayed in i3bar displayed by numbers You can jump to that workspace using在 i3 中,我们在 i3bar 中显示了由数字显示的工作区您可以使用跳转到该工作区
$mod+number
When we have multiple workspaces, then I use these bindings to move left and right workspaces当我们有多个工作区时,我会使用这些绑定来左右移动工作区
bindsym $mod+bracketleft workspace prev
bindsym $mod+bracketright workspace next
bindsym $mod+Left workspace prev
bindsym $mod+Right workspace next
In each workspace, we have different windows. I personally prefer to use vim keybindings to jump to different windows在每个工作空间中,我们有不同的windows。我个人更喜欢使用vim keybindings来跳转到不同的windows
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
For urgent workspace, use对于紧急工作空间,请使用
bindsym $mod+x [urgent=latest] focus
Edit 1编辑 1
I've found further options for assigning workspace names along with numbers.我找到了用于分配工作区名称和数字的更多选项。 There is also one rust script, which I found on github. It names the workspaces based on what application is opened in that workspace.
还有一个 rust 脚本,我在 github 上找到的。它根据在该工作区中打开的应用程序来命名工作区。 It can be found on github at github.com/roosta/i3wsr
它可以在 github 上找到,网址为github.com/roosta/i3wsr
Also, there's one issue here .此外,这里还有一个问题。 Make sure to check it out.
一定要检查一下。
Edit 2编辑 2
For naming windows, there are vim like marks, well documented in i3wm's documentation.对于命名 windows,有 vim 之类的标记,在 i3wm 的文档中有很好的记录。 Here's the link
这是链接
I personally prefer, something like github.com/svenstaro/wmfocus It works similar to chrome extension Vimium.我个人更喜欢,比如github.com/svenstaro/wmfocus它的工作原理类似于 chrome 扩展 Vimium。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.