Skip to content

Commit

Permalink
style(wezterm): putting gui startup maximisation, fullscreen code bef…
Browse files Browse the repository at this point in the history
…ore config builder
  • Loading branch information
Botond Kalocsai committed Apr 5, 2024
1 parent e6a8b48 commit 000aed2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions home/dot_config/wezterm/wezterm.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
local wezterm = require("wezterm") -- wezterm api

-- Maximise and full screen on startup
wezterm.on("gui-startup", function(cmd)
-- https://wezfurlong.org/wezterm/config/lua/gui-events/gui-startup.html
local tab, pane, window = wezterm.mux.spawn_window(cmd or {})
window:gui_window():maximize() -- Maximize window
window:gui_window():toggle_fullscreen() -- Toggle to Full screen
end)

-- Initialising configuration table
local config = {}

Expand Down Expand Up @@ -42,12 +50,6 @@ config.adjust_window_size_when_changing_font_size = false
config.window_close_confirmation = "NeverPrompt"
config.use_fancy_tab_bar = false
config.hide_tab_bar_if_only_one_tab = true
wezterm.on("gui-startup", function(cmd)
-- https://wezfurlong.org/wezterm/config/lua/gui-events/gui-startup.html
local tab, pane, window = wezterm.mux.spawn_window(cmd or {})
window:gui_window():maximize() -- Maximize window
window:gui_window():toggle_fullscreen() -- Toggle to Full screen
end)
config.font = wezterm.font("OpenDyslexicM Nerd Font Mono")
config.font_size = 10

Expand Down

0 comments on commit 000aed2

Please sign in to comment.