Raspbian OSでスクリーンキャプチャのキーボードショートカットキーを設定する
※ 当ページには【広告/PR】を含む場合があります。
2020/01/20
LXDE
LXDE
Openbox
Scrotのインストール
$ sudo apt-get update
$ sudo apt-get install scrot
scrot --help
$ scrot -d 5

Openboxの設定ファイル
scrot
$ sudo nano /etc/xdg/openbox/lxde-pi-rc.xml
Rasbian Buster
scrot
print
scrot

Print
<keybind>
<!-- Keybindings for running applications -->
<keybind key="Print">
<action name="Execute">
<command>scrot</command>
<!-- Printキーを押すと全画面取得 -->
</action>
</keybind>
<keybind key="A-Print">
<action name="Execute">
<command>scrot -u</command>
<!-- Alt + Printキーを押すとフォーカス中の画面取得 -->
</action>
</keybind>
<keybind key="C-Print">
<action name="Execute">
<command>scrot -s</command>
<!-- Control + Printキーを押し、マウスで選択範囲取得 -->
</action>
</keybind>
<keybind key="C-S-Print">
<action name="Execute">
<command>scrot -d 5</command>
<!-- Control + Shift + Printキーを押し、5秒後に全画面取得 -->
</action>
</keybind>
余談 ~ nanoによるテキスト編集
nano
vi
^
Ctrlボタンを押しながら...

アンドゥ(一つ前の操作まで戻す)
リドゥ(一つ後の操作をやりなおす)
アンドゥ:
方法①: Esc キーを押した後で U キー
方法②: Alt キーを押しながら U キー
方法③: Option キーを押しながら U キー
リドゥ:
方法①: Esc キーを押した後で E キー
方法②: Alt キーを押しながら E キー
方法③: Option キーを押しながら E キー
まとめ
参考サイト
記事を書いた人
ナンデモ系エンジニア
電子工作を身近に知っていただけるように、材料調達からDIYのハウツーまで気になったところをできるだけ細かく記事にしてブログ配信してます。
カテゴリー