tmuxバインディングのように動作するようにbspwmバインディングを変更できますか?

tmuxバインディングのように動作するようにbspwmバインディングを変更できますか?

私はtmuxから来て、sxhkdとbspwmが同様のバインディングを持つように設定できるかどうか疑問に思います。例えば、

myがデフォルトのtmuxプレフィックスのC-w代わりに私のプレフィックスであるとします。C-b

C-w h # move to left pane
C-w j # move to bottom pane
C-w k # move to upper pane
C-w l # move to right pane
C-w v # vertical split pane
C-w n # horizontal split pane

bspwmとsxhkdで2つのキーと修飾子が利用できないという内容を読んでいます。それでは、これを達成するために他のタイリングウィンドウマネージャとショートカットデーモンの組み合わせを使用できますか?

私はこれを試しましたが、h鍵が機能する唯一のようです。必ずしも必要でない場合は、各キーに対してこの2行のコードを書きたくありません。

ctrl + w ; {h,j,k,l)
    bspc node -{f,s} {west,south,north,east}

ベストアンサー1

「他の」タイリングウィンドウマネージャにのみ回答できます。

i3必要なパターンと同様のパターンを定義できます。

# Press $mod+o followed by either f, t, Escape or Return to launch firefox,
# thunderbird or return to the default mode, respectively.
set $mode_launcher Launch: [f]irefox [t]hunderbird
bindsym $mod+o mode "$mode_launcher"

mode "$mode_launcher" {
    bindsym f exec firefox
    bindsym t exec thunderbird

    bindsym Escape mode "default"
    bindsym Return mode "default"
}

バラよりhttps://i3wm.org/docs/userguide.html#bound_modes

おすすめ記事