<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>bash on Christian Knedel</title>
    <link>https://www.christian-knedel.de/ja/tags/bash/</link>
    <description>Recent content in bash on Christian Knedel</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>ja-jp</language>
    <lastBuildDate>Sun, 04 Apr 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://www.christian-knedel.de/ja/tags/bash/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>ショートストーリー：xDoToolsとxClipによるデスクトップコントロール</title>
      <link>https://www.christian-knedel.de/ja/post/2021/april/20210404-xdotools-xclip/</link>
      <pubDate>Sun, 04 Apr 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/ja/post/2021/april/20210404-xdotools-xclip/</guid>
      <description>このチュートリアルでは、Bashを使用してLinux - デスクトップを制御する方法を紹介します。Bashロボットに必要なパッケージは以下の通りです。 x  &amp;ndash;  +   Terminal   $ apt-get install xdotool xclip   その後、例えば、すべての xdotool コマンドを使用することができます。
#!/bin/bash #mouse bewegen xdotool mousemove 100 200 #Mouse - Koordinaten erfassen xdotool getmouselocation #Mouse-klick xdotool click 1 Mouse-Klick auf Koordinaten xdotool mousemove 100 200 click 1 #usw... 次の例では、Firefoxのウィンドウを検索して、Ubuntuのアドレスで新しいタブを開いています。
WID=$(xdotool search firefox | head -n1) ## Window-ID von Firefox ermitteln xdotool windowactivate $WID xdotool key &amp;quot;ctrl+t&amp;quot; ## neuen Reiter öffnen xdotool key &amp;quot;ctrl+l&amp;quot; ## Fokussieren der Adressleiste xdotool type --delay 100 &amp;quot;ubuntuusers.</description>
    </item>
    
    <item>
      <title>PDFページ概要の生成</title>
      <link>https://www.christian-knedel.de/ja/post/2020/february/20200214-imagemagick-pdf-overview/</link>
      <pubDate>Fri, 14 Feb 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/ja/post/2020/february/20200214-imagemagick-pdf-overview/</guid>
      <description>PDFファイルからページ概要画像を作成するなら、この方法が最適です!    ステップ1：作業用フォルダの作成 このコマンドは、一時的な作業フォルダを作成するために使用します。 x  &amp;ndash;  +   Terminal   $ mkdir /tmp/bilder  
ステップ2：別ページ 次のコマンドは、PDFの各ページの画像を作成します。 x  &amp;ndash;  +   Terminal   $ convert 716023b632a9cbe6cad3ab368c202288.pdf /tmp/bilder/page.png  
ステップ3：イメージのマウント あとは、コラージュを組み立てるだけです。 x  &amp;ndash;  +   Terminal   $ montage /tmp/bilder/* -shadow -geometry &amp;#39;400x400&amp;#43;2&amp;#43;2&amp;gt;&amp;#39; -background &amp;#39;#f1f1f1&amp;#39; uebersich.jpg</description>
    </item>
    
    <item>
      <title>Raspberry PI：PI用CPUのヒートフリー化</title>
      <link>https://www.christian-knedel.de/ja/post/2020/february/20200214-rpi-cpu-temp/</link>
      <pubDate>Fri, 14 Feb 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/ja/post/2020/february/20200214-rpi-cpu-temp/</guid>
      <description>特定の温度でラズベリーのスイッチを切るならCrontab経由でCPUの温度をチェックするスクリプトがあるのですが。
#!/bin/sh # This script reads the Broadcom SoC temperature value and shuts down if it # exceeds a particular value. # 80ºC is the maximum allowed for a Raspberry Pi. # Get the reading from the sensor and strip the non-number parts SENSOR=&amp;quot;`/opt/vc/bin/vcgencmd measure_temp | cut -d &amp;quot;=&amp;quot; -f2 | cut -d &amp;quot;&#39;&amp;quot; -f1`&amp;quot; # -gt only deals with whole numbers, so round it. TEMP=&amp;quot;`/usr/bin/printf &amp;quot;%.</description>
    </item>
    
    <item>
      <title>短編：Elgato Stream Deckを使ったBashスクリプト</title>
      <link>https://www.christian-knedel.de/ja/post/2020/february/20200221-elgato-stream-deck/</link>
      <pubDate>Fri, 07 Feb 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/ja/post/2020/february/20200221-elgato-stream-deck/</guid>
      <description>Elgato Stream Deckにbashスクリプトを組み込む場合、まずbashスクリプトが必要です。
ステップ1：Bashスクリプトを作成する。 以下の内容で「say-hallo.sh」というファイルを作成します。
#!/bin/bash say &amp;quot;hallo&amp;quot; ステップ2：権利の設定 次のコマンドは、そのファイルを実行可能にするものです。 x  &amp;ndash;  +   Terminal   $ chmod 755 say-hallo.sh  
ステップ3：Bashスクリプトをデッキに組み込む 3.1) これで、Stream Deckアプリを開くことができます。    3.2) 次に、「Open System」アクションをボタンにドラッグします。    3.3) これで、bashスクリプトを選択できるようになりました。    ステップ4：完了 新しいボタンが使えるようになりました。</description>
    </item>
    
  </channel>
</rss>
