操作
機能 #427
未完了atri の Wayland への移行
開始日:
期日:
進捗率:
0%
一時中断:
いいえ
pinned:
いいえ
リマインド予定日:
前回確認日:
2025/06/22
管理外残件あり:
いいえ
説明
いい加減やるぞ
nop_thread さんが10ヶ月前に更新
- リマインド予定日 を削除 (
2024/07/28) - 前回確認日 を 2024/07/14 から 2024/09/01 に変更
- 管理外残件あり を いいえ にセット
何もしてない。虚無。
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 での問題解決を試みるよりも自前で書く方が確実。
操作