wezterm: initial commit
This commit is contained in:
parent
c61262b023
commit
63685bef8b
18
wezterm/.footprint
Normal file
18
wezterm/.footprint
Normal file
@ -0,0 +1,18 @@
|
||||
drwxr-xr-x root/root etc/
|
||||
drwxr-xr-x root/root etc/xdg/
|
||||
drwxr-xr-x root/root etc/xdg/wezterm/
|
||||
-rw-r--r-- root/root etc/xdg/wezterm/wezterm.lua
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/bin/
|
||||
-rwxr-xr-x root/root usr/bin/strip-ansi-escapes
|
||||
-rwxr-xr-x root/root usr/bin/wezterm
|
||||
-rwxr-xr-x root/root usr/bin/wezterm-gui
|
||||
-rwxr-xr-x root/root usr/bin/wezterm-mux-server
|
||||
drwxr-xr-x root/root usr/share/
|
||||
drwxr-xr-x root/root usr/share/applications/
|
||||
-rw-r--r-- root/root usr/share/applications/org.wezfurlong.wezterm.desktop
|
||||
drwxr-xr-x root/root usr/share/icons/
|
||||
drwxr-xr-x root/root usr/share/icons/hicolor/
|
||||
drwxr-xr-x root/root usr/share/icons/hicolor/128x128/
|
||||
drwxr-xr-x root/root usr/share/icons/hicolor/128x128/apps/
|
||||
-rw-r--r-- root/root usr/share/icons/hicolor/128x128/apps/org.wezfurlong.wezterm.png
|
6
wezterm/.signature
Normal file
6
wezterm/.signature
Normal file
@ -0,0 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/jmq.pub
|
||||
RWTTPlFarK9CxHK+q2gRTNfnDTVhrcrjjDDggFv43SVAwGtEuyoet0qvrs2dj1qPDxc70F4DZnd0CTu/Vlatl5mhNBREgbFNFAg=
|
||||
SHA256 (Pkgfile) = f0e950feb2823622a7f60e4d954064d53098ffb1334d30d9a568ff67646df40b
|
||||
SHA256 (.footprint) = 8dd66b161ba5a509708a3ade8c9d8d411fb6f0da5ec8994ce5268e93661f4db4
|
||||
SHA256 (wezterm-20220408-101518-b908e2dd-src.tar.gz) = 1febb7c0453307813854295b3f933fbbd0f3a0d0f4e3a31cabb1cc245154285b
|
||||
SHA256 (wezterm.lua) = 3096906ac2a860734b9c2a0cf1a6eda471a46fc89b01716c053f5f63b420462c
|
35
wezterm/Pkgfile
Normal file
35
wezterm/Pkgfile
Normal file
@ -0,0 +1,35 @@
|
||||
# Description: fancy terminal emulator for xorg and wayland
|
||||
# URL: https://wezfurlong.org/wezterm/
|
||||
# Maintainer: John McQuah, jmcquah at disroot dot org
|
||||
# Depends on: rust cmake git fontconfig pkgconf libxkbcommon hicolor-icon-theme xorg-libx11 xorg-xcb-util xorg-xcb-util-image xorg-xcb-util-keysyms xorg-xcb-util-wm
|
||||
# Nice to have: wayland
|
||||
|
||||
name=wezterm
|
||||
version=20220408-101518-b908e2dd
|
||||
release=1
|
||||
source=(https://github.com/wez/$name/releases/download/$version/$name-$version-src.tar.gz wezterm.lua)
|
||||
|
||||
build() {
|
||||
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
||||
mkdir -p "$PKGMK_SOURCE_DIR/rust"
|
||||
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
|
||||
CARGO_OPTS="--release"
|
||||
prt-get isinst wayland || CARGO_OPTS+=" --no-default-features"
|
||||
|
||||
cd $name-$version
|
||||
cargo build ${CARGO_OPTS}
|
||||
|
||||
cd target/release
|
||||
mkdir -p $PKG/usr/bin
|
||||
install -Dm 0755 $name $PKG/usr/bin
|
||||
install -Dm 0755 $name-gui $PKG/usr/bin
|
||||
install -Dm 0755 $name-mux-server $PKG/usr/bin
|
||||
install -Dm 0755 strip-ansi-escapes $PKG/usr/bin
|
||||
cd ../../assets
|
||||
mkdir -p $PKG/usr/share/icons/hicolor/128x128/apps
|
||||
mkdir -p $PKG/usr/share/applications
|
||||
install -Dm 0644 icon/terminal.png $PKG/usr/share/icons/hicolor/128x128/apps/org.wezfurlong.$name.png
|
||||
install -Dm 0644 $name.desktop $PKG/usr/share/applications/org.wezfurlong.$name.desktop
|
||||
mkdir -p $PKG/etc/xdg/wezterm
|
||||
install -Dm 0644 $SRC/wezterm.lua $PKG/etc/xdg/wezterm
|
||||
}
|
6
wezterm/README
Normal file
6
wezterm/README
Normal file
@ -0,0 +1,6 @@
|
||||
In order to use the configuration file provided by this port, you should
|
||||
do one of the following:
|
||||
- copy it to $XDG_CONFIG_HOME/wezterm/wezterm.lua,
|
||||
- set the environment variable $WEZTERM_CONFIG_FILE,
|
||||
- start wezterm with the --config-file argument.
|
||||
Please visit the project homepage to discover more configuration possibilities.
|
37
wezterm/wezterm.lua
Normal file
37
wezterm/wezterm.lua
Normal file
@ -0,0 +1,37 @@
|
||||
local wezterm = require 'wezterm';
|
||||
|
||||
return {
|
||||
font = wezterm.font("Inconsolata"),
|
||||
font_size = 16.0,
|
||||
-- Uncomment the following to run wezterm in a Wayland session.
|
||||
-- enable_wayland = true,
|
||||
color_scheme = "Zenburn",
|
||||
window_background_image = "/usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1366x768.png",
|
||||
window_background_image_hsb = {
|
||||
-- Darken the background image by reducing it to 1/3rd
|
||||
brightness = 0.3,
|
||||
-- You can adjust the hue by scaling its value.
|
||||
-- a multiplier of 1.0 leaves the value unchanged.
|
||||
hue = 1.0,
|
||||
-- You can adjust the saturation also.
|
||||
saturation = 1.0,
|
||||
},
|
||||
text_background_opacity = 0.8,
|
||||
audible_bell = "Disabled",
|
||||
visual_bell = {
|
||||
fade_in_duration_ms = 75,
|
||||
fade_out_duration_ms = 75,
|
||||
target = "CursorColor",
|
||||
},
|
||||
disable_default_key_bindings = true,
|
||||
keys = {
|
||||
{key = "c", mods="CTRL|SHIFT", action=wezterm.action{CopyTo="Clipboard"}},
|
||||
{key = "v", mods="CTRL|SHIFT", action=wezterm.action{PasteFrom="Clipboard"}},
|
||||
{key = "x", mods="CTRL|SHIFT", action=ActivateCopyMode},
|
||||
{key = "t", mods="SUPER", action=wezterm.action{SpawnTab="CurrentPaneDomain"}},
|
||||
{key = "w", mods="SUPER", action=wezterm.action{CloseCurrentTab{confirm=true}}},
|
||||
{key = "[", mods="SUPER", action=wezterm.action{ActivateTabRelative=-1}},
|
||||
{key = "]", mods="SUPER", action=wezterm.action{ActivateTabRelative=1}},
|
||||
{key = "u", mods="CTRL|SHIFT", action=wezterm.action{QuickSelect}},
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user