Lubuntu でアプリケーションを別のワークスペースに移動するためのキーの組み合わせは何ですか?

Lubuntu でアプリケーションを別のワークスペースに移動するためのキーの組み合わせは何ですか?

Lubuntu で異なるワークスペース間でアプリケーションを移動するためのホットキーの組み合わせはありますか? Ctlr-Alt-Shift (Ubuntu) に似たキーの組み合わせを探しています。ファイルを変更しようとしました~/.config/openbox/lubuntu-rc.xmlが、アプリケーションを切り替えるための適切なコマンドを取得できませんでした。解決策はありますか?

答え1

ショートカットの設定

コマンド

コマンドからアプリケーション (-window) を別のワークスペースに移動するには、wmctrlをインストールする必要があります。最前面のアプリケーション (- のウィンドウ) を特定のワークスペース (Lubuntu 上) に移動するために必要なコマンドは次のとおりです。

wmctrl -r :ACTIVE: -t 1

ここで、1は対象のワークスペースを指します。最初のワークスペースは なので0、上記のコマンドはアクティブ ウィンドウを 2 番目のワークスペースに移動します。

Lubuntuのショートカット

Lubuntu では、カスタム ショートカットを設定するには、(実際) ファイルを手動で編集する必要があります~/.config/openbox/lubuntu-rc.xml
正しい構文を取得する最も簡単な方法は、keyboardファイルのセクションに移動し、次の例のように既存のショートカット セクションをコピーすることです。

   <!-- move window to workspace 2 on Ctrl + Alt + Y-->
    <keybind key="C-A-Y">
      <action name="Execute">
        <command>wmctrl -r :ACTIVE: -t 1</command>
      </action>
    </keybind>

テストとして、セクションを追加したところ、正常に動作しました (ログアウト/ログイン後)。アクティブ ウィンドウがショートカットControl+ Alt+の対応するワークスペースに移動されましたY

留意すべき点:

  • 次のコマンドwmctrlをインストールする必要があります:

    sudo apt-get install wmctrl
    
  • 作業を開始するにはログアウト/ログインが必要です

  • 最初のワークスペースにはインデックスがある0ため、例のコマンドは実際にはアクティブ ウィンドウを 2 番目のワークスペースに移動します。

カスタムショートカットキーの追加と使用する構文の詳細な手順については、ここ、下のセクションにあります。新しいキーボードショートカットを作成するまたここ、ショートカット セクションでキーを「指定」する方法については、次のリンクを参照してください。

Key combination

KEY-COMBINATION is the key combination which you want to bind to the actions. The format for the KEY-COMBINATION is: Modifier-Modifier-Key. Any number of modifiers (0 or more) can be used together, and they are each separated by a "-". Multiple KEY-COMBINATION can be specified in one keybind by separating them with spaces. This is useful if you use multiple keybinds for a thing that is quite complicated to specify.
Modifiers
Modifier keys   
S   Shift key
C   Control key
A   Alt key
W   Super key (Usually bound to the Windows key on keyboards which have one)
M   Meta key
H   Hyper key (If it is bound to something)

You can also use Mod1 through Mod5 as the modifiers to directly select a modifier mask (e.g. Mod1 to select Mod1Mask), but this is for advanced users who have customized their modifier mapping with xmodmap. 

より「洗練された」オプション

あなたできたすべての(対象の)ワークスペースにキーの組み合わせを設定する代わりに、現在のワークスペースを確認し、アクティブなウィンドウを次の/前のワークスペースに移動するスクリプトを作成します。

しかし、それはまた別の問題になります :)

答え2

Lubuntu Lxqt 0.14.1の場合:

Ctrl+ Shift+ Alt+Arrow (left or right)

関連情報