Compare commits

...

3 Commits

Author SHA1 Message Date
a9f3dd28de [Nvim] mappings 2026-04-12 00:51:10 +02:00
f0dfb66fc2 [Nvim] gen -> codecompanion 2026-04-12 00:51:01 +02:00
62f68b6570 [Hypr] hypridle fix 2026-04-12 00:50:46 +02:00
3 changed files with 16 additions and 9 deletions

View File

@@ -17,19 +17,25 @@ general {
}
listener {
timeout = 210 # 5min
timeout = 180
on-timeout = bash -c 'brightnessctl -s set 50'
on-resume = bash -c 'brightnessctl -r'
}
listener {
timeout = 250 # 5min
on-timeout = loginctl lock-session # lock screen when timeout has passed
}
listener {
timeout = 220 # 3.6 minutes
on-timeout = bash -c 'brightnessctl -s set 10; brightnessctl -d tpacpi::kbd_backlight set 0; hyprctl dispatch dpms off'
timeout = 350 # 3.6 minutes
on-timeout = bash -c 'brightnessctl -r; brightnessctl -s set 10; brightnessctl -d tpacpi::kbd_backlight set 0; hyprctl dispatch dpms off'
on-resume = bash -c 'brightnessctl -r; brightnessctl -d tpacpi::kbd_backlight set 1; hyprctl dispatch dpms on'
}
listener {
timeout = 230 # 5.5min
timeout = 550 # 5.5min
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
}

View File

@@ -7,9 +7,9 @@
"cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" },
"cmp-nvim-lua": { "branch": "main", "commit": "e3a22cb071eb9d6508a156306b102c45cd2d573d" },
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
"codecompanion.nvim": { "branch": "main", "commit": "83f5c9c99d9c0687cc94197976d81ce619727986" },
"conform.nvim": { "branch": "master", "commit": "086a40dc7ed8242c03be9f47fbcee68699cc2395" },
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
"gen.nvim": { "branch": "main", "commit": "c8e1f574d4a3a839dde73a87bdc319a62ee1e559" },
"gitsigns.nvim": { "branch": "main", "commit": "0d797daee85366bc242580e352a4f62d67557b84" },
"indent-blankline.nvim": { "branch": "master", "commit": "d28a3f70721c79e3c5f6693057ae929f3d9c0a03" },
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },

View File

@@ -1,15 +1,16 @@
require "nvchad.mappings"
-- add yours here
local map = vim.keymap.set
map("n", "gd", vim.lsp.buf.definition, { desc = "Go to definition" })
map("n", "gD", ":Telescope lsp_definitions<CR>", { desc = "Go to Definitions" })
map("n", "grr", ":Telescope lsp_references<CR>", { desc = "Go to References" })
map("n", "<leader>gl", ":lua vim.lsp.buf.code_action()<CR>", { noremap = true, silent = true })
map("n", "gD", "<cmd>Telescope lsp_definitions<CR>", { desc = "Go to Definitions" })
map("n", "grr", "<cmd>Telescope lsp_references<CR>", { desc = "Go to references" })
map("n", "<leader>da", ":lua vim.lsp.buf.code_action()<cr>", { desc = "Code actions", noremap = true, silent = true })
map("n", "<leader>dh", ":lua vim.diagnostic.open_float()<CR>", { desc = "Show diagnostics" })
map("n", "<leader>dj", ":lua vim.diagnostic.goto_next()<CR>", { desc = "Go to next" })
map("n", "<leader>dk", ":lua vim.diagnostic.goto_prev()<CR>", { desc = "Go to previous" })
map("n", "<leader>da", ":lua vim.lsp.buf.code_action()<CR>", { desc = "Code actions", noremap = true, silent = true })
-- Telescope
map("n", "<leader>fr", ":Telescope resume<CR>", { desc = "Resume last search" })
map("n", "<leader>fs", ":Telescope grep_string<CR>", { desc = "Find selected string" })