1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-24 07:46:59 +03:00
Commit Graph

62 Commits

Author SHA1 Message Date
Wez Furlong
7e460c3784 ci: restore centos7
It was removed in be1b54ba33 citing
difficulties with GH CLI, but I think I subsequently solved
that by not running it in the container.

refs: https://github.com/wez/wezterm/issues/1947
refs: https://github.com/wez/wezterm/issues/1948
2022-05-10 23:12:11 -07:00
Wez Furlong
e23e972c5c sync color schemes
Sync with upstream: ba8c68f212
closes: https://github.com/wez/wezterm/pull/1767
2022-03-30 20:46:34 -07:00
David Rios
b036bb3b05 Improve RESIZE window_decoration on Windows 2022-03-26 07:27:54 -07:00
Basti
8020e094bb
Add context menu extension for Nautilus (#1712)
Closes #1092
2022-03-17 16:35:51 -07:00
Wez Furlong
78ea214a96 avoid modern bash feature when testing for BLE_VERSION
refs: #1572
2022-01-22 08:07:50 -07:00
Sandro Jäckel
56e9a9af7e Add support for blesh hooks 2022-01-21 09:22:58 -08:00
Sandro Jäckel
3cc26cc7b8 Tell shellcheck the right shell that not everyting lights up like a christmas tree 2022-01-21 09:22:58 -08:00
Wez Furlong
070c4030c6 Bundle Symbols Nerd Font Mono
Built using:

```
./FontForge-2020-11-07-21ad4a1-x86_64.AppImage --script $PWD/font-patcher "$PWD/src/unpatched-fonts/NerdFontsSymbolsOnly/NerdFontsSymbolsOnly Template 1000 em.ttf" --powerline --use-single-width-glyphs -out /tmp/nerd-fonts-out --fontawesome --fontawesomeextension --fontlinux --octicons --codicons --powersymbols --powerline --powerlineextra --mdi --weathericons
```

which is everything *except* Pomicons at the time of writing, pending
clarifications of its distribution license
(https://github.com/ryanoasis/nerd-fonts/issues/266)

refs: https://github.com/wez/wezterm/issues/1521
2022-01-16 16:04:35 -07:00
Wez Furlong
6d844f28ab update conpty to d7d89ef354
Our last update was more than 6 months ago.

refs: https://github.com/wez/wezterm/issues/1509
2022-01-08 09:37:48 -07:00
Wez Furlong
43dff29391 Sync with iTerm2-Color-Schemes
Sync with:
555db64e47

and update the screenshots for the docs
2021-12-31 10:43:30 -07:00
Wez Furlong
00a393b3d1 gui: bundle and use Roboto for title font on Linux + Windows
The default we use on macOS looks decent.  Roboto is a similar
looking font that we can use for the other platforms.
I may make it the same on all three once I've had a chance
to compare it on a mac.
2021-12-30 17:51:22 -07:00
Wez Furlong
b1bc74d31f logo: refine appearance a bit more
This commit switches back to wezterm-icon.svg as the source of
the icon, but modifies it:

* Removed mac style title bar + window manipulation icons
* Increases the corner radius
* Adjusts the text position and size

This makes it somewhere between the original and one of the alternate
icons in 98b71cbfb6

I chose to modify the original source as it didn't have padding
baked into the svg file, and I didn't feel like wrestling with
the contributed svg in inkscape to remove it.
2021-12-29 18:14:26 -07:00
Wez Furlong
98b71cbfb6 rename contributed icons
The spaces are awkward to work with from the terminal
2021-12-29 17:24:24 -07:00
Wez Furlong
5bf366f8be logo: crop out padding for linux and windows icons 2021-12-25 13:04:55 -07:00
Wez Furlong
e9850d318a remove border from the new mac icon
otherwise it looks smaller than the others in the cmd-tab switcher
2021-12-22 20:13:38 -07:00
Wez Furlong
5a60bddba7 logo: switched to alternate logo
refs: https://github.com/wez/wezterm/pull/1454
refs: https://github.com/wez/wezterm/discussions/1142
2021-12-22 20:04:44 -07:00
ghifarit53
fa82cbaad4 Add some new icon designs 2021-12-22 18:58:52 -08:00
Anthony Maki
e0cb6971b2 wezterm-font: update Noto Color Emoji to v2.034 (Unicode 14.0) 2021-12-21 06:55:53 -08:00
Anthony Maki
b5d6687f5a wezterm-font: update Fira Code to v6.2 2021-12-21 06:55:53 -08:00
Sandro Jäckel
66b6f9e6d0 Passthru exit code for other commands in $PROMPT_COMMAND 2021-12-10 20:50:38 -08:00
Wez Furlong
26c727bf29 fonts: update Last Resort font to unicode 14 edition
https://github.com/unicode-org/last-resort-font/releases/tag/14.000
2021-12-01 22:06:24 -07:00
Wez Furlong
06e35bbd52 ci: maybe enable codesigning on macos
refs: https://github.com/wez/wezterm/issues/482
2021-11-22 11:27:14 -07:00
Sandro Jäckel
cab2c87efe Revert "Remove TryExec to fix desktop file on Debian Bookworm"
This reverts commit 0fc2fdd38d.
2021-08-25 13:37:00 -07:00
Sandro
0fc2fdd38d Remove TryExec to fix desktop file on Debian Bookworm 2021-08-25 09:40:07 -07:00
Wez Furlong
ba0aa5432b sync colorschemes with upstream
Built from 7f73027b71141a878cd3705ec664f5af8f3cfec5 in
https://github.com/mbadolato/iTerm2-Color-Schemes.git
2021-08-14 12:12:27 -07:00
Anthony Maki
4a4f2df268 wezterm-font: update bundled Noto Color Emoji to v2.028 (design update) 2021-08-06 10:53:52 -07:00
adrian5
4377323a19 Remove duplicate colorscheme file 2021-06-27 09:57:56 -07:00
Wez Furlong
b5bfec6510 update conpty to v1.9.1445.0
refs: https://github.com/microsoft/terminal/issues/376

This also enables as the conpty layer the new win32 mode discussed in
https://github.com/wez/wezterm/issues/318
wezterm itself is not able to use this mode yet.
2021-05-28 15:11:29 -07:00
Wez Furlong
a45c500eba update colorschemes
https://github.com/mbadolato/iTerm2-Color-Schemes.git @
ea6f5ff97f23902bb62334bfc8f4974fbd65b48b
2021-05-02 07:47:23 -07:00
Anthony Maki
26b66aad32 Updates NotoColorEmoji.ttf to asset provided at https://github.com/googlefonts/noto-emoji/releases/tag/v2020-09-16-unicode13_1 2021-04-27 06:24:04 -07:00
Wez Furlong
4b7f774bc5 Bundle PowerlineExtraSymbols as a fallback font 2021-03-06 19:12:35 -08:00
Wez Furlong
d56c5178da shaping: add test for FiraCode
Adds a test and seemingly a fix for https://github.com/wez/wezterm/issues/478#issuecomment-787520977

Fira Code is OFL-1.1 licensed like the other fonts we include,
however, I'm not distributing Fira Code with wezterm.
2021-02-28 13:35:00 -08:00
Wez Furlong
7c18b8efad macos: tweak Info.plist
This adds custom descriptions for when permission is required
to inspect the filesystem.

I've never seen these actually take effect.
2021-02-15 18:08:09 -08:00
Wez Furlong
475260d3e3 Update bundled JetBrainsMono font to 2.225
refs: #452
2021-02-11 23:56:07 -08:00
Wez Furlong
8e0fd3717e wezterm.sh: improve non-bash/non-zsh behavior
When we're not being run by bash or zsh then we can't use
bashisms to test that we're bash or zsh.

Just use good old posix test syntax instead.

refs: #447
2021-01-30 12:42:01 -08:00
Wez Furlong
aee37784e5 Windows: fix initial window size when display scaling != 100%
The heart of this issue was that the resize callbacks have two
layers of state; one in the low level window and one in the application
level window.

On Windows, the system triggers the low level callback prior to
opengl being initialized.  Since the application level depends on
the opengl state, there are some code paths where it NOPs and
returns early if opengl isn't yet initialized.

When the system-wide display scaling is set to say 200%, the application
layer can't know the effective DPI of the window it is creating because
it doesn't know which monitor will be used or what its DPI will be.

New windows are created at the default DPI of 96, and we rely on the
resize events to detect the actual DPI and adjust the scaling in
the window.

The early call of the resize callback meant that the low level and
application level size/dpi state was out of sync and the result was
that the window had half as many pixels as it should, but that the
terminal model was still sized as though it had the correct amount
(twice as many as visible).  This resulted in the window being too
small for the viewport.

The resolution is simple: we now suppress emitting the resize processing
until opengl has been initialized.

The test scenario for this is:

* Set system scaling to 100%
* Launch wezterm
* Set system scaling to 200%
* Observe that wezterm scales to match
* Press CTRL-SHIFT-N to spawn a new window
* Observe that the new window size matches the other window (previously
  this one would be half the size)

While I was looking at this, I noticed that the manifest didn't
match the DPI awareness that we have in the code, so update that.

refs: https://github.com/wez/wezterm/issues/427
2021-01-18 09:27:04 -08:00
Wez Furlong
3c3ba6a30a icon: add padding to mac icon
Converts the svg font to a path so that rendering doesn't
require the full Operator Mono font locally.

Adjust the update script to add 10% padding around the icon
on macOS as @erf suggests that the increased padding looks
better/more consistent with other macOS apps.
2020-12-26 17:08:38 -08:00
Wez Furlong
404844522c wezterm: update icon
I was playing around with inkscape and this simple icon is
the result.

Add a script to generate the various bitmap icons for all three
platforms.  It is intended to run on a Linux host.
2020-12-26 01:49:40 -08:00
Wez Furlong
3bd8d8c845 wezterm-font: bundle a last resort font
Bundle the *Last Resort High-Efficiency* font from
https://github.com/unicode-org/last-resort-font/
version 13.001 (Oct 22 2020).

This provides a more useful fallback glyph than we'd otherwise
produce if there is no matching glyph in any of the fonts.

Its license is OFL-1.1 which is compatible with the other
bundled fonts.
2020-11-22 16:12:20 -08:00
Wez Furlong
eb22808761 wezterm: add shell integration for bash and zsh
This commit provides a shell script that hooks into bash and zsh
to enable OSC 7 and semantic zones.

The packaging for Fedora and Debian deploys that script to
/etc/profile.d.
2020-11-14 09:07:56 -08:00
Wez Furlong
fc24528f21 wezterm: update conpty and openconsole
These were build from this version: https://github.com/microsoft/terminal/releases/tag/v1.4.3141.0
2020-11-12 22:06:02 -08:00
Wez Furlong
5b9c86d836 colors: set cursor border to bg in the color schemes
This avoids having a green (by default) border around the cursor.
The dynamic color escape sequences have been updated to also
change the border color when the cursor background color is changed.
2020-10-27 09:17:20 -07:00
Wez Furlong
83d604fe29 wezterm: .desktop launches wezterm
I changed this to `wezterm-gui` thinking it would be a hair more
efficient, but it makes it difficult to access the cli side of
things from the appimage.
2020-10-24 23:25:48 -07:00
Wez Furlong
89257c73bb wezterm: a few more wezterm-gui fixups
These parts of packaging are likely sensitive to the change also
2020-10-24 17:17:45 -07:00
Wez Furlong
2ec12b5426 wezterm: fixup packaging for wezterm-gui split
refs: #301
2020-10-24 16:54:36 -07:00
Wez Furlong
95ab1b34e1 Update color schemes
Sync with 0966005b77
2020-10-19 22:51:48 -07:00
Wez Furlong
2c0c89a97b Windows: update openconsole.exe
Built from 90452664ff

This seems to make mouse wheel scrolling work more reliably for me in
vim/wsl.
2020-10-17 20:15:52 -07:00
Wez Furlong
b7e303f39c Windows: prefer to use Direct3D11 via ANGLE
This is similar in spirit to the work in 4d71a7913a
but for Windows.

This commit adds ANGLE binaries built from
07ea804e62
to the repo.  The build and packaging will copy those into the same
directory as wezterm.exe so that they can be resolved at runtime.

By default, `prefer_egl = true`, which will cause the window
crate to first try to load an EGL implementation.  If that fails,
or if `prefer_egl = false`, then the window crate will perform
the usual WGL initialization.

The practical effect of this change is that Direct3D11 is used for the
underlying render, which avoids problematic OpenGL drivers and means
that the process can survive graphics drivers being updated.

It may also increase the chances that the GPU will really be used
in an RDP session rather than the pessimised use of the software
renderer.

The one downside that I've noticed is that the resize behavior feels a
little janky in comparison to WGL (frames can render with mismatched
surface/window sizes which makes the window contents feel like they're
zooming/rippling slightly as the window is live resized). I think this
is specific to the ANGLE D3D implementation as EGL on other platforms
feels more solid.

I'm a little on the fence about making this the default; I think
it makes sense to prefer something that won't quit unexpectedly
while a software update is in progress, so that's a strong plus
in favor of EGL as the default, but I'm not sure how much the
resize wobble is going to set people off.

If you prefer WGL and are fine with the risk of a drive update
killing wezterm, then you can set this in your config:

```lua
return {
  prefer_egl = false,
}
```

refs: https://github.com/wez/wezterm/issues/265
closes: https://github.com/wez/wezterm/issues/156
2020-10-17 19:08:16 -07:00
Wez Furlong
4d71a7913a macOS: bundle and use MetalANGLE to enable Metal rendering
This commit adjusts the window layer to have it try to load EGL
implementations on macOS.  This is important as the system
provided OpenGL implementation is deprecated and I wanted to
have a path forward for when it is finally removed.

If EGL fails to initialize, we fall back to the CGL/OpenGL
implementation that we used previously.

I've included binaries built for 64-bit intel from the MetalANGLE
project; here's how I built them:

```
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git --depth 1
git clone https://github.com/kakashidinho/metalangle --depth 1
cd metalangle
PATH=$PWD/../depot_tools:$PATH python scripts/bootstrap.py
PATH=$PWD/../depot_tools:$PATH gclient sync
PATH=$PWD/../depot_tools:$PATH gn --args="is_debug=false angle_enable_metal=true angle_enable_vulkan=false angle_enable_gl=false angle_build_all=false" gen out/Release
PATH=$PWD/../depot_tools:$PATH autoninja -C out/Release
```

Those steps are a little too long to want to put them directly
into the wezterm CI.

It is important for metalangle to be >= 8230df39a5
in order for scaling to be handled correctly when dragging windows
between monitors.

refs: https://github.com/kakashidinho/metalangle/issues/34
2020-10-17 09:34:01 -07:00
Wez Furlong
e6a858664f windows: Software frontend is now mesa llvmpipe
This is a bit of a switch-up, see this comment for more background:
refs: https://github.com/wez/wezterm/issues/265#issuecomment-701882933

This commit:

* Adds a pre-compiled mesa3d opengl32.dll replacement
* The mesa dll is deployed to `<appdir>/mesa/opengl32.dll` which by
  default is ignored.
* When the frontend is set to `Software` then the `mesa` directory
  is added to the dll search path, causing the llvmpipe renderer
  to be enabled.
* The old software renderer implementation is available using the
  `OldSoftware` frontend name

I'm not a huge fan of the subdirectory for the opengl32.dll, but
I couldn't get it to work under a different dll name; the code
thought that everything was initialized, but the window just rendered
a white rectangle.
2020-10-01 18:31:57 -07:00