dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Reviews Compare Notes Search Review guide wezterm: small fix for win32
c3422676805c51601d57e99a729187da5e551171
Oliver Krylow <o.krylow@isp-insoft.de > · 19 Mar 2024
unsigned
Browse files Compare with HEAD
Changed files (7) Diff layout Auto Unified Split
+3 / −2 text lines
50 50 [mergetool "nvim_merge" ][mergetool "nvim_merge" ]51 51 cmd = "nvim -d \"$LOCAL\" \"$MERGED\" \"$REMOTE\" " cmd = "nvim -d \"$LOCAL\" \"$MERGED\" \"$REMOTE\" "
54 + autoSetupRemote = true 54 57 rebase = false rebase = false 82 85 path = .gitconfig.include path = .gitconfig.include 84 - autoSetupRemote = true
neovim/lua/bugabinga/plugins/zen.lua Modified +1 / −0 text lines
3 3 cmd = 'ZenMode' , cmd = 'ZenMode' ,4 4 dependencies = { { 'folke/twilight.nvim' , opts = { dimming = { inactive = true } } } }, dependencies = { { 'folke/twilight.nvim' , opts = { dimming = { inactive = true } } } },6 7 plugins = { wezterm = { enabled = true , font = "+4" } }, plugins = { wezterm = { enabled = true , font = "+4" } },8 9 width = 0.69 , width = 0.69 ,wezterm/bugabinga/auto_dark_mode.lua Added new file mode 100644+30 / −0 text lines
1 + local wez = require 'wezterm' 5 + local get_appearance = function ()7 + return wez.gui.get_appearance()12 + local scheme_for_appearance = function (appearance)13 + if appearance:find 'Dark' then 20 + wez.on('window-config-reloaded' , function (window)21 + local overrides = window:get_config_overrides() or {}22 + local appearance = window:get_appearance()23 + local scheme = scheme_for_appearance(appearance)24 + if overrides.color_scheme ~= scheme then 25 + overrides.color_scheme = scheme26 + window:set_config_overrides(overrides)30 + return scheme_for_appearance(get_appearance())wezterm/bugabinga/dark_mode.lua Deleted deleted file mode 100644+0 / −30 text lines
1 - local wez = require 'wezterm' 5 - local get_appearance = function ()7 - return wez.gui.get_appearance()12 - local scheme_for_appearance = function (appearance)13 - if appearance:find 'Dark' then 20 - wez.on('window-config-reloaded' , function (window)21 - local overrides = window:get_config_overrides() or {}22 - local appearance = window:get_appearance()23 - local scheme = scheme_for_appearance(appearance)24 - if overrides.color_scheme ~= scheme then 25 - overrides.color_scheme = scheme26 - window:set_config_overrides(overrides)30 - return scheme_for_appearance(get_appearance())
wezterm/bugabinga/key_binds.lua Modified +3 / −10 text lines
33 33 { key = 'k' , action = wez.action.ActivatePaneDirection 'Up' }, { key = 'k' , action = wez.action.ActivatePaneDirection 'Up' },34 34 { key = 'l' , action = wez.action.ActivatePaneDirection 'Right' }, { key = 'l' , action = wez.action.ActivatePaneDirection 'Right' },
36 + { key = 'v' , action = wez.action.SplitHorizontal { domain = 'CurrentPaneDomain' }, },37 + { key = 's' , action = wez.action.SplitVertical { domain = 'CurrentPaneDomain' }, },36 39 { key = 'r' , action = wez.action.ActivateKeyTable { name = resize_pane_mode, one_shot = false } }, { key = 'r' , action = wez.action.ActivateKeyTable { name = resize_pane_mode, one_shot = false } },38 41 { key = 'q' , action = wez.action.CloseCurrentPane { confirm = true } }, { key = 'q' , action = wez.action.CloseCurrentPane { confirm = true } },119 122 mods = 'CTRL|SHIFT' , mods = 'CTRL|SHIFT' ,120 123 action = wez.action.PasteFrom 'Clipboard' , action = wez.action.PasteFrom 'Clipboard' ,125 - action = wez.action.SplitHorizontal { domain = 'CurrentPaneDomain' },130 - action = wez.action.SplitVertical { domain = 'CurrentPaneDomain' },
133 126 key = 't' , key = 't' ,134 127 mods = 'LEADER' , mods = 'LEADER' ,wezterm/bugabinga/neovim_zen_mode.lua Modified +23 / −22 text lines
1 - local wez = require 'wezterm' 3 - wez.on('user-var-changed' , function (window, pane, name, value)4 - local overrides = window:get_config_overrides() or {}5 - if name == "ZEN_MODE" then 6 - local incremental = value:find("+" )7 - local number_value = tonumber (value)8 - if incremental ~= nil then 9 - while (number_value > 0 ) do 10 - window:perform_action(wez.action.IncreaseFontSize, pane)11 - number_value = number_value - 1 2 + wez.on('user-var-changed' , function (window, pane, name, value)4 + local overrides = window:get_config_overrides() or {}5 + if name == "ZEN_MODE" then 6 + local incremental = value:find("+" )7 + local number_value = tonumber (value)8 + if incremental ~= nil then 9 + while (number_value > 0 ) do 10 + window:perform_action(wez.action.IncreaseFontSize, pane)11 + number_value = number_value - 1 13 + overrides.enable_tab_bar = false 14 + elseif number_value < 0 then 15 + window:perform_action(wez.action.ResetFontSize, pane)16 + overrides.font_size = nil 17 + overrides.enable_tab_bar = true 19 + overrides.font_size = number_value20 + overrides.enable_tab_bar = false 13 - overrides.enable_tab_bar = false 14 - elseif number_value < 0 then 15 - window:perform_action(wez.action.ResetFontSize, pane)16 - overrides.font_size = nil 17 - overrides.enable_tab_bar = true 19 - overrides.font_size = number_value20 - overrides.enable_tab_bar = false
23 - window:set_config_overrides(overrides)23 + window:set_config_overrides(overrides)wezterm/wezterm.lua Modified +14 / −11 text lines
2 2 local nugu = require 'bugabinga.nugu' local nugu = require 'bugabinga.nugu' 4 4 local key_binds = require 'bugabinga.key_binds' local key_binds = require 'bugabinga.key_binds' 5 - local dark_mode = require 'bugabinga.dark_mode' 5 + local auto_dark_mode = require 'bugabinga.auto_dark_mode' 7 7 require 'bugabinga.status' require 'bugabinga.status' 8 - require 'bugabinga.neovim_zen_mode' 8 + local zen_mode = require 'bugabinga.neovim_zen_mode' 10 11 local hostname = wez.hostname()local hostname = wez.hostname()11 12 local enable_wayland = false local enable_wayland = false 16 17 if hostname == 'x230' then if hostname == 'x230' then 17 18 font_size = 13 font_size = 13 18 19 enable_wayland = true enable_wayland = true 19 - elseif hostname == 'pop-os' then
21 20 elseif hostname == 'NB-00718' then elseif hostname == 'NB-00718' then
28 + default_cwd = wez.home_dir,29 + default_prog = { 'nu' , '--login' },30 + default_cursor_style = 'SteadyBlock' ,29 32 font = font, font = font,30 33 font_size = font_size, font_size = font_size,31 34 freetype_load_target = 'Light' , freetype_load_target = 'Light' ,32 35 freetype_render_target = 'HorizontalLcd' , freetype_render_target = 'HorizontalLcd' ,33 36 underline_position = "-2pt" , underline_position = "-2pt" ,34 37 warn_about_missing_glyphs = false , warn_about_missing_glyphs = false ,35 - color_scheme = dark_mode,39 + color_scheme = auto_dark_mode,36 40 color_schemes = nugu, color_schemes = nugu,37 - default_cwd = wez.home_dir,38 - default_prog = { 'nu' },39 - default_cursor_style = 'SteadyBlock' ,
40 41 cursor_blink_rate = 0 , cursor_blink_rate = 0 ,
43 + force_reverse_video_cursor = true ,42 45 window_decorations = window_decorations, window_decorations = window_decorations,
46 + enable_wayland = enable_wayland,43 47 enable_tab_bar = true , enable_tab_bar = true ,45 49 hide_tab_bar_if_only_one_tab = false , hide_tab_bar_if_only_one_tab = false ,46 50 use_fancy_tab_bar = false , use_fancy_tab_bar = false ,47 51 check_for_updates = false , check_for_updates = false ,48 52 show_update_window = false , show_update_window = false ,49 - win32_system_backdrop = "Mica" ,
50 53 audible_bell = 'Disabled' , audible_bell = 'Disabled' ,51 54 visual_bell = { visual_bell = {52 55 fade_in_duration_ms = 69 , fade_in_duration_ms = 69 ,58 61 brightness = 0.69 , brightness = 0.69 ,60 63 tab_max_width = 42 , tab_max_width = 42 ,61 - enable_wayland = enable_wayland,
62 64 window_padding = { window_padding = {64 66 right = 2 , right = 2 ,66 68 bottom = 0 , bottom = 0 ,68 71 disable_default_key_bindings = true , disable_default_key_bindings = true ,69 72 leader = key_binds.leader, leader = key_binds.leader,70 73 keys = key_binds.keys, keys = key_binds.keys,