GNOME - 共通事項 - 画面キャプチャ - Manjaro
1. 概要 何故か、「Manjaro 20.1 GNOME」では、「gnome-screenshot」のクリップボードが、「VirtualBox」のクリップボードへコピーできないので、「xfce4-screenshooter」を使用します。 「Manjaro 20.1 GNOME」も同様(2020年12月7日)。 「xfce4-clipman」と合わせて使用すれば、バックグラウンドでのクリップボードへのコピーが有効になります。 更に、何故か、キーボードショートカットの設定もうまく機能しないので、「sxhkd」を使用します。 2. インストール インストール。 「root」ユーザで yes | pacman -S xfce4-screenshooter xfce4-clipman-plugin sxhkd 起動時に、「xfce4-clipman」を起動します。 以下、ログインユーザで sh cat << 'EOF' >> ~/.xprofile xfce4-clipman & sxhkd -c ~/.config/sxhkd/sxhkdrc & EOF exit 下記のショートカットキーを割り当てます。
yes | pacman -S xfce4-screenshooter xfce4-clipman-plugin sxhkd
sh cat << 'EOF' >> ~/.xprofile xfce4-clipman & sxhkd -c ~/.config/sxhkd/sxhkdrc & EOF exit
mkdir -pv ~/.config/sxhkd sh cat << 'EOF' >> ~/.config/sxhkd/sxhkdrc Print xfce4-screenshooter -c -f ctrl + Print xfce4-screenshooter -c -w EOF exit 「GNOME」の設定画面で、キーボードショートカットの「Print」「Ctrl+Print」を無効にしておきます。
mkdir -pv ~/.config/sxhkd sh cat << 'EOF' >> ~/.config/sxhkd/sxhkdrc Print xfce4-screenshooter -c -f ctrl + Print xfce4-screenshooter -c -w EOF exit
ログインしなおせば、意図どおりに動作するようになります。