GNOME - 共通事項 - 画面キャプチャ - xfce4-screenshooter

クラウディア 
1. 概要
2. インストール
3. 自動起動
4. 設定

1. 概要

 「Garuda 200831 GNOME」でも「xfce4-screenshooter」を使いましたが・・・。  およそ、本丸に近い「Ubuntu 20.04」「20.10」あたりで「VirtualBox」上のクリップボードに「gnome-screenshot」のクリップボードからコピーできないのです。  「FreeBSD 12.2 RELEASE」「GNOME 3.38.0」でも「gnome-screenshot」でクリップボードの機能が効かないどころか、こけます。  「xfce4-screenshooter」を使うことにします。  ショートカットキーの設定がうまくいかないので、「sxhkd」を使用します。  さらに、どうも「xfce4-clipman」は、ようこけるようです。  「mate-screenshot」の方がよさそうです。  2020年12月16日、「ArcoLinux」では、ようこけます。  2021年8月18日、「Zorin OS」でもようこけます。  2021年9月30日、「Manjaro 21.1」で設定しましたが、時間がたつとこけます。

2. インストール

 いずれも「root」ユーザ権限で。  「AcroLinux」「Manjaro」

yes | pacman -S xfce4-screenshooter xfce4-clipman-plugin
 「FreeBSD」

pkg install -y xfce4-screenshooter-plugin xfce4-clipman-plugin
 「Garuda Linux」

yes | pacman -S xfce4-screenshooter xfce4-clipman sxhkd
 「Zorin OS」(「16」で)

apt install -y xfce4-screenshooter xfce4-clipman

3. 自動起動

 「ArcoLinux」  ログインユーザで

vi ~/.config/autostart/xfce4-clipman-plugin-autostart.desktop

Icon=xfce4-clipman-plugin
OnlyShowIn=XFCE;
Terminal=false
 102行をコメントアウトします。  ログインしなおせば、

xfce4-clipman
 が起動しています。  「FreeBSD」  ログインユーザで。

mkdir -pv ~/.config/autostart
cp /usr/local/share/applications/xfce4-clipman.desktop ~/.config/autostart/.
 「Garuda Linux」  「xfce4-clipman」「sxhkd」をログイン時に起動します。  「xfce4-clipman」は

vi ~/.config/autostart/xfce4-clipman-plugin-autostart.desktop

Icon=xfce4-clipman-plugin
OnlyShowIn=XFCE;X-Cinnamon;
Terminal=false
 110行をコメントアウトします。  「sxhkd」

sh
cat << 'EOF' >> ~/.config/autostart/sxhkd.desktop
[Desktop Entry]
Type=Application
Name=sxhkd
Exec=/usr/bin/sh -c "/usr/bin/sxhkd &"
EOF
exit
 ログインしなおせば、

xfce4-clipman
sxhkd
 が起動しています。  「Zorin OS」「Manjaro」  ログインユーザで。

mkdir -pv ~/.config/autostart
cp /usr/share/applications/xfce4-clipman.desktop ~/.config/autostart/.

4. 設定

 下記のショートカットキーを割り当てます。
 キー    コマンド      機能     備考 
Print xfce4-screenshooter -c -f 全画面をキャプチャしてクリップボードにコピー
Ctrl+Print xfce4-screenshooter -c -w アクティブウィンドウをキャプチャしてクリップボードにコピー

 念のため「GNOME」の設定画面で、キーボードショートカットの「Print」「Ctrl+Print」を無効にしておきます。

 クリックして、ショートカットキー設定で Back Space で無効化できます。

「GNOME」-「設定」「無効化」

 「ArcoLinux」「FreeBSD」では、この「設定」の機能で、そのままショートカットキーを割り当てます。

 「Garuda Linux」
 「sxhkd」の設定


cat << 'EOF' >> ~/.config/sxhkd/sxhkdrc
Print
    xfce4-screenshooter -c -f

ctrl + Print
    xfce4-screenshooter -c -w
EOF
 ログインしなおせば、意図どおりに動作するようになります。
earthcar(アースカー)