repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

wezterm: leader key for windows wezterm: simpler workspaces nushell: removed unreasonable alias

837abc3efe0843adeb4519f18702e7f32ca22a32

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (4)

nushell/modules/aliases.nu

Modified
1 1 # Semantic aliases
2 2 export alias show = bat
3 3 export def list [] { ls --all --long --du --mime-type | where type == dir | append (ls --all --long --du --mime-type | where type != dir) }
4 -export def tree [] { ls | each { if $in.type == dir { tree $in.name } else { $in }} | flatten | table -e }
5 4 export alias browse = firefox
6 5 export alias edit = hx
7 6 # TODO ewrite bak command

wezterm/bugabinga/key_binds.lua

Modified
1 1 local wez = require 'wezterm'
2 2 local leader = { key = 'VoidSymbol'}
3 +if wez.target_triple:find'windows' then
4 + leader = { key = 'raw:255'}
5 +end
4 6 local resize_pane_mode = 'ﭕ Resize Pane Mode'
5 -local activate_pane_mode = ' Activate Pane Mode'
6 7 local font_size_mode = ' Change Font Size Mode'
8 9 local keys = {

wezterm/bugabinga/workspaces.lua

Modified
26 26 -- check the log file in the wezterm mux server runtime directory
27 27 -- e.g. /run/user/1000/wezterm/log
28 28 wez.on('mux-startup', function()
29 - local nugu_ws = 'nugu development'
30 - local nugu_cwd = WORKSPACE .. '/nugu'
31 - local nugu_tab, nugu_pane, nugu_window = mux.spawn_window { cwd = nugu_cwd, workspace = nugu_ws }
32 - local nugu_top_pane = nugu_pane:split { cwd = nugu_cwd, args = { 'hx', '.' }, direction = 'Top', size = 0.82 }
33 - nugu_top_pane:split { cwd = nugu_cwd, direction = 'Left', size = 0.66 }
34 - nugu_tab:set_title 'Nugu Development'
37 - local tini_lang_ws = 'tini_lang development'
38 - local tini_lang_cwd = WORKSPACE .. '/tini_lang'
39 - local tini_lang_tab, tini_lang_pane, tini_lang_window = mux.spawn_window { cwd = tini_lang_cwd, workspace =
40 - tini_lang_ws }
41 - local tini_lang_top_pane = tini_lang_pane:split { cwd = tini_lang_cwd, args = { 'hx', '.' }, direction = 'Top', size = 0.82 }
42 - tini_lang_top_pane:split { cwd = tini_lang_cwd, direction = 'Left', size = 0.66 }
43 - tini_lang_tab:set_title 'tini_lang Development'
46 - local reign_ws = 'reign development'
47 - local reign_cwd = WORKSPACE .. '/reign'
48 - local reign_tab, reign_pane, reign_window = mux.spawn_window { cwd = reign_cwd, args = { 'hx', '.' }, workspace =
49 - reign_ws }
50 - local reign_right_pane = reign_pane:split { cwd = reign_cwd, direction = 'Right', size = 0.36 }
51 - reign_right_pane:split { cwd = reign_cwd, direction = 'Bottom', size = 0.33 }
52 - reign_tab:set_title 'Reign Development'
53 - reign_pane:activate()
54 - -- FIXME(oli): the text gets send, but seemingly before nushell is ready to receive input
55 - reign_right_pane:send_text 'watch src {clear; just build}'
58 29 local dork_ws = 'dorkfiles editing'
59 30 local dork_cwd = WORKSPACE .. '/dotfiles'
60 31 local dork_tab, dork_pane, dork_window = mux.spawn_window { cwd = dork_cwd, workspace = dork_ws }
61 - local dork_top_pane = dork_pane:split { direction = 'Top', size = 0.55 }
62 - dork_top_pane:split { cwd = dork_cwd, args = { 'hx', '.' }, direction = 'Left', size = 0.7 }
32 + local dork_top_pane = dork_pane:split { cwd = dork_cwd, direction = 'Top', size = 0.55 }
33 + dork_top_pane:split { cwd = dork_cwd, direction = 'Left', size = 0.7 }
63 34 dork_tab:set_title 'Dorkfiles Editing'
64 - --TODO(oli): create tabs for configs in dorkfiles that i edit often (wezterm, helix, bootstripper,...)
65 35 local wezterm_config_tab = dork_window:spawn_tab { cwd = dork_cwd .. '/wezterm' }
66 36 wezterm_config_tab:set_title 'Wezterm'
67 - wezterm_config_tab:active_pane():split { args = { 'hx', '.' }, direction = 'Left', size = 0.7 }
37 + wezterm_config_tab:active_pane():split { cwd = dork_cwd .. '/wezterm', direction = 'Left', size = 0.7 }
68 38 local helix_config_tab = dork_window:spawn_tab { cwd = dork_cwd .. '/helix' }
69 39 helix_config_tab:set_title 'Helix'
70 - helix_config_tab:active_pane():split { args = { 'hx', '.' }, direction = 'Left', size = 0.7 }
40 + helix_config_tab:active_pane():split { cwd = dork_cwd .. '/helix', direction = 'Left', size = 0.7 }
73 43 local default_ws = 'default'
74 - local default_tab, default_pane, default_window = mux.spawn_window { workspace = default_ws }
75 - local default_top_pane = default_pane:split { direction = 'Top', size = 0.5 }
76 - default_pane:split { direction = 'Right', size = 0.5 }
77 - default_top_pane:split { direction = 'Right', size = 0.5 }
44 + local default_cwd = wez.home_dir
45 + local default_tab, default_pane, default_window = mux.spawn_window { cwd = default_cwd, workspace = default_ws }
46 + local default_top_pane = default_pane:split { cwd = default_cwd, direction = 'Top', size = 0.5 }
47 + default_pane:split { cwd = default_cwd, direction = 'Right', size = 0.5 }
48 + default_top_pane:split { cwd = default_cwd, direction = 'Right', size = 0.5 }
78 49 default_window:spawn_tab { args = { 'btm' } }
79 50 default_tab:set_title 'Default'
80 51 default_top_pane:activate()

wezterm/wezterm.lua

Modified
27 27 return {
28 28 -- logs key presses
29 - debug_key_events = true,
29 + --debug_key_events = true,
31 31 font = font,
32 32 font_size = font_size,
36 36 window_background_opacity = 1.0,
37 37 -- nightly
38 38 -- win32_system_backdrop = 'Acrylic',
39 - default_cwd = wez.home_dir,
40 - default_prog = { 'nu', '--login', '--interactive' },
39 + --default_cwd = wez.home_dir,
40 + default_prog = { 'nu' },
41 41 default_cursor_style = 'SteadyBlock',
42 42 cursor_blink_rate = 0,
43 43 cursor_thickness = '0.6cell',