「Fedora」
yum install -y xfce4-screenshooter xfce4-clipman-plugin
「FreeBSD」
pkg install -y xfce4-screenshooter-plugin xfce4-clipman-plugin
「ArcoLinux」「Manjaro」
yes | pacman -S xfce4-screenshooter xfce4-clipman-plugin
「MX Linux」
apt install -y xfce4-screenshooter xfce4-clipman
「SparkyLinux」
apt install -y xfce4-screenshooter xfce4-clipman-plugin
3. 設定 FreeBSD
「xfce4-clipman」の起動。
sh
cat << 'EOF' >> ~/.xsessionrc
xfce4-clipman &
EOF
exit
キーボードショートカットカスタマイズ用にファイルをコピーするところから
cp /usr/local/etc/xdg/openbox/rc.xml ~/.config/openbox/rc.xml
vi ~/.config/openbox/rc.xml
</keybind>
</keyboard>
下記のように行を追加します。
</keybind>
<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>
</keyboard>
4. 設定 ArcoLinux
vi ~/.config/openbox/rc.xml
<keybind key="Print">
<action name="Execute">
<command>scrot 'ArcoLinux_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES)'</command>
</action>
</keybind>
<keybind key="A-Print">
<action name="Execute">
<command>scrot -d 5 'ArcoLinux_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES)'</command>
</action>
</keybind>
<keybind key="C-Print">
<action name="Execute">
<command>xfce4-screenshooter</command>
</action>
</keybind>
を下記に変更します(351、361行)。
<keybind key="Print">
<action name="Execute">
<command>xfce4-screenshooter -c -f</command>
</action>
</keybind>
<keybind key="A-Print">
<action name="Execute">
<command>scrot -d 5 'ArcoLinux_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES)'</command>
</action>
</keybind>
<keybind key="C-Print">
<action name="Execute">
<command>xfce4-screenshooter -c -w</command>
</action>
</keybind>
これで、一気にクリップボードにコピーまで、行えます。
5. 設定 MX Linux
「xfce4-clipman」の起動。
sh
cat << 'EOF' >> ~/.config/openbox/autostart
xfce4-clipman &
EOF
exit
カスタマイズ用にファイルをコピーして編集
cp /etc/xdg/openbox/rc.xml ~/.config/openbox/rc.xml
vi ~/.config/openbox/rc.xml
<!-- Launch scrot when Print is pressed -->
<keybind key="Print">
<action name="Execute">
<command>scrot</command>
</action>
</keybind>
を下記へ変更します。
<!-- Launch scrot 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>
6. 設定 SparkyLinux
「xfce4-clipman」の起動。
sh
cat << 'EOF' >> ~/.config/openbox/autostart.sh
xfce4-clipman &
EOF
exit
次に
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>
7. 設定 Fedora
「xfce4-clipman」の起動。
sh
cat << 'EOF' >> ~/.config/openbox/autostart
xfce4-clipman &
EOF
exit
次に
cp /etc/xdg/openbox/rc.xml ~/.config/openbox/rc.xml
vi ~/.config/openbox/rc.xml
</keybind>
</keyboard>
を下記へ変更します。
</keybind>
<!-- 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>
</keyboard>
8. Manjaro
「xfce4-clipman」の起動。
sh
cat << 'EOF' >> ~/.config/openbox/autostart
xfce4-clipman &
EOF
exit
次に
vi ~/.config/openbox/rc.xml
<keybind key="Print">
<action name="Execute">
<command>scrot 'screenshot_%Y%m%d-%H%M%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; xdg-open $$(xdg-user-dir PICTURES)/$f'</command>
</action>
</keybind>
を下記へ変更します。
<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>
9. 状況
前項にも記しましたが、「ArcoLinux 19.12.15」では、「xfce4-screenshooter」で、クリップボードへのコピーまで行えました。
ディストリビューションごとの状況を、確認できたときに記しておきます。