GNOME - 共通事項 - 画面キャプチャ - xfce4-screenshooter
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」では、ようこけます。 2. インストール 「root」ユーザで 「AcroLinux」 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 3. 自動起動 「ArcoLinux」 ログインユーザで vi ~/.config/autostart/xfce4-clipman-plugin-autostart.desktop Icon=xfce4-clipman-plugin OnlyShowIn=XFCE; Terminal=false 102行をコメントアウトします。 ログインしなおせば、 xfce4-clipman が起動しています。 「FreeBSD」 「root」ユーザで sh cat << 'EOF' >> /usr/share/skel/dot.xprofile xfce4-clipman & EOF exit ログインユーザで cp /usr/share/skel/dot.xprofile ~/.xprofile 「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 が起動しています。 4. 設定 下記のショートカットキーを割り当てます。
yes | pacman -S xfce4-screenshooter xfce4-clipman-plugin
pkg install -y xfce4-screenshooter-plugin xfce4-clipman-plugin
yes | pacman -S xfce4-screenshooter xfce4-clipman sxhkd
vi ~/.config/autostart/xfce4-clipman-plugin-autostart.desktop
Icon=xfce4-clipman-plugin OnlyShowIn=XFCE; Terminal=false
xfce4-clipman
sh cat << 'EOF' >> /usr/share/skel/dot.xprofile xfce4-clipman & EOF exit
cp /usr/share/skel/dot.xprofile ~/.xprofile
Icon=xfce4-clipman-plugin OnlyShowIn=XFCE;X-Cinnamon; Terminal=false
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
念のため「GNOME」の設定画面で、キーボードショートカットの「Print」「Ctrl+Print」を無効にしておきます。 クリックして、ショートカットキー設定で Back Space で無効化できます。
「ArcoLinux」「FreeBSD」では、この「設定」の機能で、そのままショートカットキーを割り当てます。 「Garuda Linux」 「sxhkd」の設定 cat << 'EOF' >> ~/.config/sxhkd/sxhkdrc Print xfce4-screenshooter -c -f ctrl + Print xfce4-screenshooter -c -w EOF ログインしなおせば、意図どおりに動作するようになります。
cat << 'EOF' >> ~/.config/sxhkd/sxhkdrc Print xfce4-screenshooter -c -f ctrl + Print xfce4-screenshooter -c -w EOF