1. 概要
「Spectacle」のショートカットは、無効化できたものの、カスタマイズのショートカットに Ctrl+Print が設定できなかったので、「sxhkd」にまかせます。
下記のものは、「sxhkd」の力を借りなくても大丈夫でした(別ページに記載のものは、下記に表示していません)。
・PCLinuxOS
・Slackware
2. インストール
「root」ユーザ権限で。
「antiX」
apt install -y xfce4-screenshooter xfce4-clipman sxhkd
「EndeavourOS」
yes | pacman -S xfce4-screenshooter xfce4-clipman-plugin
「Linux Mint」
apt install -y xfce4-screenshooter xfce4-clipman
「PCLinuxOS」
apt-get install -y xfce4-screenshooter xfce4-clipman-plugin
「Slackware」
実は、「Slackware 15.0」インストール時に、デスクトップで「XFCE」を選んだため、最初からインストールされていたのですが、インストールされていない環境にインストールするのであれば
slackpkg install xfce4-screenshooter xfce4-clipman-plugin
3. 自動起動
「xfce4-clipman」と「sxhkd」の自動起動を設定します。
「sxhkd」をインストールしていない場合は、「xfce4-clipman」の設定のみです。
ログインユーザで。
「antiX」
(「IceWM」の設定で、「xfce4-clipman」は起動していたので、「sxhkd」のみ)
mkdir -pv ~/.config/autostart
sh
cat << 'EOF' >> ~/.config/autostart/sxhkd.desktop
[Desktop Entry]
Type=Application
Name=sxhkd
TryExec=sxhkd
Exec=sxhkd
EOF
exit
「EndeavourOS」「Fedora」
mkdir -pv ~/.config/autostart
sh
cat << 'EOF' >> ~/.config/autostart/xfce4-clipman.desktop
[Desktop Entry]
Type=Application
Name=xfce4-clipman
TryExec=xfce4-clipman
Exec=xfce4-clipman
EOF
exit
「FreeBSD」
mkdir -pv ~/.config/autostart
sh
cat << 'EOF' >> ~/.config/autostart/xfce4-clipman.desktop
[Desktop Entry]
Type=Application
Name=xfce4-clipman
TryExec=xfce4-clipman
Exec=/bin/sh -c "/usr/local/bin/xfce4-clipman &"
EOF
exit
「EndeavourOS」「Fedora」
mkdir -pv ~/.config/autostart
sh
cat << 'EOF' >> ~/.config/autostart/xfce4-clipman.desktop
[Desktop Entry]
Type=Application
Name=xfce4-clipman
TryExec=xfce4-clipman
Exec=xfce4-clipman
EOF
exit
「Linux Mint」「Slackware」
mkdir -pv ~/.config/autostart
cp /usr/share/applications/xfce4-clipman.desktop ~/.config/autostart/.
vi ~/.config/autostart/xfce4-clipman.desktop
OnlyShowIn=XFCE;GNOME;X-Cinnamon;
の行を下記へ変更します。
(行番号は、「Fedora」のものです)
OnlyShowIn=XFCE;GNOME;X-Cinnamon;KDE;
「ALT Linux」
mkdir -pv ~/.config/autostart
cp /usr/share/applications/xfce4-clipman.desktop ~/.config/autostart/.
vi ~/.config/autostart/xfce4-clipman.desktop
Categories=GTK;Utility;TrayIcon;
OnlyShowIn=XFCE;GNOME;X-Cinnamon;
StartupNotify=false
65行目の末尾へ「KDE;」を追加します。
(行番号・内容はプラットフォームによって異なります)
OnlyShowIn=XFCE;GNOME;X-Cinnamon;KDE;
「PCLinuxOS」
mkdir -pv ~/.config/autostart
sh
cat << 'EOF' >> ~/.config/autostart/xfce4-clipman.desktop
[Desktop Entry]
Type=Application
Name=xfce4-clipman
TryExec=xfce4-clipman
Exec=/bin/sh -c "/usr/bin/xfce4-clipman &"
EOF
exit
4. 既存のショートカットキーを無効化
「KDE システム設定」を起動して
「ショートカット」