feat: Moving the linux local specific configuration out of the main wezterm config script to a local only config template, updating the README for its use, updating the deploy script for the new config path, and adding in a local config template including the generic linux fix for xcursor config.

This commit is contained in:
2025-05-21 06:14:27 -05:00
parent 37d2389ed8
commit 8cd0bcbb66
4 changed files with 52 additions and 32 deletions

39
wezterm.local_linux.lua Normal file
View File

@@ -0,0 +1,39 @@
local wezterm = require('wezterm')
local function setup(config)
-- Fixing the cursor theme
local xcursor_size = nil
local xcursor_theme = nil
local success, stdout, _ = wezterm.run_child_process({
"gsettings",
"get",
"org.gnome.desktop.interface",
"cursor-theme"
})
if success then
xcursor_theme = stdout:gsub("'(.+)'\n", "%1")
end
local success, _, _ = wezterm.run_child_process({
"gsettings",
"get",
"org.gnome.desktop.interface",
"cursor-size"
})
if success then
xcursor_size = tonumber(stdout)
end
config.xcursor_theme = xcursor_theme
config.xcursor_size = xcursor_size
-- end cursor theme
return config
end
return {
setup = setup,
}