LoginSignup
1
3

More than 5 years have passed since last update.

chunkwmが良さそうという話

Last updated at Posted at 2019-04-03

こんにちは、ミツバです。
今回は、chunkwmを利用してみました。

koekeishiya/chunkwm

ちなみに以前までは、amethystを利用していました。
xmonadを普段使っている人には、こちらのほうが使いやすいかもしれません。

動作イメージ

以下を参照

install

# chunkwm
brew tap crisidev/homebrew-chunkwm
brew tap koekeishiya/formulae
brew install --HEAD chunkwm

# add config file and add plugin
git clone https://github.com/koekeishiya/chunkwm

cp chunkwm/examples/chunkwmrc ~/.chunkwmrc

# 補足を参照
cd chunkwm/src/plugins/tiling
make install
mkdir -p ~/.chunkwm_plugins
cp ../../../plugins/tiling.so ~/.chunkwm_plugins

cd ../border
make install
mkdir -p ~/.chunkwm_plugins
cp ../../../plugins/border.so ~/.chunkwm_plugins

cd ../ffm
make install
mkdir -p ~/.chunkwm_plugins
cp ../../../plugins/ffm.so ~/.chunkwm_plugins

cd ../../../.. && rm chunkwm

# khd
brew install khd
cp /usr/local/opt/chunkwm/share/chunkwm/examples/khdrc ~/.khdrc

# launchctl load
brew services start chunkwm
brew services start khd

多分これでinstallが終了します。

補足

brewでinstallすると、pluginは/usr/local/opt/chunkwm/share/chunkwm/pluginsにあるそうなので、exampleのconfigを以下のように書き変えるのみでpluginのbuildは不要です

#
# NOTE: specify the absolutepath to the directory to use when loading a plugin.
#

chunkc core::plugin_dir /usr/local/opt/chunkwm/share/chunkwm/plugins

config

$HOME/.khdrcでキーバインドを変更、$HOME/.chunkwmrcに設定ファイルがあり、それを編集すればいい感じに設定できます

所感

i3 likeな感じですごい良いのですが、デスクトップ移動などはmacをセーフブートしてcsrutil enableを打たないといけないっぽかったり、少し調べる必要があるかなと思いました。

参考:https://koekeishiya.github.io/chunkwm/docs/sa.html

何かいい感じの設定あったら、教えてください

追記

create desktop, focus desktopなどをする

やること

セーフブートして、csrutil disableする
その後、再起動をしてsudo chunkwm --install-saを打つ
最後にchunkwm --load-saをして終了
設定できた後は、再度セーフブートしてcsrutil enableしたらいけた

設定は以下を参照するといい感じです。

Useful tips and workarounds

今いるデスクトップの番号を知りたい

これが最高なので、使ってください
dshnkao/SpaceId

1
3
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
1
3