Skip to content

feat(wezterm): add manual work-mode toggle for opacity - #175

Merged
edge2992 merged 1 commit into
mainfrom
feat/wezterm-work-mode
Aug 9, 2026
Merged

feat(wezterm): add manual work-mode toggle for opacity#175
edge2992 merged 1 commit into
mainfrom
feat/wezterm-work-mode

Conversation

@edge2992

@edge2992 edge2992 commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • 画面共有/本番作業時に背景の透明化・写真表示を切りたいという要望に対応
  • Cmd+Shift+P(macOS) / Ctrl+Shift+P(Linux) で「仕事モード」をトグルし、window_background_opacity / text_background_opacity を 1.0 に固定、フルスクリーン時の自動背景写真表示も抑制
  • 状態は wezterm.GLOBAL に保持し、automatically_reload_config によるリロードをまたいで維持
  • トグル時に toast_notification でON/OFFを通知

Test plan

  • make lint が通ることを確認
  • wezterm --config-file ... show-keys で構文エラーなくロードでき、SUPER P -> EmitEvent("toggle-work-mode") が登録されていることを確認
  • 実機での目視確認(マージ後 chezmoi apply 後に実施): Cmd+Shift+P でON/OFFがトグルし、toast表示・透明度切替・自動リロード後の状態維持・全画面時の写真抑制が期待通りであること

Fullscreen used to auto-apply a daily background photo + full
opacity, but there was no way to disable transparency/photos on
demand for screen-sharing or production work where a decorative
background looks unprofessional.

Add a Cmd/Ctrl+Shift+P toggle (EmitEvent + wezterm.on handler)
that forces window/text background opacity to 1.0 and suppresses
the fullscreen photo, taking priority over the existing fullscreen
auto-photo logic. State lives in wezterm.GLOBAL so it survives
automatically_reload_config re-execution. A toast notification
confirms ON/OFF.
@edge2992
edge2992 merged commit b989608 into main Aug 9, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant