プロジェクト

全般

プロフィール

機能 #427

未完了

atri の Wayland への移行

nop_thread さんが12ヶ月前に追加. 3日前に更新.

ステータス:
進行中
優先度:
低:暇なとき
担当者:
開始日:
期日:
進捗率:

0%

一時中断:
いいえ
pinned:
いいえ
リマインド予定日:
前回確認日:
2025/06/22
管理外残件あり:
いいえ

説明

いい加減やるぞ

nop_thread さんが12ヶ月前に更新

  • 前回確認日2024/07/14 にセット

夏休みあたりに試したい。

nop_thread さんが10ヶ月前に更新

  • リマインド予定日 を削除 (2024/07/28)
  • 前回確認日2024/07/14 から 2024/09/01 に変更
  • 管理外残件ありいいえ にセット

何もしてない。虚無。

nop_thread さんが9ヶ月前に更新

  • 優先度低め から 低:暇なとき に変更

nop_thread さんが8ヶ月前に更新

  • 前回確認日2024/09/01 から 2024/10/15 に変更

nop_thread さんが4日前に更新

  • 前回確認日2024/10/15 から 2025/06/22 に変更

ちょっと試してみたが、 fcitx5 がうまく動いている感じがしない。
保留。

nop_thread さんが3日前に更新

  • ステータス新規 から 進行中 に変更

$WAYLAND_DISPLAY$DISPLAY が sway 起動後にセットされるから、 sway より前に systemctl --user import-environment WAYLAND_DISPLAY DISPLAY しても駄目というのがミソだった。
これをちゃんと設定したら systemd の user unit の諸々 (fcitx5 含む) が意図したとおり動作するようになった。

なお $LANG 等は sway 起動より前に設定して export しておく方が良さそう。

nop_thread さんが3日前に更新 · 編集済み

残件:

  • マウスの感度調整 (トラックボールのカーソル移動が爆速すぎる)
  • マウスのボタンリマップ
    • トラックボールの Fn2 と Fn3 を middle click にしたい。
    • Xorg の設定では Option "ButtonMapping" "1 2 3 4 5 6 7 8 9 10 2 2" としてある。
  • トラックボールのホイールエミュレーション
    • Fn2 (ボタン11) をクリックしながらボールを転がすと二次元のスクロールになる機能。
  • アプリランチャー, tmux ランチャー
    • rofi が X 用なので wofi か何かで置き換える。
  • git で署名できるか確認
    • pinentry の動きが怪しかった。

トラックボールは Xorg の設定で以下のような設定にしている。
USB と Bluetooth の両方で同じ設定が使えるように重複させているが、内容は同じ。

Section "InputClass"
	Identifier "Elecom USB Trackball Wheel Emulation"
	MatchVendor "ELECOM"
	MatchProduct "DEFT Pro"
	MatchIsPointer "yes"
	Driver "evdev"
	Option "EmulateWheel" "true"
	# 1: Left button
	# 2: Middle button (wheel click)
	# 3: Right button
	# 8: Back
	# 9: Forward
	# 10: Fn1
	# 11: Fn2
	# 12: Fn3
	Option "EmulateWheelButton" "11"
	Option "Emulate3Buttons" "false"
	Option "XAxisMapping" "6 7"
	Option "YAxisMapping" "4 5"
	# 11 -> 2: Use Fn2 as wheel click
	# 12 -> 2: Use Fn3 as wheel click
	Option "ButtonMapping" "1 2 3 4 5 6 7 8 9 10 2 2"
EndSection

Section "InputClass"
	Identifier "Elecom Bluetooth Trackball Wheel Emulation"
	MatchProduct "DEFT Pro TrackBall"
	MatchIsPointer "yes"
	Driver "evdev"
	Option "EmulateWheel" "true"
	# 1: Left button
	# 2: Middle button (wheel click)
	# 3: Right button
	# 8: Back
	# 9: Forward
	# 10: Fn1
	# 11: Fn2
	# 12: Fn3
	Option "EmulateWheelButton" "11"
	Option "Emulate3Buttons" "false"
	Option "XAxisMapping" "6 7"
	Option "YAxisMapping" "4 5"
	# 11 -> 2: Use Fn2 as wheel click
	# 12 -> 2: Use Fn3 as wheel click
	Option "ButtonMapping" "1 2 3 4 5 6 7 8 9 10 2 2"
EndSection

これを Wayland で動くようにしたいが、どうも sway では大したことはできなそう (しかもボタンリマップはバグがあるらしい) ので、特定の Wayland プロトコルを受け付ける何らかのデーモンを自前で書くとかになりそう。
というか sway-input(5) でも「Deprecated: use the virtual-pointer Wayland protocol instead.」と言われておりあまり期待できないので、たぶん下手に sway での問題解決を試みるよりも自前で書く方が確実。

nop_thread さんが3日前に更新

どうせ daemon を書くなら TourBox とかもどうにかできたら夢があるな。

他の形式にエクスポート: Atom PDF