feat(wezterm): add manual work-mode toggle for opacity - #175
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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表示・透明度切替・自動リロード後の状態維持・全画面時の写真抑制が期待通りであること