Openbox - 共通事項 - 画面キャプチャ - SparkyLinux

クラウディア 
1. 概要
2. インストール
3. クリップボードマネージャ
4. ショートカットキー

1. 概要

 「SparkyLinux」は、「xfce4-screenshooter」で画面キャプチャをとります。  以下、「SparkyLinux 6.6」での操作です。  以下のショートカットキーを割りあてます。
Print		全画面キャプチャしてクリップボードへコピー
・Ctrl+Print	アクティブウィンドウキャプチャしてクリップボードへコピー

2. インストール

 「root」ユーザ権限で。  (「xfce4-screenshooter」はデフォルトでインストールされておりました)

apt install -y xfce4-clipman-plugin
 ちなみに、「SparkyLinux 6.0」以前は

apt install -y xfce4-screenshooter xfce4-clipman-plugin

3. クリップボードマネージャ

 「xfce4-clipman」をログイン時に起動するようにします。  ログインユーザで。

sh
cat << 'EOF' >> ~/.config/openbox/autostart.sh

xfce4-clipman &
EOF
exit

4. ショートカットキー

 ログインユーザで。

vi ~/.config/openbox/rc.xml

    <!-- Launch screenshot when Print is pressed -->
    <keybind key="Print">
      <action name="Execute">
        <command>gscreenshot</command>
      </action>
    </keybind>
 を下記へ変更します。

    <!-- Launch screenshot when Print is pressed -->
    <keybind key="Print">
      <action name="Execute">
        <command>xfce4-screenshooter -c -f</command>
      </action>
    </keybind>
    <keybind key="C-Print">
      <action name="Execute">
        <command>xfce4-screenshooter -c -w</command>
      </action>
    </keybind>
earthcar(アースカー)