Comments (3)
I managed to do something similar, maybe it will be useful for you:
-- Set the correct window size at the startup
wezterm.on('gui-startup', function(cmd)
local active_screen = wezterm.gui.screens()["active"]
local _, _, window = wezterm.mux.spawn_window(cmd or {})
if active_screen.width < 2560 then
-- Laptop: open full screen
window:gui_window():maximize()
else
-- Desktop: place on the right half of the screen
window:gui_window():set_position(active_screen.width / 2, 0)
window:gui_window():set_inner_size(active_screen.width / 2, active_screen.height)
end
end)
from wezterm.
That does it. I did discover that creating a new window doesn't apply the size change, I guess gui-startup
is global rather than per-window, but that's such a rare occurrence for me I may or may not bother trying to fix it.
from wezterm.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
from wezterm.
Related Issues (20)
- Wezterm-gui.exe still spawn a cmd on windows HOT 17
- Ability to fuzzy match when using CharSelect
- Control+K Shortcut for Katakana Conversion Not Working on WezTerm HOT 2
- Ability to open explicit hyperlinks from the keyboard. HOT 1
- activate-pane Fail
- Support xdg-activation when opening URLs
- Chrome flagging download as suspicious HOT 2
- `wezterm cli tlscreds` generates a certificate that does not use FQDN
- [FEATURE] Request to align tabs left or right on the tab bar
- default local_echo_threshold_ms 100 not set for default_ssh_domains() ?
- `wezterm cli` commands are very slow, for example when switching panes
- env_logger
- Wezterm changes current working directory on nvim lsp attach HOT 4
- More options from for DOMAINS in `ShowLauncherArgs`
- Setting `macos_window_background_blur` above 0 leads to high GPU usage
- Unable to use ScrollToPrompt to scroll to the very first prompt on Arch Linux with Bash
- Mini Map in scroll bar?
- Long delay updating GUI, periodic key repeats
- Text cursor flickers and jumps around when updating terminal HOT 2
- When using Neovim in wezterm, there will be borders around it that cannot be filled. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wezterm.