diff options
| -rw-r--r-- | lightdm-mini-greeter/etc/lightdm/lightdm-mini-greeter.conf | 114 | ||||
| -rw-r--r-- | nvim/.config/nvim/lua/plugins/lsp.lua | 231 | ||||
| -rw-r--r-- | picom/.config/picom/picom.conf | 67 |
3 files changed, 0 insertions, 412 deletions
diff --git a/lightdm-mini-greeter/etc/lightdm/lightdm-mini-greeter.conf b/lightdm-mini-greeter/etc/lightdm/lightdm-mini-greeter.conf deleted file mode 100644 index a51d15d..0000000 --- a/lightdm-mini-greeter/etc/lightdm/lightdm-mini-greeter.conf +++ /dev/null @@ -1,114 +0,0 @@ -# LightDM Mini Greeter Configuration -# -# To test your configuration out, run: lightdm --test-mode - -[greeter] -# The user to login as. -user = void -# Whether to show the password input's label. -show-password-label = true -# The text of the password input's label. -password-label-text = Password: -# The text shown when an invalid password is entered. May be blank. -invalid-password-text = Invalid Password -# Show a blinking cursor in the password input. -show-input-cursor = true -# The text alignment for the password input. Possible values are: -# "left", "center", or "right" -password-alignment = right -# The number of characters that should fit into the password input. -# A value of -1 will use GTK's default width. -# Note: The entered width is a suggestion, GTK may render a narrower input. -password-input-width = -1 -# Show the background image on all monitors or just the primary monitor. -show-image-on-all-monitors = false -# Show system info above the password input. -# `<user>@<hostname>` is shown on the left side, & current time on the right. -show-sys-info = true - - -[greeter-hotkeys] -# The modifier key used to trigger hotkeys. Possible values are: -# "alt", "control" or "meta" -# meta is also known as the "Windows"/"Super" key -mod-key = meta -# Power management shortcuts (single-key, case-sensitive) -shutdown-key = s -restart-key = r -hibernate-key = h -suspend-key = u -# Cycle through available sessions -session-key = e - - -[greeter-theme] -# A color from X11's `rgb.txt` file, a quoted hex string(`"#rrggbb"`) or a -# RGB color(`rgb(r,g,b)`) are all acceptable formats. - -# The font to use for all text -font = "Hasklug Nerd Font Propo" -# The font size to use for all text -font-size = 1em -# The font weight to use for all text -font-weight = medium -# The font style to use for all text -font-style = normal -# The default text color -text-color = "#9c0911" -# The color of the error text -error-color = "#F8F8F0" -# An absolute path to an optional background image. -# Note: The file should be somewhere that LightDM has permissions to read -# (e.g., /etc/lightdm/). -background-image = "/usr/share/backgrounds/login.png" -# Background image size: -# auto: unscaled -# cover: scale image to fill screen space -# contain: scale image to fit inside screen space -# (more options: https://www.w3.org/TR/css-backgrounds-3/#background-size) -background-image-size = contain -# The screen's background color. -background-color = "#1B1D1E" -# The password window's background color -window-color = "#151515" -# The color of the password window's border -border-color = "#9c0911" -# The width of the password window's border. -# A trailing `px` is required. -border-width = 1px -# The pixels of empty space around the password input. -# Do not include a trailing `px`. -layout-space = 15 -# The character used to mask your password. Possible values are: -# "-1", "0", or a single unicode character(including emojis) -# A value of -1 uses the default bullet & 0 displays no characters when you -# type your password. -password-character = -1 -# The color of the text in the password input. -password-color = "#F8F8F0" -# The background color of the password input. -password-background-color = "#151515" -# The color of the password input's border. -# Falls back to `border-color` if missing. -password-border-color = "#080800" -# The width of the password input's border. -# Falls back to `border-width` if missing. -password-border-width = 0px -# The border radius of the password input. -password-border-radius = 0em -# Override font for system info -# Falls back to `font` if missing. -# sys-info-font = "Mono" -# Set font size of system info -# Falls back to `font-size` if missing. -sys-info-font-size = 0.8em -# Override color for system info text -# Falls back to `text-color` if missing. -# sys-info-color = "#080800" -# Margins around the system info section -# The default `-5px -5px -5px` works well with the password label enabled. -# If you have the label disabled, you might want to try `-5px -5px 0px` -sys-info-margin = -5px -5px -5px -# Relative position of window on screen (0-1 float) -x-pos = 0.15 -y-pos = 0.5 diff --git a/nvim/.config/nvim/lua/plugins/lsp.lua b/nvim/.config/nvim/lua/plugins/lsp.lua deleted file mode 100644 index 2e2c368..0000000 --- a/nvim/.config/nvim/lua/plugins/lsp.lua +++ /dev/null @@ -1,231 +0,0 @@ -return { - 'neovim/nvim-lspconfig', - dependencies = { - 'williamboman/mason.nvim', - 'williamboman/mason-lspconfig.nvim', - -- Autocompletion - 'hrsh7th/nvim-cmp', - 'hrsh7th/cmp-buffer', - 'hrsh7th/cmp-path', - 'saadparwaiz1/cmp_luasnip', - 'hrsh7th/cmp-nvim-lsp', - 'hrsh7th/cmp-nvim-lua', - -- Snippets - 'L3MON4D3/LuaSnip', - 'rafamadriz/friendly-snippets', - }, - config = function() - local autoformat_filetypes = { - "lua", - } - -- Create a keymap for vim.lsp.buf.implementation - vim.api.nvim_create_autocmd('LspAttach', { - callback = function(args) - local client = vim.lsp.get_client_by_id(args.data.client_id) - if not client then return end - if vim.tbl_contains(autoformat_filetypes, vim.bo.filetype) then - vim.api.nvim_create_autocmd("BufWritePre", { - buffer = args.buf, - callback = function() - vim.lsp.buf.format({ - formatting_options = { tabSize = 4, insertSpaces = true }, - bufnr = args.buf, - id = client.id - }) - end - }) - end - end - }) - - -- Add borders to floating windows - vim.lsp.handlers['textDocument/hover'] = vim.lsp.with( - vim.lsp.handlers.hover, - { border = 'rounded' } - ) - vim.lsp.handlers['textDocument/signatureHelp'] = vim.lsp.with( - vim.lsp.handlers.signature_help, - { border = 'rounded' } - ) - - -- Configure error/warnings interface - vim.diagnostic.config({ - virtual_text = true, - severity_sort = true, - float = { - style = 'minimal', - border = 'rounded', - header = '', - prefix = '', - }, - signs = { - text = { - [vim.diagnostic.severity.ERROR] = '✘', - [vim.diagnostic.severity.WARN] = '▲', - [vim.diagnostic.severity.HINT] = '⚑', - [vim.diagnostic.severity.INFO] = '»', - }, - }, - }) - - -- Add cmp_nvim_lsp capabilities settings to lspconfig - -- This should be executed before you configure any language server - local lspconfig_defaults = require('lspconfig').util.default_config - lspconfig_defaults.capabilities = vim.tbl_deep_extend( - 'force', - lspconfig_defaults.capabilities, - require('cmp_nvim_lsp').default_capabilities() - ) - - -- This is where you enable features that only work - -- if there is a language server active in the file - vim.api.nvim_create_autocmd('LspAttach', { - callback = function(event) - local opts = { buffer = event.buf } - - vim.keymap.set('n', 'K', '<cmd>lua vim.lsp.buf.hover()<cr>', opts) - vim.keymap.set('n', 'gd', '<cmd>lua vim.lsp.buf.definition()<cr>', opts) - vim.keymap.set('n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<cr>', opts) - vim.keymap.set('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<cr>', opts) - vim.keymap.set('n', 'go', '<cmd>lua vim.lsp.buf.type_definition()<cr>', opts) - vim.keymap.set('n', 'gr', '<cmd>lua vim.lsp.buf.references()<cr>', opts) - vim.keymap.set('n', 'gs', '<cmd>lua vim.lsp.buf.signature_help()<cr>', opts) - vim.keymap.set('n', 'gl', '<cmd>lua vim.diagnostic.open_float()<cr>', opts) - vim.keymap.set('n', '<F2>', '<cmd>lua vim.lsp.buf.rename()<cr>', opts) - vim.keymap.set({ 'n', 'x' }, '<F3>', '<cmd>lua vim.lsp.buf.format({async = true})<cr>', opts) - vim.keymap.set('n', '<F4>', '<cmd>lua vim.lsp.buf.code_action()<cr>', opts) - end, - }) - - require('mason').setup({}) - require('mason-lspconfig').setup({ - ensure_installed = { - "lua_ls", - "intelephense", - "ts_ls", - "eslint", - }, - handlers = { - -- this first function is the "default handler" - -- it applies to every language server without a custom handler - function(server_name) - require('lspconfig')[server_name].setup({}) - end, - - -- this is the "custom handler" for `lua_ls` - lua_ls = function() - require('lspconfig').lua_ls.setup({ - settings = { - Lua = { - runtime = { - version = 'LuaJIT', - }, - diagnostics = { - globals = { 'vim' }, - }, - workspace = { - library = { vim.env.VIMRUNTIME }, - }, - }, - }, - }) - end, - }, - }) - - local cmp = require('cmp') - - require('luasnip.loaders.from_vscode').lazy_load() - - vim.opt.completeopt = { 'menu', 'menuone', 'noselect' } - - cmp.setup({ - preselect = 'item', - completion = { - completeopt = 'menu,menuone,noinsert' - }, - window = { - documentation = cmp.config.window.bordered(), - }, - sources = { - { name = 'path' }, - { name = 'nvim_lsp' }, - { name = 'buffer', keyword_length = 3 }, - { name = 'luasnip', keyword_length = 2 }, - }, - snippet = { - expand = function(args) - require('luasnip').lsp_expand(args.body) - end, - }, - formatting = { - fields = { 'abbr', 'menu', 'kind' }, - format = function(entry, item) - local n = entry.source.name - if n == 'nvim_lsp' then - item.menu = '[LSP]' - else - item.menu = string.format('[%s]', n) - end - return item - end, - }, - mapping = cmp.mapping.preset.insert({ - -- confirm completion item - ['<CR>'] = cmp.mapping.confirm({ select = false }), - - -- scroll documentation window - ['<C-f>'] = cmp.mapping.scroll_docs(5), - ['<C-u>'] = cmp.mapping.scroll_docs(-5), - - -- toggle completion menu - ['<C-e>'] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.abort() - else - cmp.complete() - end - end), - - -- tab complete - ['<Tab>'] = cmp.mapping(function(fallback) - local col = vim.fn.col('.') - 1 - - if cmp.visible() then - cmp.select_next_item({ behavior = 'select' }) - elseif col == 0 or vim.fn.getline('.'):sub(col, col):match('%s') then - fallback() - else - cmp.complete() - end - end, { 'i', 's' }), - - -- go to previous item - ['<S-Tab>'] = cmp.mapping.select_prev_item({ behavior = 'select' }), - - -- navigate to next snippet placeholder - ['<C-d>'] = cmp.mapping(function(fallback) - local luasnip = require('luasnip') - - if luasnip.jumpable(1) then - luasnip.jump(1) - else - fallback() - end - end, { 'i', 's' }), - - -- navigate to the previous snippet placeholder - ['<C-b>'] = cmp.mapping(function(fallback) - local luasnip = require('luasnip') - - if luasnip.jumpable(-1) then - luasnip.jump(-1) - else - fallback() - end - end, { 'i', 's' }), - }), - }) - end -} - diff --git a/picom/.config/picom/picom.conf b/picom/.config/picom/picom.conf deleted file mode 100644 index 5290d9d..0000000 --- a/picom/.config/picom/picom.conf +++ /dev/null @@ -1,67 +0,0 @@ -# picom.conf - Responsive bounce-style minimize animation with Plank excluded - -# General settings -backend = "xrender"; -vsync = true; -use-damage = true; -refresh-rate = 0; - -# Shadows (light, for a bit of depth) -shadow = true; -shadow-radius = 8; -shadow-opacity = 0.25; -shadow-offset-x = -7; -shadow-offset-y = -7; -shadow-exclude = [ - "name = 'Notification'", - "class_g = 'Polybar'", - "class_g = 'Conky'", - "class_g = 'Plank'", - "class_g ?= 'Dunst'", - "_GTK_FRAME_EXTENTS@:c" -]; - -# Fading - snappy transition -fading = true; -fade-in-step = 0.08; -fade-out-step = 0.08; -fade-delta = 10; -no-fading-openclose = false; - -# Exclude some windows from fading -fade-exclude = [ - "class_g = 'i3-frame'", - "class_g = 'Conky'", - "class_g = 'Plank'", - "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" -]; - -# Transparency -inactive-opacity = 1.0; -active-opacity = 1.0; -frame-opacity = 1.0; - -# Bounce animation settings for minimize effect -animation = false; -animation-stiffness = 500; # High stiffness for a bouncy effect -animation-window-movement = true; -animation-dampening = 10; # Dampening for quick bounce-back effect -animation-for-minimize = "bounce"; # Sets bounce effect for minimize animation - -# Exclude specific windows from animations (like Plank) -animation-exclude = [ - "class_g = 'Polybar'", - "class_g = 'Conky'", - "class_g = 'Plank'", - "class_g ?= 'Dunst'" -]; - -# Rounded corners for a smooth appearance -# corner-radius = 8; - -# Experimental backends for smoother rendering -glx-no-stencil = true; -glx-no-rebind-pixmap = true; -use-ewmh-active-win = true; -# detect-rounded-corners = true; -detect-client-opacity = true; |
