Qiita Conference 2025

鹿野壮 (@tonkotsuboy_com)

アウトプットは最強の自己投資 〜発信が人生とキャリアを変えた話〜

1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Config.ahk等を編集してbug.nをビルドする方法

Last updated at Posted at 2021-06-16

Config.ahk等を編集したbug.nを、ビルドする方法

概要

bug.nとは?

WindowsのキーマッピングソフトであるAutoHotkeyを用いて作られた、タイル型ウィンドウマネージャです!:sparkles:
(なんでキーマッピングソフトでウィンドウマネージャ作った?)

カスタマイズ性がやばく、ArchLinuxで重度にxmonadを改造し使用していた僕を受け入れてくれる、最高の相棒です

通常はConfig.iniで設定を行います

しかしながらConfig.iniではカスタマイズできない内容がたまにあるようです
その場合、ソースを直に弄る必要があります

解決

ソースを弄った場合、もちろん再ビルドが必要です

以下の手順でビルドができます:thumbsup::sparkles:

  1. まだ対象のbug.nリポジトリをbug.nリポジトリをcloneする
  2. 既にbug.nを起動している場合は、終了させる
  3. ./toolsディレクトリをexplorer.exeで開く
  4. ./tools/build.ahkを実行する
    • 同ディレクトリにデバッグログが出力されるので、もし失敗した場合はそちらを見るとよい
  5. 出力された./bugn.exeを実行する
    • なお公式から提供された未改造bugn.exeよりも、起動がなぜかかなり遅い。うちの環境だけ?

Or

$ /mnt/c/Program\ Files/AutoHotkey/Compiler/Ahk2Exe.exe /in src/Main.ahk /out bugn.exe \
    && ./bugn.exe

(これは簡単だけど、体感的には前述の方法よりもさらに起動が重い気がする。)


やったー!!

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?