Skip to content

Commit

Permalink
WezTerm on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
fortes committed Nov 4, 2024
1 parent 447a77e commit 0f4d094
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ My usage is mostly terminal-based, via Crostini on Chromebook, WSL2 on Windows,
Graphical sections are Linux-only, and use:

* sway / swaync / waybar
* foot
* WezTerm
* Firefox

On MacOS, use:

* Alacritty
* WezTerm
* Rectangle

## Letting me own your machine
Expand Down Expand Up @@ -112,11 +112,10 @@ TODO: Automate these steps.
- Depending on the machine, you may need `pavucontrol` in order to unmute your audio output via GUI.
\*\* Alternatively, find the name of the desired output via `pacmd list-sinks` then run `pacmd set-default-sink $SINK_NAME` and make sure to unmute via `pacmd set-sink-mute [name] 0`
- If running multiple monitors, need to configure Wacom tablet to only use a specific monitor:
```sh
xsetwacom --list | grep stylus # get id, e.g. "21"
xrandr --listactivemonitors # get id, e.g. DP-2

xsetwacom --set "21" MapToOutput DP-2
```
input "type:tablet_tool" {
map_to_output DP-1
}
```
- For High DPI displays, create a `~/.Xresources.local` file with the proper `Xft.dpi` (see `.Xresources` for example)
- To mount SMB shares on boot, add something like the following to `/etc/fstab`:
Expand Down
3 changes: 2 additions & 1 deletion stowed-files/Code/.config/Code/User/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
],
"workbench.preferredLightColorTheme": "Visual Studio Dark",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "modificationsIfAvailable"
"editor.formatOnSaveMode": "modificationsIfAvailable",
"github.copilot.preferredAccount": "fortes-codaio"
}
2 changes: 1 addition & 1 deletion stowed-files/sway/.config/sway/config
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term foot
set $term wezterm
set $browser firefox
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
Expand Down
7 changes: 7 additions & 0 deletions stowed-files/wezterm/.config/wezterm/wezterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ config.hide_tab_bar_if_only_one_tab = true

config.color_scheme = 'Builtin Dark'

config.window_padding = {
left = 4,
right = 4,
top = 4,
bottom = 4,
}

-- Toggle colorscheme with Ctrl+Shift+L
wezterm.on('toggle-color-scheme', function(window, pane)
local overrides = window:get_config_overrides() or {}
Expand Down

0 comments on commit 0f4d094

Please sign in to comment.