From ebbd5a1b36bb754571770f9af01949ba3c46c717 Mon Sep 17 00:00:00 2001 From: Bryan Date: Sun, 28 Sep 2025 08:22:19 -0600 Subject: [PATCH] lnk: sync configuration files --- .config/keyb/keyb.yml | 113 +++++++++++++++-------------- .config/keyb/keyb.yml.bak | 57 +++++++++++++++ .config/keyb/merge.lua | 28 +++++-- pc.lnk/.config/cortile/config.toml | 2 +- 4 files changed, 135 insertions(+), 65 deletions(-) mode change 100644 => 100755 .config/keyb/merge.lua diff --git a/.config/keyb/keyb.yml b/.config/keyb/keyb.yml index a1249ab..42c4ea0 100644 --- a/.config/keyb/keyb.yml +++ b/.config/keyb/keyb.yml @@ -1,3 +1,60 @@ +- name: cortile + keybinds: + - name: "Enable tiling on the current screen" + key: "Ctrl+Shift+Home" + - name: "Disable tiling on the current screen" + key: "Ctrl+Shift+End" + - name: "Toggle between enable and disable" + key: "Ctrl+Shift+T" + - name: "Toggle window decoration on and off" + key: "Ctrl+Shift+D" + - name: "Disable tiling and restore windows" + key: "Ctrl+Shift+R" + - name: "Reset layouts to default proportions" + key: "Ctrl+Shift+BackSpace" + - name: "Cycle through next layouts" + key: "Ctrl+Shift+Next" + - name: "Cycle through previous layouts" + key: "Ctrl+Shift+Prior" + - name: "Activate vertical- left layout" + key: "Ctrl+Shift+Left" + - name: "Activate vertical- right layout" + key: "Ctrl+Shift+Right" + - name: "Activate horizontal- top layout" + key: "Ctrl+Shift+Up" + - name: "Activate horizontal- bottom layout" + key: "Ctrl+Shift+Down" + - name: "Activate maximized layout" + key: "Ctrl+Shift+Space" + - name: "Activate fullscreen layout" + key: "Ctrl+Shift+Return" + - name: "Increase number of maximum slave windows" + key: "Ctrl+Shift+Plus" + - name: "Decrease number of maximum slave windows" + key: "Ctrl+Shift+Minus" + - name: "Increase number of master windows" + key: "Ctrl+Shift+KP_Add" + - name: "Decrease number of master windows" + key: "Ctrl+Shift+KP_Subtract" + - name: "Move focus to the next window" + key: "Ctrl+Shift+KP_2" + - name: "Move focus to the previous window" + key: "Ctrl+Shift+KP_8" + - name: "Move the active window to the next screen" + key: "Ctrl+Shift+KP_9" + - name: "Move the active window to the previous screen" + key: "Ctrl+Shift+KP_7" + - name: "Make the active window master" + key: "Ctrl+Shift+KP_5" + - name: "Make the next window master" + key: "Ctrl+Shift+KP_6" + - name: "Make the previous window master" + key: "Ctrl+Shift+KP_4" + - name: "Increase proportion of master- slave area" + key: "Ctrl+Shift+KP_3" + - name: "Decrease proportion of master- slave area" + key: "Ctrl+Shift+KP_1" +# https://github.com/cheat/cheatsheets - name: kitty keybinds: - name: "Line up" @@ -86,59 +143,3 @@ key: "ctrl+shift+p>n" - name: "Open the selected hyperlink" key: "ctrl+shift+p>y" -- name: cortile - keybinds: - - name: "Enable tiling on the current screen" - key: "Ctrl+Shift+Home" - - name: "Disable tiling on the current screen" - key: "Ctrl+Shift+End" - - name: "Toggle between enable and disable" - key: "Ctrl+Shift+T" - - name: "Toggle window decoration on and off" - key: "Ctrl+Shift+D" - - name: "Disable tiling and restore windows" - key: "Ctrl+Shift+R" - - name: "Reset layouts to default proportions" - key: "Ctrl+Shift+BackSpace" - - name: "Cycle through next layouts" - key: "Ctrl+Shift+Next" - - name: "Cycle through previous layouts" - key: "Ctrl+Shift+Prior" - - name: "Activate vertical- left layout" - key: "Ctrl+Shift+Left" - - name: "Activate vertical- right layout" - key: "Ctrl+Shift+Right" - - name: "Activate horizontal- top layout" - key: "Ctrl+Shift+Up" - - name: "Activate horizontal- bottom layout" - key: "Ctrl+Shift+Down" - - name: "Activate maximized layout" - key: "Ctrl+Shift+Space" - - name: "Activate fullscreen layout" - key: "Ctrl+Shift+Return" - - name: "Increase number of maximum slave windows" - key: "Ctrl+Shift+Plus" - - name: "Decrease number of maximum slave windows" - key: "Ctrl+Shift+Minus" - - name: "Increase number of master windows" - key: "Ctrl+Shift+KP_Add" - - name: "Decrease number of master windows" - key: "Ctrl+Shift+KP_Subtract" - - name: "Move focus to the next window" - key: "Ctrl+Shift+KP_2" - - name: "Move focus to the previous window" - key: "Ctrl+Shift+KP_8" - - name: "Move the active window to the next screen" - key: "Ctrl+Shift+KP_9" - - name: "Move the active window to the previous screen" - key: "Ctrl+Shift+KP_7" - - name: "Make the active window master" - key: "Ctrl+Shift+KP_5" - - name: "Make the next window master" - key: "Ctrl+Shift+KP_6" - - name: "Make the previous window master" - key: "Ctrl+Shift+KP_4" - - name: "Increase proportion of master- slave area" - key: "Ctrl+Shift+KP_3" - - name: "Decrease proportion of master- slave area" - key: "Ctrl+Shift+KP_1" diff --git a/.config/keyb/keyb.yml.bak b/.config/keyb/keyb.yml.bak index c3c74ac..42c4ea0 100644 --- a/.config/keyb/keyb.yml.bak +++ b/.config/keyb/keyb.yml.bak @@ -1,3 +1,60 @@ +- name: cortile + keybinds: + - name: "Enable tiling on the current screen" + key: "Ctrl+Shift+Home" + - name: "Disable tiling on the current screen" + key: "Ctrl+Shift+End" + - name: "Toggle between enable and disable" + key: "Ctrl+Shift+T" + - name: "Toggle window decoration on and off" + key: "Ctrl+Shift+D" + - name: "Disable tiling and restore windows" + key: "Ctrl+Shift+R" + - name: "Reset layouts to default proportions" + key: "Ctrl+Shift+BackSpace" + - name: "Cycle through next layouts" + key: "Ctrl+Shift+Next" + - name: "Cycle through previous layouts" + key: "Ctrl+Shift+Prior" + - name: "Activate vertical- left layout" + key: "Ctrl+Shift+Left" + - name: "Activate vertical- right layout" + key: "Ctrl+Shift+Right" + - name: "Activate horizontal- top layout" + key: "Ctrl+Shift+Up" + - name: "Activate horizontal- bottom layout" + key: "Ctrl+Shift+Down" + - name: "Activate maximized layout" + key: "Ctrl+Shift+Space" + - name: "Activate fullscreen layout" + key: "Ctrl+Shift+Return" + - name: "Increase number of maximum slave windows" + key: "Ctrl+Shift+Plus" + - name: "Decrease number of maximum slave windows" + key: "Ctrl+Shift+Minus" + - name: "Increase number of master windows" + key: "Ctrl+Shift+KP_Add" + - name: "Decrease number of master windows" + key: "Ctrl+Shift+KP_Subtract" + - name: "Move focus to the next window" + key: "Ctrl+Shift+KP_2" + - name: "Move focus to the previous window" + key: "Ctrl+Shift+KP_8" + - name: "Move the active window to the next screen" + key: "Ctrl+Shift+KP_9" + - name: "Move the active window to the previous screen" + key: "Ctrl+Shift+KP_7" + - name: "Make the active window master" + key: "Ctrl+Shift+KP_5" + - name: "Make the next window master" + key: "Ctrl+Shift+KP_6" + - name: "Make the previous window master" + key: "Ctrl+Shift+KP_4" + - name: "Increase proportion of master- slave area" + key: "Ctrl+Shift+KP_3" + - name: "Decrease proportion of master- slave area" + key: "Ctrl+Shift+KP_1" +# https://github.com/cheat/cheatsheets - name: kitty keybinds: - name: "Line up" diff --git a/.config/keyb/merge.lua b/.config/keyb/merge.lua old mode 100644 new mode 100755 index 5402778..e0e1320 --- a/.config/keyb/merge.lua +++ b/.config/keyb/merge.lua @@ -1,17 +1,29 @@ +#! nvim -l local config_dir = "/home/bryan/.config/keyb" -local output_filename = "merged.yml" +local output_filename = "keyb.yml" local output_filename_full = vim.fs.joinpath(config_dir, output_filename) +vim.print("\nBacking up " .. output_filename .. " to " .. output_filename .. ".bak\n") vim.system({ "mv", output_filename_full, output_filename_full .. ".bak" }):wait() local outfile = io.open(output_filename_full, "a") -print(output_filename_full) -for file in vim.fs.dir(config_dir) do - if file:match("%.yml$") and not file:match("config") and not file:match(output_filename) then - vim.print(file) - local infile = io.open(vim.fs.joinpath(config_dir, file), "r") - local contents = infile:read("*a") - outfile:write(contents) +vim.print("Merging files...\n\n") + +if outfile then + for file in vim.fs.dir(config_dir) do + if file:match("%.yml$") and not file:match("config") and not file:match(output_filename) then + vim.print(file .. " >> " .. output_filename) + local infile = io.open(vim.fs.joinpath(config_dir, file), "r") + + if infile then + local contents = infile:read("*a") + + if contents then + outfile:write(contents) + end + end + end end end +vim.print("\n") diff --git a/pc.lnk/.config/cortile/config.toml b/pc.lnk/.config/cortile/config.toml index 713890e..72d5afc 100644 --- a/pc.lnk/.config/cortile/config.toml +++ b/pc.lnk/.config/cortile/config.toml @@ -165,7 +165,7 @@ layout_horizontal_top = "Control-Shift-Up" layout_horizontal_bottom = "Control-Shift-Down" # Activates the maximized layout (Space = Blank). -layout_maximized = "Control-Shift-M" +layout_maximized = "Control-Shift-Space" # Activates the fullscreen layout (Return = Enter). layout_fullscreen = "Control-Shift-F"