sway/README.ja.md

91 lines
3.7 KiB
Markdown
Raw Normal View History

2017-10-03 02:26:37 +00:00
# sway [![](https://api.travis-ci.org/swaywm/sway.svg)](https://travis-ci.org/swaywm/sway) [![Donate with fosspay](https://drewdevault.com/donate/static/donate-with-fosspay.png)](https://drewdevault.com/donate?project=4)
2017-09-20 08:29:28 +00:00
"**S**irCmpwn's **Way**land compositor"は**開発中**の
i3互換な[Wayland](http://wayland.freedesktop.org/)コンポジタです。
2017-10-03 02:26:37 +00:00
[FAQ](https://github.com/swaywm/sway/wiki)も合わせてご覧ください。
2017-09-20 08:29:28 +00:00
[IRC チャンネル](http://webchat.freenode.net/?channels=sway&uio=d4) (#sway on
irc.freenode.net)もあります。
[![](https://sr.ht/ICd5.png)](https://sr.ht/ICd5.png)
2017-09-20 08:29:28 +00:00
もしSwayの開発を支援したい場合は[SirCmpwnのPatreon](https://patreon.com/sircmpwn)や
2017-10-03 02:26:37 +00:00
[こちら](https://github.com/swaywm/sway/issues/986)をご覧ください。
2017-09-20 08:32:57 +00:00
誰でも賞金を受け取る事ができますし、自分の欲しい機能に賞金を掛ける事が出来ます。
2017-09-20 08:29:28 +00:00
PatreonはSwayの開発を支援するのにもっとも便利です。
2017-09-20 08:29:28 +00:00
## リリース
2017-08-14 20:12:48 +00:00
2017-09-20 08:29:28 +00:00
Swayのリリースは[B22DA89A](http://pgp.mit.edu/pks/lookup?op=vindex&search=0x52CB6609B22DA89A)で書名されて
2017-10-03 02:26:37 +00:00
[GitHub](https://github.com/swaywm/sway/releases)で公開されています。
2017-09-20 08:29:28 +00:00
## 開発状況
2017-10-03 02:26:37 +00:00
- [i3のサポート](https://github.com/swaywm/sway/issues/2)
- [IPCのサポート](https://github.com/swaywm/sway/issues/98)
- [i3barのサポート](https://github.com/swaywm/sway/issues/343)
- [i3-gapsのサポート](https://github.com/swaywm/sway/issues/307)
- [セキュリティ対応](https://github.com/swaywm/sway/issues/984)
2017-09-20 08:29:28 +00:00
## インストール
2017-09-20 08:29:28 +00:00
### パッケージから
2017-09-20 08:29:28 +00:00
Swayは沢山のディストリビューションで提供されています。"sway"パッケージをインストールしてみてください。
2017-10-03 02:26:37 +00:00
もし、パッケージが存在しないならば、[このページ](https://github.com/swaywm/sway/wiki/Unsupported-packages)
2017-09-20 08:29:28 +00:00
を参照してインストールしてみてください。
2017-09-20 08:29:28 +00:00
もし、Swayのパッケージを提供したいならば、SwayのIRCチャンネルか"sir@cmpwn.com"に連絡してください。
2017-09-20 08:29:28 +00:00
### ソースコードから
2017-09-20 08:29:28 +00:00
まずはコンパイルや実行に必要なソフトウェアやライブラリをインストールしてください。:
* cmake
* [wlc](https://github.com/Cloudef/wlc)
* wayland
* xwayland
* libinput >= 1.6.0
* libcap
* asciidoc
* pcre
* json-c <= 0.12.1
* pango
* cairo
* gdk-pixbuf2 *
2017-09-20 08:29:28 +00:00
* pam **
* imagemagick (swaygrabでスクリーンショットを撮るのに必要です)
* ffmpeg (swaygrabで画面を録画するのに必要です)
_\*swaybar,swaybg,swaylockが使用します_
2017-09-20 08:29:28 +00:00
_\*\*swaylockが使用します_
2017-09-20 08:29:28 +00:00
ターミナルで次のコマンドを実行してください:
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_SYSCONFDIR=/etc ..
make
sudo make install
2017-09-20 08:29:28 +00:00
logindを使用している場合はバイナリにcapを設定してください:
sudo setcap "cap_sys_ptrace,cap_sys_tty_config=eip" /usr/bin/sway
2017-09-20 08:29:28 +00:00
logindを使用していない場合はバイナリにsuidを設定してください:
sudo chmod a+s /usr/local/bin/sway
2017-09-20 08:29:28 +00:00
## 設定
もし、既にi3を使用しているなら、i3のコンフィグファイルを`~/.config/sway/config`にコピーすれば動きます。
そうでないならば、サンプルのコンフィグファイルを`~/.config/sway/config`にコピーしてください。
サンプルのコンフィグファイルは基本的には`/etc/sway/config`にあります。
`man 5 sway`で各種設定について確認できます。
2017-09-20 08:29:28 +00:00
## 実行
2017-09-20 08:29:28 +00:00
`sway`をTTYから実行してください。いくつかのDesktopManagerはSwayからサポートされていませんが、動く場合もあります(gdmは特にSwayと相性が良いそうです)。