sensitivity option move in hyprland

This commit is contained in:
2024-09-15 08:14:50 +05:00
parent 5dd8eaa3ac
commit d150abc9f8
4 changed files with 147 additions and 52 deletions

View File

@ -2,14 +2,14 @@ source=~/.config/hypr/mocha.conf
exec-once = copyq --start-server exec-once = copyq --start-server
exec-once=waybar exec-once=sleep 10;waybar
exec-once=hyprpaper exec-once=hyprpaper
exec-once=dunst exec-once=dunst
exec-once = hyprpm reload -n exec-once = hyprpm reload -n
monitor=DP-2,2560x1440@144,1920x0,1,vrr,2
monitor=HDMI-A-1,1920x1080@60,0x360,1 monitor=HDMI-A-1,1920x1080@60,0x360,1
monitor=DP-2,2560x1440@144,1920x0,1,vrr,2
env = GDK_BACKEND,wayland,x11,* env = GDK_BACKEND,wayland,x11,*
# env = QT_QPA_PLATFORM,wayland,xcb,* # env = QT_QPA_PLATFORM,wayland,xcb,*
@ -29,6 +29,7 @@ input {
accel_profile = accel_profile =
sensitivity = 1
follow_mouse = 1 follow_mouse = 1
mouse_refocus = true mouse_refocus = true
@ -44,8 +45,6 @@ general {
gaps_out = 20 gaps_out = 20
border_size = 2 border_size = 2
sensitivity = 1
col.active_border = rgba(05a4c480) col.active_border = rgba(05a4c480)
col.inactive_border = rgba(595959aa) col.inactive_border = rgba(595959aa)

View File

@ -89,7 +89,8 @@ visualizer_in_stereo = yes
## visualization and audio. ## visualization and audio.
## ##
# #
visualizer_sync_interval = 0 #DEPRECTED??
# visualizer_sync_interval = 0
# #
## ##
## Note: To enable spectrum frequency visualization you need to compile ncmpcpp ## Note: To enable spectrum frequency visualization you need to compile ncmpcpp

View File

@ -14,6 +14,7 @@ which_key.setup({
-- the presets plugin, adds help for a bunch of default keybindings in Neovim -- the presets plugin, adds help for a bunch of default keybindings in Neovim
-- No actual key bindings are created -- No actual key bindings are created
presets = { presets = {
operators = false, -- adds help for operators like d, y, ...
motions = false, -- adds help for motions motions = false, -- adds help for motions
text_objects = false, -- help for text objects triggered after entering an operator text_objects = false, -- help for text objects triggered after entering an operator
windows = false, -- default bindings on <c-w> windows = false, -- default bindings on <c-w>
@ -24,14 +25,24 @@ which_key.setup({
}, },
-- add operators that will trigger motion and text object completion -- add operators that will trigger motion and text object completion
-- to enable all native operators, set the preset / operators plugin above -- to enable all native operators, set the preset / operators plugin above
win = { operators = { gc = "Comments" },
key_labels = {
-- override the label used to display some keys. It doesn't effect WK in any other way.
-- For example:
-- ["<space>"] = "SPC",
-- ["<cr>"] = "RET",
-- ["<tab>"] = "TAB",
},
popup_mappings = {
scroll_down = "<c-d>", -- binding to scroll down inside the popup
scroll_up = "<c-u>", -- binding to scroll up inside the popup
},
window = {
border = "single", -- none, single, double, shadow border = "single", -- none, single, double, shadow
position = "bottom", -- bottom, top position = "bottom", -- bottom, top
margin = { 1, 0, 1, 0 }, -- extra window margin [top, right, bottom, left] margin = { 1, 0, 1, 0 }, -- extra window margin [top, right, bottom, left]
padding = { 2, 2, 2, 2 }, -- extra window padding [top, right, bottom, left] padding = { 2, 2, 2, 2 }, -- extra window padding [top, right, bottom, left]
wo = { winblend = 0,
winblend = 0,
}
}, },
layout = { layout = {
height = { min = 4, max = 25 }, -- min and max height of the columns height = { min = 4, max = 25 }, -- min and max height of the columns
@ -39,13 +50,19 @@ which_key.setup({
spacing = 3, -- spacing between columns spacing = 3, -- spacing between columns
align = "left", -- align columns left, center or right align = "left", -- align columns left, center or right
}, },
-- hidden = { "<silent>", "<cmd>", "<Cmd>", "<CR>", "call", "lua", "^:", "^ " }, -- hide mapping boilerplate ignore_missing = true, -- enable this to hide mappings for which you didn't specify a label
hidden = { "<silent>", "<cmd>", "<Cmd>", "<CR>", "call", "lua", "^:", "^ " }, -- hide mapping boilerplate
show_help = true, -- show help message on the command line when the popup is visible show_help = true, -- show help message on the command line when the popup is visible
show_keys = true, -- show the currently pressed key and its label as a message in the command line show_keys = true, -- show the currently pressed key and its label as a message in the command line
triggers = { triggers = "auto", -- automatically setup triggers
{ "<auto>", mode = "nxsot" },
},
-- triggers = {"<leader>"} -- or specify a list manually -- triggers = {"<leader>"} -- or specify a list manually
triggers_blacklist = {
-- list of mode / prefixes that should never be hooked by WhichKey
-- this is mostly relevant for key maps that start with a native binding
-- most people should not need to change this
i = { "j", "k" },
v = { "j", "k" },
},
-- disable the WhichKey popup for certain buf types and file types. -- disable the WhichKey popup for certain buf types and file types.
-- Disabled by default for Telescope -- Disabled by default for Telescope
disable = { disable = {
@ -54,43 +71,121 @@ which_key.setup({
}, },
}) })
which_key.add({ which_key.register({
{ "<leader>", group = "Hotkeys" }, name = "Hotkeys",
{ "<leader>F", ":lua vim.lsp.buf.format() <CR>", desc = "Format file" }, o = {
{ "<leader>c", group = "Code actions" }, ":Oil --float <CR>",
{ "<leader>ca", "<cmd>lua vim.lsp.buf.code_action()<CR>", desc = "Show code actions" }, "Oil nvim toggle",
{ "<leader>d", group = "DAP" }, },
{ "<leader>db", "<cmd>DapToggleBreakpoint<CR>", desc = "Toggle breakpoint" }, e = {
{ "<leader>dj", "<cmd>DapStepInto<CR>", desc = "StepInto" }, ":Neotree toggle <CR>",
{ "<leader>dk", "<cmd>DapStepOut<CR>", desc = "StepOut" }, "File tree toggle",
{ "<leader>dl", "<cmd>DapStepOver<CR>", desc = "StepOver" }, },
{ "<leader>dr", "<cmd>DapContinue<CR>", desc = "DapContinue" }, F = {
{ "<leader>ds", "<cmd>DapTerminate<CR>", desc = "Terminate" }, ":lua vim.lsp.buf.format() <CR>",
{ "<leader>e", ":Neotree toggle <CR>", desc = "File tree toggle" }, "Format file",
{ "<leader>f", group = "Find" }, },
{ "<leader>fb", "<cmd>lua require'telescope.builtin'.buffers()<cr>", desc = "Find buffer" }, f = {
{ "<leader>ff", "<cmd>lua require'telescope.builtin'.find_files(require('telescope.themes').get_dropdown({ previewer = false }))<cr>", desc = "Find file" }, name = "Find",
{ "<leader>fw", "<cmd>lua require'telescope.builtin'.live_grep()<cr>", desc = "Grep file" }, f = {
{ "<leader>l", "<cmd>lua vim.diagnostic.setloclist()<CR>", desc = "Show diagnostic list" }, "<cmd>lua require'telescope.builtin'.find_files(require('telescope.themes').get_dropdown({ previewer = false }))<cr>",
{ "<leader>o", ":Oil --float <CR>", desc = "Oil nvim toggle" }, "Find file",
{ "<leader>t", group = "Tabs" }, },
{ "<leader>tn", "<cmd>tabnew<CR>", desc = "New tab" }, w = {
{ "<leader>tq", "<cmd>tabclose<CR>", desc = "Close tab" }, "<cmd>lua require'telescope.builtin'.live_grep()<cr>",
} "Grep file",
) },
b = {
"<cmd>lua require'telescope.builtin'.buffers()<cr>",
"Find buffer",
},
},
c = {
name = "Code actions",
a = {
"<cmd>lua vim.lsp.buf.code_action()<CR>",
"Show code actions",
},
},
l = {
"<cmd>lua vim.diagnostic.setloclist()<CR>",
"Show diagnostic list",
},
d = {
name = "DAP",
r = {
"<cmd>DapContinue<CR>",
"DapContinue",
},
j = {
"<cmd>DapStepInto<CR>",
"StepInto",
},
l = {
"<cmd>DapStepOver<CR>",
"StepOver",
},
k = {
"<cmd>DapStepOut<CR>",
"StepOut",
},
b = {
"<cmd>DapToggleBreakpoint<CR>",
"Toggle breakpoint",
},
s = {
"<cmd>DapTerminate<CR>",
"Terminate",
},
},
t = {
name = "Tabs",
n = {
"<cmd>tabnew<CR>",
"New tab",
},
q = {
"<cmd>tabclose<CR>",
"Close tab",
},
},
}, { prefix = "<leader>" })
which_key.add({ which_key.register({
{ "g", group = "LSP Actions" }, name = "LSP Actions",
{ "gD", "<cmd>lua vim.lsp.buf.declaration()<CR>", desc = "Go to declaration" }, D = {
{ "gd", "<cmd>lua vim.lsp.buf.definition()<CR>", desc = "Go to definition" }, "<cmd>lua vim.lsp.buf.declaration()<CR>",
{ "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>", desc = "Show implementations" }, "Go to declaration",
{ "gl", "<cmd>lua vim.diagnostic.open_float({ border = 'rounded' })<CR>", desc = "Show diagnostic at line" }, },
{ "gr", "<cmd>lua vim.lsp.buf.references()<CR>", desc = "Show references" }, d = {
{ "grr", "<cmd>lua vim.lsp.buf.rename()<CR>", desc = "Rename" }, "<cmd>lua vim.lsp.buf.definition()<CR>",
} "Go to definition",
) },
i = {
"<cmd>lua vim.lsp.buf.implementation()<CR>",
"Show implementations",
},
rr = {
"<cmd>lua vim.lsp.buf.rename()<CR>",
"Rename",
},
r = {
"<cmd>lua vim.lsp.buf.references()<CR>",
"Show references",
},
l = {
"<cmd>lua vim.diagnostic.open_float({ border = 'rounded' })<CR>",
"Show diagnostic at line",
},
}, { prefix = "g" })
which_key.add({ which_key.register({
{ "<C-k>", "<cmd>lua vim.lsp.buf.signature_help()<CR>", desc = "Signature help" }, ["<C-k>"] = {
{ "K", "<cmd>lua vim.lsp.buf.hover()<CR>", desc = "Signature help" }, "<cmd>lua vim.lsp.buf.signature_help()<CR>",
}) "Signature help",
},
["K"] = {
"<cmd>lua vim.lsp.buf.hover()<CR>",
"Signature help",
},
}, {})

View File

@ -19,7 +19,7 @@
"pulseaudio", "pulseaudio",
"cpu", "cpu",
"memory", "memory",
"custom/weather", // "custom/weather",
"clock" "clock"
], ],
// Modules configuration // Modules configuration