dotfiles-tui 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. checksums.yaml +7 -0
  2. data/.env.example +4 -0
  3. data/.gitattributes +1 -0
  4. data/.github/workflows/publish-gem.yml +36 -0
  5. data/.gitignore +316 -0
  6. data/.shellcheckrc +1 -0
  7. data/.stow-local-ignore +23 -0
  8. data/.vscode/settings.json +2 -0
  9. data/Configs/aerospace/.config/aerospace/aerospace.toml +265 -0
  10. data/Configs/alacritty/.config/alacritty/alacritty.toml +31 -0
  11. data/Configs/conda/.condarc +1 -0
  12. data/Configs/continue/.continue/.continueignore +0 -0
  13. data/Configs/continue/.continue/.continuerc.json +3 -0
  14. data/Configs/continue/.continue/config.json +48 -0
  15. data/Configs/docker/.docker/completion/completion.zsh +3 -0
  16. data/Configs/editorconfig/.editorconfig +16 -0
  17. data/Configs/fzf/.fzf/completion/completion.zsh +8 -0
  18. data/Configs/git/.config/gitconfig/core +83 -0
  19. data/Configs/git/.config/gitconfig/home +20 -0
  20. data/Configs/git/.config/gitconfig/template.txt +7 -0
  21. data/Configs/git/.config/gitconfig/work +23 -0
  22. data/Configs/git/.gitconfig +25 -0
  23. data/Configs/gpg/.gnupg/.#lk0x000000015060b4e0.macBook.pro.24088 +2 -0
  24. data/Configs/gpg/.gnupg/gpg-agent.conf +3 -0
  25. data/Configs/gpg/.gnupg/openpgp-revocs.d/DE999E2ACEAE3E8EAD660459688CB4D444FB1024.rev +28 -0
  26. data/Configs/gpg/.gnupg/private-keys-v1.d/0FF407C984AC03CCC60D924C5B315977DF45D5D0.key +7 -0
  27. data/Configs/gpg/.gnupg/private-keys-v1.d/2B711D7C4A8BE25322C9966B73E6842F7E64CD38.key +7 -0
  28. data/Configs/gpg/.gnupg/pubring.kbx +0 -0
  29. data/Configs/gpg/.gnupg/trustdb.gpg +0 -0
  30. data/Configs/kitty/.config/kitty/current-theme.conf +80 -0
  31. data/Configs/kitty/.config/kitty/kitty.conf +93 -0
  32. data/Configs/nvim/.config/nvim/.stylua.toml +6 -0
  33. data/Configs/nvim/.config/nvim/README.md +9 -0
  34. data/Configs/nvim/.config/nvim/init.lua +37 -0
  35. data/Configs/nvim/.config/nvim/lazy-lock.json +29 -0
  36. data/Configs/nvim/.config/nvim/lua/chadrc.lua +17 -0
  37. data/Configs/nvim/.config/nvim/lua/configs/conform.lua +15 -0
  38. data/Configs/nvim/.config/nvim/lua/configs/lazy.lua +47 -0
  39. data/Configs/nvim/.config/nvim/lua/configs/lspconfig.lua +24 -0
  40. data/Configs/nvim/.config/nvim/lua/configs/null_ls.lua +27 -0
  41. data/Configs/nvim/.config/nvim/lua/mappings.lua +10 -0
  42. data/Configs/nvim/.config/nvim/lua/options.lua +6 -0
  43. data/Configs/nvim/.config/nvim/lua/plugins/init.lua +25 -0
  44. data/Configs/oh-my-posh/.config/oh-my-posh/theme/config.json +71 -0
  45. data/Configs/pip/.config/pip/pip.conf +3 -0
  46. data/Configs/python/.pythonrc +25 -0
  47. data/Configs/starship/.config/starship/starship.toml +134 -0
  48. data/Configs/starship/.config/starship/themes/frappe.toml +27 -0
  49. data/Configs/starship/.config/starship/themes/latte.toml +27 -0
  50. data/Configs/starship/.config/starship/themes/macchiato.toml +27 -0
  51. data/Configs/starship/.config/starship/themes/mocha.toml +27 -0
  52. data/Configs/tmux/.tmux.conf +21 -0
  53. data/Configs/wezterm/.config/wezterm/core/colors.lua +10 -0
  54. data/Configs/wezterm/.config/wezterm/core/font.lua +5 -0
  55. data/Configs/wezterm/.config/wezterm/core/helper.lua +22 -0
  56. data/Configs/wezterm/.config/wezterm/core/init.lua +20 -0
  57. data/Configs/wezterm/.config/wezterm/core/keybindings/init.lua +16 -0
  58. data/Configs/wezterm/.config/wezterm/core/keybindings/macos.lua +106 -0
  59. data/Configs/wezterm/.config/wezterm/core/keybindings/windows.lua +99 -0
  60. data/Configs/wezterm/.config/wezterm/core/launch.lua +41 -0
  61. data/Configs/wezterm/.config/wezterm/core/maximized.lua +5 -0
  62. data/Configs/wezterm/.config/wezterm/core/mousebindings.lua +23 -0
  63. data/Configs/wezterm/.config/wezterm/core/tab_title.lua +26 -0
  64. data/Configs/wezterm/.config/wezterm/core/window.lua +8 -0
  65. data/Configs/wezterm/.config/wezterm/wezterm.lua +83 -0
  66. data/Configs/zellij/.config/zellij/config.kdl +410 -0
  67. data/Configs/zellij/.config/zellij/layouts/default.kdl +159 -0
  68. data/Configs/zellij/.config/zellij/plugins/room.wasm +0 -0
  69. data/Configs/zellij/.config/zellij/plugins/zjstatus.wasm +0 -0
  70. data/Configs/zsh/.hushlogin +0 -0
  71. data/Configs/zsh/.localrc +42 -0
  72. data/Configs/zsh/.profile +3 -0
  73. data/Configs/zsh/.shellcheckrc +1 -0
  74. data/Configs/zsh/.zprofile +3 -0
  75. data/Configs/zsh/.zsh/autoload/backup_restore +84 -0
  76. data/Configs/zsh/.zsh/autoload/cat +8 -0
  77. data/Configs/zsh/.zsh/autoload/change_wallpaper +1 -0
  78. data/Configs/zsh/.zsh/autoload/clean_dstore +6 -0
  79. data/Configs/zsh/.zsh/autoload/clean_pycache +6 -0
  80. data/Configs/zsh/.zsh/autoload/convert_mkv_to_mp4 +14 -0
  81. data/Configs/zsh/.zsh/autoload/create_macos_installer +26 -0
  82. data/Configs/zsh/.zsh/autoload/download +71 -0
  83. data/Configs/zsh/.zsh/autoload/fail +2 -0
  84. data/Configs/zsh/.zsh/autoload/flush_dns +6 -0
  85. data/Configs/zsh/.zsh/autoload/info +1 -0
  86. data/Configs/zsh/.zsh/autoload/ls +8 -0
  87. data/Configs/zsh/.zsh/autoload/reset_beyond_compare +15 -0
  88. data/Configs/zsh/.zsh/autoload/reset_final_cut_pro +5 -0
  89. data/Configs/zsh/.zsh/autoload/reset_launch_pad +3 -0
  90. data/Configs/zsh/.zsh/autoload/reset_open_list +3 -0
  91. data/Configs/zsh/.zsh/autoload/speedup_terminal +6 -0
  92. data/Configs/zsh/.zsh/autoload/start_aria2_server +1 -0
  93. data/Configs/zsh/.zsh/autoload/success +1 -0
  94. data/Configs/zsh/.zsh/autoload/update_system +19 -0
  95. data/Configs/zsh/.zsh/autoload/user +1 -0
  96. data/Configs/zsh/.zsh/autoload/vim +9 -0
  97. data/Configs/zsh/.zsh/autoload/warn +1 -0
  98. data/Configs/zsh/.zsh/completion/aliases.zsh +3 -0
  99. data/Configs/zsh/.zsh/completion/completion.zsh +33 -0
  100. data/Configs/zsh/.zsh/completion/config.zsh +118 -0
  101. data/Configs/zsh/.zsh/completion/exports.zsh +108 -0
  102. data/Configs/zsh/.zsh/completion/fpath.zsh +8 -0
  103. data/Configs/zsh/.zsh_history +283 -0
  104. data/Configs/zsh/.zshenv +2 -0
  105. data/Configs/zsh/.zshrc +54 -0
  106. data/Gemfile +3 -0
  107. data/Gemfile.lock +87 -0
  108. data/Hooks/adguard/pre.rb +7 -0
  109. data/Hooks/aerospace/pre.rb +8 -0
  110. data/Hooks/aide/post.rb +7 -0
  111. data/Hooks/aide/pre.rb +7 -0
  112. data/Hooks/alacritty/pre.rb +7 -0
  113. data/Hooks/alfred/pre.rb +7 -0
  114. data/Hooks/atuin/post.rb +27 -0
  115. data/Hooks/atuin/pre.rb +7 -0
  116. data/Hooks/bartender/pre.rb +7 -0
  117. data/Hooks/bun/pre.rb +7 -0
  118. data/Hooks/carapace/pre.rb +7 -0
  119. data/Hooks/cargo/pre.rb +7 -0
  120. data/Hooks/choosy/pre.rb +7 -0
  121. data/Hooks/controld/pre.rb +7 -0
  122. data/Hooks/core/common.rb +36 -0
  123. data/Hooks/core/final.rb +23 -0
  124. data/Hooks/core/lib/configurator.rb +593 -0
  125. data/Hooks/core/lib/display.rb +120 -0
  126. data/Hooks/core/lib/hook_config.rb +96 -0
  127. data/Hooks/core/lib/hook_context.rb +124 -0
  128. data/Hooks/core/lib/hooks.rb +45 -0
  129. data/Hooks/core/lib/logger.rb +23 -0
  130. data/Hooks/core/lib/menu.rb +70 -0
  131. data/Hooks/core/lib/spinner.rb +50 -0
  132. data/Hooks/core/lib/system.rb +78 -0
  133. data/Hooks/core/lib/tweaks.rb +59 -0
  134. data/Hooks/core/library.rb +3 -0
  135. data/Hooks/core/pre.rb +17 -0
  136. data/Hooks/ctrld/pre.rb +7 -0
  137. data/Hooks/deskpad/pre.rb +7 -0
  138. data/Hooks/fonts/pre.rb +60 -0
  139. data/Hooks/ghostty/pre.rb +10 -0
  140. data/Hooks/git/post.rb +20 -0
  141. data/Hooks/git/pre.rb +7 -0
  142. data/Hooks/gpg/post.rb +16 -0
  143. data/Hooks/gpg/pre.rb +7 -0
  144. data/Hooks/ice-hidemenubar/pre.rb +7 -0
  145. data/Hooks/iterm/IC Green PPL.itermcolors +344 -0
  146. data/Hooks/iterm/chalkboard.webp +0 -0
  147. data/Hooks/iterm/com.googlecode.iterm2.plist +2371 -0
  148. data/Hooks/iterm/post.rb +7 -0
  149. data/Hooks/iterm/pre.rb +7 -0
  150. data/Hooks/jujutsu/post.rb +13 -0
  151. data/Hooks/jujutsu/pre.rb +7 -0
  152. data/Hooks/keka/pre.rb +7 -0
  153. data/Hooks/kitty/pre.rb +7 -0
  154. data/Hooks/lazyvim/pre.rb +7 -0
  155. data/Hooks/lima/pre.rb +7 -0
  156. data/Hooks/little-snitch/pre.rb +7 -0
  157. data/Hooks/microsoft-edge/pre.rb +7 -0
  158. data/Hooks/mos/pre.rb +7 -0
  159. data/Hooks/nvchad/pre.rb +7 -0
  160. data/Hooks/oh-my-posh/config.json +58 -0
  161. data/Hooks/oh-my-posh/post.rb +7 -0
  162. data/Hooks/oh-my-posh/pre.rb +7 -0
  163. data/Hooks/pearcleaner/pre.rb +7 -0
  164. data/Hooks/pycharm/pre.rb +7 -0
  165. data/Hooks/raindropio/pre.rb +7 -0
  166. data/Hooks/rectangle/RectangleConfig.json +258 -0
  167. data/Hooks/rectangle/com.knollsoft.Rectangle.plist +0 -0
  168. data/Hooks/rectangle/post.rb +22 -0
  169. data/Hooks/rectangle/pre.rb +7 -0
  170. data/Hooks/slack/pre.rb +7 -0
  171. data/Hooks/soundsource/pre.rb +7 -0
  172. data/Hooks/ssh/post.rb +8 -0
  173. data/Hooks/starship/pre.rb +7 -0
  174. data/Hooks/sublime_text/post.rb +25 -0
  175. data/Hooks/sublime_text/pre.rb +7 -0
  176. data/Hooks/swiftformat-for-xcode/pre.rb +7 -0
  177. data/Hooks/syncthing/pre.rb +7 -0
  178. data/Hooks/synology/pre.rb +7 -0
  179. data/Hooks/tailscale/pre.rb +7 -0
  180. data/Hooks/tmux/post.rb +7 -0
  181. data/Hooks/tmux/pre.rb +7 -0
  182. data/Hooks/topnotch/pre.rb +7 -0
  183. data/Hooks/transmission/pre.rb +7 -0
  184. data/Hooks/vscode/extensions.txt +16 -0
  185. data/Hooks/vscode/keybindings.json +26 -0
  186. data/Hooks/vscode/post.rb +29 -0
  187. data/Hooks/vscode/pre.rb +9 -0
  188. data/Hooks/vscode/settings.json +139 -0
  189. data/Hooks/vscode/style.css +29 -0
  190. data/Hooks/wezterm/pre.rb +7 -0
  191. data/Hooks/wins/pre.rb +7 -0
  192. data/Hooks/zed/pre.rb +7 -0
  193. data/Hooks/zellij/post.rb +7 -0
  194. data/Hooks/zellij/pre.rb +7 -0
  195. data/Hooks/zoxide/pre.rb +7 -0
  196. data/Hooks/zsh/pre.rb +19 -0
  197. data/LICENSE +21 -0
  198. data/README.md +100 -0
  199. data/bin/dotfiles-tui +6 -0
  200. data/bootstrap.rb +186 -0
  201. data/dotfiles-tui.gemspec +47 -0
  202. data/lib/dotfiles_tui/version.rb +5 -0
  203. data/lib/dotfiles_tui.rb +15 -0
  204. metadata +275 -0
@@ -0,0 +1,99 @@
1
+ local wezterm = require("wezterm")
2
+
3
+ local keybindings = {
4
+ keys = {
5
+ { key = "t", mods = "CTRL|SHIFT", action = wezterm.action.SpawnTab("CurrentPaneDomain") },
6
+ {
7
+ key = 'k',
8
+ mods = 'CTRL',
9
+ action = wezterm.action.SendString '\x0c',
10
+ },
11
+ {
12
+ key = "q",
13
+ mods = "CTRL",
14
+ action = wezterm.action.QuitApplication
15
+ }, {
16
+ key = "w",
17
+ mods = "CTRL",
18
+ action = wezterm.action.CloseCurrentTab {
19
+ confirm = false
20
+ }
21
+ }, {
22
+ key = "_",
23
+ mods = "SHIFT|ALT",
24
+ action = wezterm.action.SplitVertical({
25
+ domain = "CurrentPaneDomain"
26
+ })
27
+ }, {
28
+ key = "+",
29
+ mods = "SHIFT|ALT",
30
+ action = wezterm.action.SplitHorizontal({
31
+ domain = "CurrentPaneDomain"
32
+ })
33
+ }, {
34
+ key = "Tab",
35
+ mods = "SHIFT|CTRL",
36
+ action = wezterm.action.ActivateTabRelative(1)
37
+ }, {
38
+ key = "F11",
39
+ mods = "NONE",
40
+ action = wezterm.action.ToggleFullScreen
41
+ }, {
42
+ key = "+",
43
+ mods = "SHIFT|CTRL",
44
+ action = wezterm.action.IncreaseFontSize
45
+ }, {
46
+ key = "-",
47
+ mods = "SHIFT|CTRL",
48
+ action = wezterm.action.DecreaseFontSize
49
+ }, {
50
+ key = "C",
51
+ mods = "SHIFT|CTRL",
52
+ action = wezterm.action.CopyTo "Clipboard"
53
+ }, {
54
+ key = "N",
55
+ mods = "SHIFT|CTRL",
56
+ action = wezterm.action.SpawnWindow
57
+ }, {
58
+ key = "T",
59
+ mods = "SHIFT|CTRL",
60
+ action = wezterm.action.ShowLauncher
61
+ }, {
62
+ key = "Enter",
63
+ mods = "SHIFT|CTRL",
64
+ action = wezterm.action.ShowLauncherArgs {
65
+ flags = "FUZZY|TABS|LAUNCH_MENU_ITEMS"
66
+ }
67
+ }, {
68
+ key = "V",
69
+ mods = "SHIFT|CTRL",
70
+ action = wezterm.action.PasteFrom "Clipboard"
71
+ }, {
72
+ key = "W",
73
+ mods = "SHIFT|CTRL",
74
+ action = wezterm.action.CloseCurrentTab {
75
+ confirm = false
76
+ }
77
+ }, {
78
+ key = "PageUp",
79
+ mods = "SHIFT|CTRL",
80
+ action = wezterm.action.ScrollByPage(-1)
81
+ }, {
82
+ key = "PageDown",
83
+ mods = "SHIFT|CTRL",
84
+ action = wezterm.action.ScrollByPage(1)
85
+ }, {
86
+ key = "UpArrow",
87
+ mods = "SHIFT|CTRL",
88
+ action = wezterm.action.ScrollByLine(-1)
89
+ }, {
90
+ key = "DownArrow",
91
+ mods = "SHIFT|CTRL",
92
+ action = wezterm.action.ScrollByLine(1)
93
+ }}
94
+ }
95
+
96
+ return {
97
+ keybindings = keybindings
98
+ }
99
+
@@ -0,0 +1,41 @@
1
+ local wezterm = require("wezterm")
2
+ local helper = require("core.helper")
3
+
4
+ local os_name = helper.get_os()
5
+ -- print("Operating System: " .. os_name)
6
+
7
+ local launch_menu = {
8
+ launch_menu = {}
9
+ }
10
+
11
+ if os_name == "Windows" then
12
+ if wezterm.target_triple == "x86_64-pc-windows-msvc" then
13
+ table.insert(launch_menu.launch_menu, {
14
+ label = "PowerShell",
15
+ args = {"C:\\Program Files\\PowerShell\\7\\pwsh.exe"}
16
+ })
17
+ table.insert(launch_menu.launch_menu, {
18
+ label = "Command Prompt",
19
+ args = {"cmd.exe"}
20
+ })
21
+ table.insert(launch_menu.launch_menu, {
22
+ label = "PowerShell 7",
23
+ args = {"pwsh.exe", "-NoLogo"}
24
+ })
25
+ table.insert(launch_menu.launch_menu, {
26
+ label = "Git Bash",
27
+ args = {"C:\\Program Files\\Git\\bin\\bash.exe"}
28
+ })
29
+ else
30
+ table.insert(launch_menu.launch_menu, {
31
+ label = "fish",
32
+ args = {"fish", "-l"}
33
+ })
34
+ table.insert(launch_menu.launch_menu, {
35
+ label = "zsh",
36
+ args = {"zsh", "-l"}
37
+ })
38
+ end
39
+ end
40
+
41
+ return launch_menu
@@ -0,0 +1,5 @@
1
+ local function maximized(window, pane)
2
+ window:maximize() -- Maximize the window
3
+ end
4
+
5
+ return maximized
@@ -0,0 +1,23 @@
1
+ local wezterm = require("wezterm")
2
+
3
+ local mousebindings = {
4
+ mouse_bindings = {
5
+ {
6
+ event = { Up = { streak = 1, button = "Left" } },
7
+ mods = "NONE",
8
+ action = wezterm.action.CompleteSelection("PrimarySelection")
9
+ },
10
+ {
11
+ event = { Up = { streak = 1, button = "Left" } },
12
+ mods = "CTRL",
13
+ action = wezterm.action.OpenLinkAtMouseCursor
14
+ },
15
+ {
16
+ event = { Down = { streak = 1, button = "Left" } },
17
+ mods = "CTRL",
18
+ action = wezterm.action.Nop
19
+ }
20
+ },
21
+ }
22
+
23
+ return mousebindings
@@ -0,0 +1,26 @@
1
+ local function Basename(s)
2
+ return s:match("([^/\\]+)$")
3
+ end
4
+
5
+ local function TrimExtension(s)
6
+ return s:gsub("%.%w+$", "")
7
+ end
8
+
9
+ local function CapitalizeFirstLetter(s)
10
+ return s:sub(1, 1):upper() .. s:sub(2)
11
+ end
12
+
13
+ local function format_tab_title(tab, tabs, panes, config, hover, max_width)
14
+ local pane = tab.active_pane
15
+ local title = Basename(pane.foreground_process_name)
16
+ title = CapitalizeFirstLetter(TrimExtension(title))
17
+ local max_len = max_width or 20
18
+ if #title > max_len then
19
+ title = title:sub(1, max_len - 1) .. "…"
20
+ end
21
+ return {{
22
+ Text = " " .. title .. " "
23
+ }}
24
+ end
25
+
26
+ return format_tab_title
@@ -0,0 +1,8 @@
1
+ local window = {
2
+ window_background_opacity = 0.99,
3
+ macos_window_background_blur = 10,
4
+ window_padding = { left = 5, right = 5, top = 5, bottom = 5 },
5
+ window_decorations = "RESIZE",
6
+ }
7
+
8
+ return window
@@ -0,0 +1,83 @@
1
+ local wezterm = require("wezterm")
2
+ local core = require("core")
3
+
4
+ -- Load configuration modules
5
+ local window = core.window
6
+ local colors = core.colors
7
+ local font = core.font
8
+ local keybindings = core.keybindings
9
+ local mousebindings = core.mousebindings
10
+ local launch_menu = core.launch_menu
11
+ local tab_title = core.tab_title
12
+ local maximized = core.maximized
13
+
14
+
15
+ local config = {
16
+ check_for_updates = true,
17
+ disable_default_key_bindings = true,
18
+ exit_behavior = "Close",
19
+ default_prog = { '/opt/homebrew/bin/zellij' },
20
+ tab_bar_at_bottom = false,
21
+ use_fancy_tab_bar = true,
22
+ hide_tab_bar_if_only_one_tab = true,
23
+ set_environment_variables = {},
24
+ enable_scroll_bar = true,
25
+ window_frame = {
26
+ border_left_width = 2,
27
+ border_right_width = 2,
28
+ border_top_height = 2,
29
+ border_bottom_height = 2,
30
+ active_titlebar_bg = '#090909'
31
+ -- font = fonts.font,
32
+ -- font_size = fonts.font_size,
33
+ },
34
+ animation_fps = 60,
35
+ max_fps = 60,
36
+ tab_max_width = 25,
37
+ show_tab_index_in_tab_bar = false,
38
+
39
+ -- window
40
+ initial_cols = 140, -- Number of columns
41
+ initial_rows = 30, -- Number of rows
42
+
43
+ window_padding = {
44
+ left = 10,
45
+ right = 10,
46
+ top = 10,
47
+ bottom = 10
48
+ },
49
+ window_close_confirmation = 'NeverPrompt',
50
+
51
+ inactive_pane_hsb = {
52
+ saturation = 0.9,
53
+ brightness = 0.65
54
+ }
55
+ }
56
+
57
+ -- Merge configurations from modules
58
+ for k, v in pairs(window) do
59
+ config[k] = v
60
+ end
61
+ for k, v in pairs(colors) do
62
+ config[k] = v
63
+ end
64
+ for k, v in pairs(font) do
65
+ config[k] = v
66
+ end
67
+ for k, v in pairs(keybindings) do
68
+ config[k] = v
69
+ end
70
+ for k, v in pairs(mousebindings) do
71
+ config[k] = v
72
+ end
73
+ for k, v in pairs(launch_menu) do
74
+ config[k] = v
75
+ end
76
+
77
+ -- Configure the tab title formatting
78
+ wezterm.on("format-tab-title", tab_title)
79
+
80
+ -- Maximize the window
81
+ wezterm.on("window-config-reloaded", maximized)
82
+
83
+ return config