URXVT bashスクリプトとDWMの生成規則に問題があります。

URXVT bashスクリプトとDWMの生成規則に問題があります。

DWMでURXVTを端末として実行しています。タブ2に新しい端末を作成するようにconfig.hを設定しました。また、独自のタグで生成したいいくつかのスクリプトも書いています。説明のためにentersshconfig.hにスクリプトのみを含めましたが、これを実行したいすべてのスクリプトは同じように機能します。私は現在、互いに関連している場合とない場合がある2つの問題に直面しています。

  1. keybindを実行または接続すると、urxvt -eプログラムを含む新しいターミナルウィンドウがタブ2(URXVTクラス行30ベース)およびタブ4(Entersshヘッダ行32ベース)に作成されます。何が起こっているのかは、両方のルールが起動スクリプトに適用されることですが、dwmが通常の端末の最初のルールを無視する方法はわかりません。

  2. 現在のルールにあるタブ(現在2および4)以外のタブでスクリプトを実行すると、空の端末ウィンドウが表示されます。私はスクリプトしたログファイルを生成しているので、スクリプトが部分的に実行されていることを知っていますが、出力を表示するのに問題がある理由はわかりません。

私はとても混乱しているので、どんな助けでも大いに感謝します。

これは私のconfig.hです。

     1  /* See LICENSE file for copyright and license details. */
     2  
     3  /* appearance */
     4  static const unsigned int borderpx  = 1;        /* border pixel of windows */
     5  static const unsigned int snap      = 32;       /* snap pixel */
     6  static const int showbar            = 1;        /* 0 means no bar */
     7  static const int topbar             = 1;        /* 0 means bottom bar */
     8  static const char *fonts[]          = { "inconsolata:size=18" };
     9  static const char dmenufont[]       = "inconsolata:size=18";
    10  static const char col_gray1[]       = "#222222";
    11  static const char col_gray2[]       = "#444444";
    12  static const char col_gray3[]       = "#f47edb";
    13  static const char col_gray4[]       = "#b8ae32";
    14  static const char col_cyan[]        = "#554080";
    15  static const char *colors[][3]      = {
    16      /*               fg         bg         border   */
    17      [SchemeNorm] = { col_gray3, col_gray1, col_gray2 },
    18      [SchemeSel]  = { col_gray4, col_cyan,  col_cyan  },
    19  };
    20  
    21  /* tagging */
    22  static const char *tags[] = { "", "", "", "

ベストアンサー1

おすすめ記事