########################################
## fbpanel configuration file         ##
########################################


# 概要
# 設定ファイルは、最初に必須の 'Global' ブロックと、その後に幾つかの任意の
# 'Plugin' ブロックとで構成されます。
# ※ 'Plugin' とは、パネルに組み込むメニューやランチャ、ページャーなどの
#    アイテムを指します。

# ・'#' で始まる行(コメント行)と空行は無視されます
# ・各キーワードの大/小文字は区別されません
# ・変数の値の大/小文字は区別されます
# ・'=' 以降の最初の非空白文字から最後の非空白文字までの文字列は変数の値と
#   解釈されます(この文字列中の '#' はコメントマークとしては扱われません)

### ==============
### グローバル設定
### ==============

# 'Global' ブロックでは、表示位置、サイズや、NETWM 関連設定(表示レイヤーなど)
# のグローバルなパラメータを記述します

Global {
    # 表示位置 (top | bottom | right | left)
    edge = bottom
    # 位置合わせ (left | center | right)
    # ※ edge={top|bottom} の時 left は上合わせ、right は下合わせとなる
    allign = center
    # 基準位置からのマージン
    margin = 0
    # 表示幅タイプ ((request) | percent | pixel)
    widthtype = percent
    # 表示幅 (? | パーセント値 | ピクセル数) ※ widthtype に依存
    width = 80
    # 表示高さタイプ (pixel)
    heighttype = pixel
    # 表示高さ (ピクセル数)
    height = 32
    # 透明化 (true | false)
    transparent = true
    # パネルの色 (#rrggbb)
    tintcolor = #ffffff
    # アルファ値 (0 - 255) ※ 0 で透明度最大
    alpha = 32
    # パネルをドック扱いにする (true | false)
    setdocktype = true
    # ウィンドウ最大化時パネルを隠さない (true | false)
    setpartialstrut = true
    # パネルを自動的に隠す (true | false)
    autohide = false
    # パネルを自動的に隠す (?)
    heightWhenHidden = 2
    # パネルの隅を丸める (true | false)
    roundcorners = true
    # パネルの隅を丸める時の半径
    roundcornersradius = 4
    # 表示レイヤー (below | above | none)
    layer = below
}

### ==============================
### プラグイン(パネルアイテム)設定
### ==============================

# プラグインブロック(Plugin{}) は、使用するプラグインを指定します。
# (ビルトイン/外部、各プラグインは共通の書式です)

# プラグインブロックでは、必ず一番最初に 'type' を記述します。
# 'type' の値は、各プラグインの正確な名前です。
# ビルトイン・プラグインの名前は以下の通りです。

# separator   - メニュー区切線
# wincmd      - 'デスクトップを見せる'(全ウィンドウの最小化と復帰)
# taskbar     - タスクリスト
# launchbar   - ランチャー
# image       - 画像ファイル
#               (icon の代わりとして使えるが、フルパス指定が必要)
#               例: image = ~/.config/fbpanel/images/term.png
# dclock      - デジタル時計
# space       - スペース確保
# pager       - ワークスペース(サムネイル表示)切り替え
# tray        - システムトレイ(docklet)

# expand - サイズに余裕が有る時、余分な空白を含めるか否か [オプション]
# padding - プラグイン周囲の余白 [オプション]
# config {} - プラグイン用個人設定(書式は各プラグインに依存)

# スペーサー
Plugin {
    type = space
    expand = false
    padding = 0
    config {
        size = 2
    }
}

# アプリケーション メニュー
Plugin {
    type = menu
    expand = false
    padding = 0
    config {
        # メニューアイコン
        icon = vine
        # fbpanel systemmenu の内容は、実行時自動的に挿入されます
        systemmenu {
        }
        # セパレータ(区切線)
        separator {
        }
        # ユーザー定義メニュー(item 追加可能)
        item {
            name = X-端末
            icon = gnome-terminal
            action = xterm
        }
    }
}

# スペーサー
Plugin {
    type = space
    expand = false
    padding = 0
    config {
        size = 7
    }
}

# ランチャー
Plugin {
    type = launchbar
    expand = false
    padding = 0
    # ランチャー・ボタン
    config {
        button {
            icon = fbp_rox
            tooltip = ファイルマネージャ
            action = x-file-manager
        }
        button {
            icon = fbp_mlterm
            tooltip = 端末エミュレータ
            action = x-terminal
        }
        button {
            icon = fbp_earth
            tooltip = ウエブ・ブラウザ
            action = x-www-browser
        }
        button {
             icon = fbp_mailer
            tooltip = メール・クライアント
            action = x-mailer
        }
    }
}

# スペーサー
Plugin {
    type = space
    expand = false
    padding = 0
    config {
        size = 10
    }
}

# デスクトップを見せる(全てのウィンドウの最小化と復帰)
Plugin {
    type = wincmd
    expand = false
    padding = 0
    config {
        icon = gnome-fs-desktop
        tooltip = Left click to iconify all windows. Middle click to shade them.
    }
}

# スペーサー
Plugin {
    type = space
    expand = false
    padding = 0
    config {
        size = 7
    }
}

# タスクバー(タスクリスト)
Plugin {
    type = taskbar
    expand = true
    padding = 0
    config {
        ShowIconified = true
        ShowMapped    = true
        ShowAllDesks  = false
        tooltips = true
        IconsOnly = false
        MaxTaskWidth = 150
    }
}

# スペーサー
Plugin {
    type = space
    expand = false
    padding = 0
    config {
        size = 7
    }
}

# ページャー(ワークスペース切り替え)
Plugin {
    type = pager
    expand = false
    padding = 0
    config {
        showwallpaper = true
    }
}

# スペーサー
Plugin {
    type = space
    expand = false
    padding = 0
    config {
        size = 7
    }
}

# CPU 負荷グラフ
Plugin {
    type = cpu
    expand = false
    padding = 0
    config {
    }
}

# スペーサー
Plugin {
    type = space
    expand = false
    padding = 0
    config {
        size = 7
    }
}

# NET 接続グラフ
Plugin {
    type = net
    expand = false
    padding = 0
    config {
    }
}

# スペーサー
Plugin {
    type = space
    expand = false
    padding = 0
    config {
        size = 7
    }
}

# システムトレイ
Plugin {
    type = tray
    expand = false
    padding = 0
    config {
    }
}

# スペーサー
Plugin {
    type = space
    expand = false
    padding = 0
    config {
        size = 7
    }
}

# システム関連メニュー
# (fbpanel 関連とシステム操作関連のメニュー)
Plugin {
    type = menu
    expand = false
    padding = 0
    config {
        icon = caution
        item {
            name = 画面をロック
            icon = fbp_lock
            # "action" には適切な画面ロックコマンドを指定して下さい
            # (xlockmore、xscreensaver パッケージなどのいずれかが必要)
            # (※fbpanel 側では用意していません)
            action = xlock
        }
        separator {
        }
        item {
            name = Fbpanel について
            icon = about
            action = /usr/libexec/fbpanel/fbpanel_about
        }
        item {
            name = Fbpanel 設定
            icon = config
            action = /usr/libexec/fbpanel/fbpanel_config
        }
        item {
            name = Fbpanel 再起動
            icon = restart
            action = /usr/libexec/fbpanel/fbpanel_restart
        }
        item {
            name = Fbpanel 終了
            icon = quit
            action = /usr/libexec/fbpanel/fbpanel_quit
        }
        separator {
        }
        item {
            name = ログアウト
            icon = logout
            action = /usr/libexec/fbpanel/fbpanel_logout
        }
        item {
            name = リブート
            icon = reboot
            action = /usr/libexec/fbpanel/fbpanel_reboot
        }
        item {
            name = シャットダウン
            icon = shutdown
            action = /usr/libexec/fbpanel/fbpanel_shutdown
        }
    }
}

# スペーサー
Plugin {
    type = space
    expand = false
    padding = 0
    config {
        size = 7
    }
}

# デジタル時計
Plugin {
    type = dclock
    config {
        ShowSeconds = false
        HoursView = 24
        TooltipFmt = %x(%a)
        #Action = xmessage Please define some command &
    }
}

# スペーサー
Plugin {
    type = space
    expand = false
    padding = 0
    config {
        size = 2
    }
}

### ------ アプリケーション用アイコン設定
# アプリにアイコンを再設定
# (タイトルバー、タスクリストに反映)
Plugin {
    type = icons
    expand = false
    padding = 0
    config {
        DefaultIcon = /usr/share/fbpanel/images/default.xpm
        application {
            icon = gnome-terminal
            ClassName = XTerm
        }
        application {
            icon = gnome-terminal
            ClassName = URxvt
        }
        application {
            icon = gnome-emacs
            ClassName = Emacs
        }
        application {
            icon = mozilla-firefox
            ClassName = Firefox-bin
        }
        application {
            icon = mozilla-firefox
            ClassName = Firefox
        }
    }
}
