- 1. 概要
- 2. インストール
- 3. クリップボード
- 4. ショートカットキー
1. 概要
以下、「Alpine Linux 3.23.3」での操作です。
2. インストール
「root」ユーザ権限で。
apk add xfce4-clipman-plugin xfce4-screenshooter
3. クリップボード
自動起動の仕掛けを行っているものとして。
ログインユーザで。
sh
cat << EOF >> ~/.config/awesome/autostart.sh
run "xfce4-clipman"
exit
4. ショートカットキー
以下のキーを割り当てます。
・Print 全画面をキャプチャしてクリップボードにコピー
・Crtl+Print アクティブウィンドウをキャプチャしてクリップボードにコピー
ログインユーザで。
vi ~/.config/awesome/rc.lua
awful.key({ modkey }, "p", function() menubar.show() end,
{description = "show the menubar", group = "launcher"}),
})
240行と241行の間に下記を加えます。
-- screenshots
awful.key({ }, "Print", function () awful.util.spawn("xfce4-screenshooter -c -f") end,
{description = "全画面キャプチャ", group = "screenshots"}),
awful.key({ "Control" }, "Print", function () awful.spawn.with_shell("NO_AT_BRIDGE=1 xfce4-screenshooter -c -w" ) end,
{description = "アクティブウィンドウキャプチャ", group = "screenshots"}),
ログインしなおせば、思い通りの動きになります。
|