From 8c939721913225e1bbc6484ad5219ea84680e46b Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Wed, 4 Dec 2024 16:20:04 -0500 Subject: [PATCH] AutoYADM commit: 2024-12-04 16:20:04 --- .config/ly/config.ini | 162 ++++++++++++++ .config/ly/config.ini.bak | 329 ++++++++++++++++++++++++++++ .config/ly/update.sh | 18 ++ .config/nvim/lazy-lock.json | 18 +- .config/nvim/lua/config/keymaps.lua | 6 +- 5 files changed, 521 insertions(+), 12 deletions(-) create mode 100644 .config/ly/config.ini create mode 100644 .config/ly/config.ini.bak create mode 100755 .config/ly/update.sh diff --git a/.config/ly/config.ini b/.config/ly/config.ini new file mode 100644 index 00000000..4203b4e3 --- /dev/null +++ b/.config/ly/config.ini @@ -0,0 +1,162 @@ +# The active animation +# none -> Nothing (default) +# doom -> PSX DOOM fire +# matrix -> CMatrix +animation = doom + +# Format string for clock in top right corner (see strftime specification). Example: %c +clock = %c + +# Enable/disable big clock +bigclock = false + +# The character used to mask the password +asterisk = * + +# Erase password input on failure +clear_password = true + +# Enable vi keybindings +vi_mode = false + +# The `fg` and `bg` color settings take a digit 0-8 corresponding to: +#define TB_DEFAULT 0x00 +#define TB_BLACK 0x01 +#define TB_RED 0x02 +#define TB_GREEN 0x03 +#define TB_YELLOW 0x04 +#define TB_BLUE 0x05 +#define TB_MAGENTA 0x06 +#define TB_CYAN 0x07 +#define TB_WHITE 0x08 +# +# Setting both to zero makes `bg` black and `fg` white. To set the actual color palette you are encouraged to use another tool +# such as [mkinitcpio-colors](https://github.com/evanpurkhiser/mkinitcpio-colors). Note that the color palette defined with +# `mkinitcpio-colors` takes 16 colors (0-15), only values 0-8 are valid for `ly` config and these values do not correspond +# exactly. For instance, in defining palettes with `mkinitcpio-colors` the order is black, dark red, dark green, brown, dark +# blue, dark purple, dark cyan, light gray, dark gray, bright red, bright green, yellow, bright blue, bright purple, bright +# cyan, and white, indexed in that order 0 through 15. For example, the color defined for white (indexed at 15 in the mkinitcpio +# config) will be used by `ly` for `fg = 8`. + +# Background color id +bg = 0 + +# Foreground color id +fg = 8 + +# Border color +border_fg = 8 + +# Title to show at the top of the main box +box_title = Welcome Back + +# Initial text to show on the info line (Defaults to hostname) +initial_info_text = null + +# Blank main box background +# Setting to false will make it transparent +blank_box = true + +# Remove main box borders +hide_borders = false + +# Main box margins +margin_box_h = 2 +margin_box_v = 1 + +# Input boxes length +input_len = 34 + +# Max input sizes +max_desktop_len = 100 +max_login_len = 255 +max_password_len = 255 + +# Input box active by default on startup +# Available inputs: session, login, password +default_input = login + +# Load the saved desktop and username +load = true + +# Save the current desktop and login as defaults +save = true + +# Deprecated - Will be removed in a future version +# New save files are now loaded from the same directory as the config +# Currently used to migrate old save files to the new version +# File in which to save and load the default desktop and login +save_file = /etc/ly/save + +# Remove power management command hints +hide_key_hints = false + +# Specifies the key used for shutdown (F1-F12) +shutdown_key = F1 + +# Specifies the key used for restart (F1-F12) +restart_key = F2 + +# Specifies the key used for sleep (F1-F12) +sleep_key = F3 + +# Command executed when pressing shutdown_key +shutdown_cmd = /sbin/shutdown -a now + +# Command executed when pressing restart_key +restart_cmd = /sbin/shutdown -r now + +# Command executed when pressing sleep key (can be null) +sleep_cmd = null + +# Active language +# Available languages are found in /etc/ly/lang/ +lang = en + +# TTY in use +tty = 2 + +# Console path +console_dev = /dev/console + +# Default path. If null, ly doesn't set a path. +path = /sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin + +# Event timeout in milliseconds +min_refresh_delta = 5 + +# Set numlock on/off at startup +numlock = false + +# Service name (set to ly to use the provided pam config file) +service_name = ly + +# Terminal reset command (tput is faster) +term_reset_cmd = /usr/bin/tput reset + +# Terminal restore cursor command +term_restore_cursor_cmd = /usr/bin/tput cnorm + +# Cookie generator +mcookie_cmd = /usr/bin/mcookie + +# Wayland setup command +wayland_cmd = /etc/ly/wsetup.sh + +# Wayland desktop environments +waylandsessions = /usr/share/wayland-sessions + +# xinitrc (hidden if null) +xinitrc = ~/.xinitrc + +# Xorg server command +x_cmd = /usr/bin/X + +# Xorg setup command +x_cmd_setup = /etc/ly/xsetup.sh + +# Xorg xauthority edition tool +xauth_cmd = /usr/bin/xauth + +# Xorg desktop environments +xsessions = /usr/share/xsessions diff --git a/.config/ly/config.ini.bak b/.config/ly/config.ini.bak new file mode 100644 index 00000000..0c5b7378 --- /dev/null +++ b/.config/ly/config.ini.bak @@ -0,0 +1,329 @@ +BAKSTART +# The active animation +# none -> Nothing (default) +# doom -> PSX DOOM fire +# matrix -> CMatrix +animation = none + +# Format string for clock in top right corner (see strftime specification). Example: %c +clock = null + +# Enable/disable big clock +bigclock = false + +# The character used to mask the password +asterisk = * + +# Erase password input on failure +clear_password = false + +# Enable vi keybindings +vi_mode = false + +# The `fg` and `bg` color settings take a digit 0-8 corresponding to: +#define TB_DEFAULT 0x00 +#define TB_BLACK 0x01 +#define TB_RED 0x02 +#define TB_GREEN 0x03 +#define TB_YELLOW 0x04 +#define TB_BLUE 0x05 +#define TB_MAGENTA 0x06 +#define TB_CYAN 0x07 +#define TB_WHITE 0x08 +# +# Setting both to zero makes `bg` black and `fg` white. To set the actual color palette you are encouraged to use another tool +# such as [mkinitcpio-colors](https://github.com/evanpurkhiser/mkinitcpio-colors). Note that the color palette defined with +# `mkinitcpio-colors` takes 16 colors (0-15), only values 0-8 are valid for `ly` config and these values do not correspond +# exactly. For instance, in defining palettes with `mkinitcpio-colors` the order is black, dark red, dark green, brown, dark +# blue, dark purple, dark cyan, light gray, dark gray, bright red, bright green, yellow, bright blue, bright purple, bright +# cyan, and white, indexed in that order 0 through 15. For example, the color defined for white (indexed at 15 in the mkinitcpio +# config) will be used by `ly` for `fg = 8`. + +# Background color id +bg = 0 + +# Foreground color id +fg = 8 + +# Border color +border_fg = 8 + +# Title to show at the top of the main box +box_title = null + +# Initial text to show on the info line (Defaults to hostname) +initial_info_text = null + +# Blank main box background +# Setting to false will make it transparent +blank_box = true + +# Remove main box borders +hide_borders = false + +# Main box margins +margin_box_h = 2 +margin_box_v = 1 + +# Input boxes length +input_len = 34 + +# Max input sizes +max_desktop_len = 100 +max_login_len = 255 +max_password_len = 255 + +# Input box active by default on startup +# Available inputs: session, login, password +default_input = login + +# Load the saved desktop and username +load = true + +# Save the current desktop and login as defaults +save = true + +# Deprecated - Will be removed in a future version +# New save files are now loaded from the same directory as the config +# Currently used to migrate old save files to the new version +# File in which to save and load the default desktop and login +save_file = /etc/ly/save + +# Remove power management command hints +hide_key_hints = false + +# Specifies the key used for shutdown (F1-F12) +shutdown_key = F1 + +# Specifies the key used for restart (F1-F12) +restart_key = F2 + +# Specifies the key used for sleep (F1-F12) +sleep_key = F3 + +# Command executed when pressing shutdown_key +shutdown_cmd = /sbin/shutdown -a now + +# Command executed when pressing restart_key +restart_cmd = /sbin/shutdown -r now + +# Command executed when pressing sleep key (can be null) +sleep_cmd = null + +# Active language +# Available languages are found in /etc/ly/lang/ +lang = en + +# TTY in use +tty = 2 + +# Console path +console_dev = /dev/console + +# Default path. If null, ly doesn't set a path. +path = /sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin + +# Event timeout in milliseconds +min_refresh_delta = 5 + +# Set numlock on/off at startup +numlock = false + +# Service name (set to ly to use the provided pam config file) +service_name = ly + +# Terminal reset command (tput is faster) +term_reset_cmd = /usr/bin/tput reset + +# Terminal restore cursor command +term_restore_cursor_cmd = /usr/bin/tput cnorm + +# Cookie generator +mcookie_cmd = /usr/bin/mcookie + +# Wayland setup command +wayland_cmd = /etc/ly/wsetup.sh + +# Wayland desktop environments +waylandsessions = /usr/share/wayland-sessions + +# xinitrc (hidden if null) +xinitrc = ~/.xinitrc + +# Xorg server command +x_cmd = /usr/bin/X + +# Xorg setup command +x_cmd_setup = /etc/ly/xsetup.sh + +# Xorg xauthority edition tool +xauth_cmd = /usr/bin/xauth + +# Xorg desktop environments +xsessions = /usr/share/xsessions +BAKEND +BAKSTART +# adding a test comment here +# The active animation +# none -> Nothing (default) +# doom -> PSX DOOM fire +# matrix -> CMatrix +animation = none + +# Format string for clock in top right corner (see strftime specification). Example: %c +clock = null + +# Enable/disable big clock +bigclock = false + +# The character used to mask the password +asterisk = * + +# Erase password input on failure +clear_password = false + +# Enable vi keybindings +vi_mode = false + +# The `fg` and `bg` color settings take a digit 0-8 corresponding to: +#define TB_DEFAULT 0x00 +#define TB_BLACK 0x01 +#define TB_RED 0x02 +#define TB_GREEN 0x03 +#define TB_YELLOW 0x04 +#define TB_BLUE 0x05 +#define TB_MAGENTA 0x06 +#define TB_CYAN 0x07 +#define TB_WHITE 0x08 +# +# Setting both to zero makes `bg` black and `fg` white. To set the actual color palette you are encouraged to use another tool +# such as [mkinitcpio-colors](https://github.com/evanpurkhiser/mkinitcpio-colors). Note that the color palette defined with +# `mkinitcpio-colors` takes 16 colors (0-15), only values 0-8 are valid for `ly` config and these values do not correspond +# exactly. For instance, in defining palettes with `mkinitcpio-colors` the order is black, dark red, dark green, brown, dark +# blue, dark purple, dark cyan, light gray, dark gray, bright red, bright green, yellow, bright blue, bright purple, bright +# cyan, and white, indexed in that order 0 through 15. For example, the color defined for white (indexed at 15 in the mkinitcpio +# config) will be used by `ly` for `fg = 8`. + +# Background color id +bg = 0 + +# Foreground color id +fg = 8 + +# Border color +border_fg = 8 + +# Title to show at the top of the main box +box_title = null + +# Initial text to show on the info line (Defaults to hostname) +initial_info_text = null + +# Blank main box background +# Setting to false will make it transparent +blank_box = true + +# Remove main box borders +hide_borders = false + +# Main box margins +margin_box_h = 2 +margin_box_v = 1 + +# Input boxes length +input_len = 34 + +# Max input sizes +max_desktop_len = 100 +max_login_len = 255 +max_password_len = 255 + +# Input box active by default on startup +# Available inputs: session, login, password +default_input = login + +# Load the saved desktop and username +load = true + +# Save the current desktop and login as defaults +save = true + +# Deprecated - Will be removed in a future version +# New save files are now loaded from the same directory as the config +# Currently used to migrate old save files to the new version +# File in which to save and load the default desktop and login +save_file = /etc/ly/save + +# Remove power management command hints +hide_key_hints = false + +# Specifies the key used for shutdown (F1-F12) +shutdown_key = F1 + +# Specifies the key used for restart (F1-F12) +restart_key = F2 + +# Specifies the key used for sleep (F1-F12) +sleep_key = F3 + +# Command executed when pressing shutdown_key +shutdown_cmd = /sbin/shutdown -a now + +# Command executed when pressing restart_key +restart_cmd = /sbin/shutdown -r now + +# Command executed when pressing sleep key (can be null) +sleep_cmd = null + +# Active language +# Available languages are found in /etc/ly/lang/ +lang = en + +# TTY in use +tty = 2 + +# Console path +console_dev = /dev/console + +# Default path. If null, ly doesn't set a path. +path = /sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin + +# Event timeout in milliseconds +min_refresh_delta = 5 + +# Set numlock on/off at startup +numlock = false + +# Service name (set to ly to use the provided pam config file) +service_name = ly + +# Terminal reset command (tput is faster) +term_reset_cmd = /usr/bin/tput reset + +# Terminal restore cursor command +term_restore_cursor_cmd = /usr/bin/tput cnorm + +# Cookie generator +mcookie_cmd = /usr/bin/mcookie + +# Wayland setup command +wayland_cmd = /etc/ly/wsetup.sh + +# Wayland desktop environments +waylandsessions = /usr/share/wayland-sessions + +# xinitrc (hidden if null) +xinitrc = ~/.xinitrc + +# Xorg server command +x_cmd = /usr/bin/X + +# Xorg setup command +x_cmd_setup = /etc/ly/xsetup.sh + +# Xorg xauthority edition tool +xauth_cmd = /usr/bin/xauth + +# Xorg desktop environments +xsessions = /usr/share/xsessions +BAKEND diff --git a/.config/ly/update.sh b/.config/ly/update.sh new file mode 100755 index 00000000..80cb4947 --- /dev/null +++ b/.config/ly/update.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# We define our paths. +LOCAL=~/.config/ly/config.ini +BAK="$LOCAL.bak" +MAIN=/etc/ly/config.ini + +# We don't want to overwrite old backups; so we delimit each backup and +# inject the current state of the MAIN file into the backup file. +{ + echo "BAKSTART" + cat $MAIN + echo "BAKEND" +} >>$BAK + +echo "Backup created successfully." +sudo cp -f $LOCAL $MAIN +echo "Config overwritten." diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index ae6aab72..ff6d23f4 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -1,7 +1,7 @@ { "CopilotChat.nvim": { "branch": "canary", "commit": "451d365928a994cda3505a84905303f790e28df8" }, "LazyVim": { "branch": "main", "commit": "7bdc205e7da3c24d0d3b838ed9d7fdcd62a0ac1d" }, - "SchemaStore.nvim": { "branch": "main", "commit": "80b0243371163258e6eb3f0932f717b2d732b64e" }, + "SchemaStore.nvim": { "branch": "main", "commit": "51644f296db488d20ecb84f4d9a050c46d5b4dfc" }, "bufferline.nvim": { "branch": "main", "commit": "261a72b90d6db4ed8014f7bda976bcdc9dd7ce76" }, "catppuccin": { "branch": "main", "commit": "faf15ab0201b564b6368ffa47b56feefc92ce3f4" }, "clangd_extensions.nvim": { "branch": "main", "commit": "8f7b72100883e0e34400d9518d40a03f21e4d0a6" }, @@ -13,7 +13,7 @@ "colorbuddy.nvim": { "branch": "master", "commit": "8b968581e5c19d22a861d5f3fe5dbd83394fa681" }, "conform.nvim": { "branch": "master", "commit": "02fd64fb3d4b18ec029c0e0683c3dc3ec6d2c5b8" }, "copilot-cmp": { "branch": "master", "commit": "b6e5286b3d74b04256d0a7e3bd2908eabec34b44" }, - "copilot.lua": { "branch": "master", "commit": "f8d8d872bb319f640d5177dad5fbf01f7a16d7d0" }, + "copilot.lua": { "branch": "master", "commit": "c810500b69cb8bcea58f2be635cb1340011714b5" }, "crates.nvim": { "branch": "main", "commit": "8bf8358ee326d5d8c11dcd7ac0bcc9ff97dbc785" }, "dashboard-nvim": { "branch": "master", "commit": "ae309606940d26d8c9df8b048a6e136b6bbec478" }, "dial.nvim": { "branch": "master", "commit": "46b4375e84e8eb771129bff6b2b1e47746601ef9" }, @@ -23,7 +23,7 @@ "grug-far.nvim": { "branch": "main", "commit": "6a293a68365cff235faad3dd3851c36c829be13e" }, "image.nvim": { "branch": "master", "commit": "5f8fceca2d1be96a45b81de21c2f98bf6084fb34" }, "inc-rename.nvim": { "branch": "main", "commit": "1871ca49ae6ee3e9ebee37955ba10c7b1425974f" }, - "indent-blankline.nvim": { "branch": "master", "commit": "7871a88056f7144defca9c931e311a3134c5d509" }, + "indent-blankline.nvim": { "branch": "master", "commit": "259357fa4097e232730341fa60988087d189193a" }, "lazy.nvim": { "branch": "main", "commit": "7967abe55752aa90532e6bb4bd4663fe27a264cb" }, "lazydev.nvim": { "branch": "main", "commit": "f59bd14a852ca43db38e3662395354cb2a9b13e0" }, "ltex_extra.nvim": { "branch": "master", "commit": "24acd044ce7a26b3cdb537cbd094de37c3e1ac45" }, @@ -44,7 +44,7 @@ "mini.pairs": { "branch": "main", "commit": "7e834c5937d95364cc1740e20d673afe2d034cdb" }, "mini.surround": { "branch": "main", "commit": "48a9795c9d352c771e1ab5dedab6063c0a2df037" }, "neotest": { "branch": "master", "commit": "6d3d22cdad49999ef774ebe1bc250a4994038964" }, - "neotest-golang": { "branch": "main", "commit": "51a165e0b9d6c757d9da2b467b3c05e61f54a8ee" }, + "neotest-golang": { "branch": "main", "commit": "219ac8289db58802aaa331d499e8610bfcd861c0" }, "neotest-python": { "branch": "master", "commit": "a2861ab3c9a0bf75a56b11835c2bfc8270f5be7e" }, "neotest-zig": { "branch": "main", "commit": "b0e72626135b703fe186a062f38a47ac739f1cdd" }, "no-neck-pain.nvim": { "branch": "main", "commit": "2a786bf7130cce20449885fb799f3c7f4ce93595" }, @@ -58,14 +58,14 @@ "nvim-dap-virtual-text": { "branch": "master", "commit": "76d80c3d171224315b61c006502a1e30c213a9ab" }, "nvim-jdtls": { "branch": "master", "commit": "ece818f909c6414cbad4e1fb240d87e003e10fda" }, "nvim-lint": { "branch": "master", "commit": "6b46370d02cd001509a765591a3ffc481b538794" }, - "nvim-lspconfig": { "branch": "master", "commit": "1aa9f36b6d542dafc0b4a38c48969d036003b00a" }, + "nvim-lspconfig": { "branch": "master", "commit": "6e385d2fe5da6714f00142afbd8d3591d330ffd7" }, "nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" }, "nvim-noirbuddy": { "branch": "master", "commit": "7fa6c8963585f97c9e37a62a00751f4d9d480f95" }, "nvim-notify": { "branch": "master", "commit": "fbef5d32be8466dd76544a257d3f3dce20082a07" }, "nvim-snippets": { "branch": "main", "commit": "56b4052f71220144689caaa2e5b66222ba5661eb" }, "nvim-spider": { "branch": "main", "commit": "8b9dc30243336655699179fd095841adb29434cd" }, - "nvim-treesitter": { "branch": "master", "commit": "b31188671d8a060022dbbeb6905019e69e310108" }, - "nvim-treesitter-context": { "branch": "master", "commit": "920999bf53daa63ddf12efdeb5137a7cea1cc201" }, + "nvim-treesitter": { "branch": "master", "commit": "0aaf146590f3edd1dfa64fbfa2ad1cdca65afa6f" }, + "nvim-treesitter-context": { "branch": "master", "commit": "8ebcf62cf48dd97b3d121884ecb6bc4c00f1b069" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "ad8f0a472148c3e0ae9851e26a722ee4e29b1595" }, "nvim-ts-autotag": { "branch": "main", "commit": "1cca23c9da708047922d3895a71032bc0449c52d" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "9c74db656c3d0b1c4392fc89a016b1910539e7c0" }, @@ -79,8 +79,8 @@ "pomo.nvim": { "branch": "main", "commit": "7e06e5221d8d1e596a0ab29dd4d7fcee5f3cd05a" }, "presence.nvim": { "branch": "main", "commit": "df0a0b52cd0799e99d1b76805d1357ae9c0d017d" }, "refactoring.nvim": { "branch": "master", "commit": "2db6d378e873de31d18ade549c2edba64ff1c2e3" }, - "rustaceanvim": { "branch": "master", "commit": "d0b2369e677e299ae9d010b997e54c983c63802d" }, - "snacks.nvim": { "branch": "main", "commit": "60bd4e108cf7b2df0c0f578815b2b985d2cc2871" }, + "rustaceanvim": { "branch": "master", "commit": "bf3d8c7bcbf20a7e7f4af36c2d5390ca6ad43281" }, + "snacks.nvim": { "branch": "main", "commit": "974bccb126b6b5d7170c519c380207069d23f557" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" }, "telescope.nvim": { "branch": "master", "commit": "2eca9ba22002184ac05eddbe47a7fe2d5a384dfc" }, "text-case.nvim": { "branch": "main", "commit": "e898cfd46fa6cde0e83abb624a16e67d2ffc6457" }, diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua index 0dade12e..b9ee2b3d 100644 --- a/.config/nvim/lua/config/keymaps.lua +++ b/.config/nvim/lua/config/keymaps.lua @@ -51,9 +51,9 @@ map({ "n" }, "", "H", { remap = false }) -- better quit map("n", "", "qa", { desc = "Quit All" }) -map("n", "", function() - Snacks.bufdelete() -end, { remap = true, desc = "Delete Buffer" }) +-- map("n", "", function() +-- Snacks.bufdelete() +-- end, { remap = true, desc = "Delete Buffer" }) -- yank history map({ "n", "x" }, "fp", function()