spectrwm - 共通事項 - 画面キャプチャ - Alpine Linux


クラウディア 


1. 概要
2. インストール
3. 設定

1. 概要

 以下、「Alpine Linux 3.23.3 spectrwm」での操作です。

2. インストール

 「root」ユーザ権限で。

apk add xfce4-clipman-plugin xfce4-screenshooter xfce4-screenshooter-lang

3. 設定

 「xfce4-clipman」の起動と「xfce4-screenshooter」のキーボードショートカットを設定します。  以下、ログインユーザで。
 キー   定義    意味  
Print xfce4-screenshooter -c -f 全画面をキャプチャしてクリップボードへコピー
Ctrl+Print xfce4-screenshooter -c -w アクティブウィンドウをキャプチャしてクリップボードへコピー


vi ~/.spectrwm.conf
 「xfce4-clipman」を起動します。  自動起動の設定を行っているものとして。

sh
cat << EOF >> ~/.spectrwm_start.sh
run "xfce4-clipman"
EOF
exit
 「xfce4-screenshooter」のプログラム定義と、ショートカットキーの定義。

sh
cat << EOF >> ~/.spectrwm.conf
program[screenshot_all]       = xfce4-screenshooter -c -f
program[screenshot_wind]      = xfce4-screenshooter -c -w

bind[screenshot_all]          = Print
bind[screenshot_wind]         = Control+Print
EOF
exit
 これで、ログインしなおせば、思い通りの動きになります。