Updated config
This commit is contained in:
parent
6abf78bec4
commit
e2e8834d8c
@ -21,6 +21,10 @@ alias l2 "ls -T -L2"
|
||||
alias lu "ls -l --total-size --sort=size --reverse --no-permissions --no-user --no-time"
|
||||
alias lp "ls -l --no-filesize --no-time"
|
||||
|
||||
# Lsof
|
||||
alias tcp "lsof -PniTCP"
|
||||
alias udp "lsof -PniUDP"
|
||||
|
||||
# Neovim
|
||||
alias e "nvim"
|
||||
alias n "nvim"
|
||||
|
@ -1,3 +1,4 @@
|
||||
exec-once = dunst
|
||||
exec-once = waypaper --restore
|
||||
exec-once = wl-paste --watch cliphist store
|
||||
exec-once = [workspace special:magic silent;float;size 960 540;center] $terminal
|
||||
|
@ -29,6 +29,10 @@ input {
|
||||
accel_profile = flat
|
||||
}
|
||||
|
||||
debug {
|
||||
overlay = false
|
||||
}
|
||||
|
||||
decoration {
|
||||
rounding = 6
|
||||
|
||||
|
@ -1,31 +1,32 @@
|
||||
$leader = SUPER
|
||||
$movews = CTRL ALT
|
||||
$main = SUPER
|
||||
|
||||
# Apps
|
||||
bind = $leader, T, exec, $terminal
|
||||
bind = $leader, B, exec, $browser
|
||||
bind = $leader, E, exec, $files
|
||||
bind = $leader, D, exec, $terminal -e $editor
|
||||
bind = $leader, L, exec, $lockscreen
|
||||
bind = $leader, Space, exec, $menu
|
||||
bind = $main, B, exec, $browser
|
||||
bind = $main, D, exec, $editor
|
||||
bind = $main, E, exec, $files
|
||||
bind = $main, L, exec, $lockscreen
|
||||
bind = $main, T, exec, $terminal
|
||||
bind = $main, M, exec, pkill $statusbar || $statusbar
|
||||
bind = $main, Space, exec, $menu
|
||||
bind = $main SHIFT, T, exec, [float;size 960 540;center] $terminal
|
||||
bind = , Print, exec, $screenshot
|
||||
|
||||
# Session management
|
||||
bind = $leader, Backspace, exit,
|
||||
bind = $leader, F12, exec, $logout
|
||||
|
||||
# Window management
|
||||
bind = $leader, C, killactive,
|
||||
bind = $leader, F, fullscreen,
|
||||
bind = $leader, V, togglefloating,
|
||||
bind = $leader, P, pseudo,
|
||||
bind = $leader, J, togglesplit,
|
||||
bind = $main, C, killactive,
|
||||
bind = $main, F, fullscreen,
|
||||
bind = $main, V, togglefloating,
|
||||
bind = $main, P, pseudo,
|
||||
bind = $main, J, togglesplit,
|
||||
|
||||
# Move focus with leader + arrow keys
|
||||
bind = $leader, left, movefocus, l
|
||||
bind = $leader, right, movefocus, r
|
||||
bind = $leader, up, movefocus, u
|
||||
bind = $leader, down, movefocus, d
|
||||
# Session management
|
||||
bind = $main, Backspace, exit,
|
||||
bind = $main, F12, exec, $logout
|
||||
|
||||
# Window focus
|
||||
bind = $main, left, movefocus, l
|
||||
bind = $main, right, movefocus, r
|
||||
bind = $main, up, movefocus, u
|
||||
bind = $main, down, movefocus, d
|
||||
|
||||
# Switch workspaces with numpad
|
||||
bind =, KP_Home, workspace, 1
|
||||
@ -38,35 +39,35 @@ bind =, KP_End, workspace, 7
|
||||
bind =, KP_Down, workspace, 8
|
||||
bind =, KP_Next, workspace, 9
|
||||
|
||||
# Move active window to an adjacent workspace
|
||||
bind = $movews, right, movetoworkspace, +1
|
||||
bind = $movews, left, movetoworkspace, -1
|
||||
# Move window to a specific workspace
|
||||
bind = $main, 1, movetoworkspace, 1
|
||||
bind = $main, 2, movetoworkspace, 2
|
||||
bind = $main, 3, movetoworkspace, 3
|
||||
bind = $main, 4, movetoworkspace, 4
|
||||
bind = $main, 5, movetoworkspace, 5
|
||||
bind = $main, 6, movetoworkspace, 6
|
||||
bind = $main, 7, movetoworkspace, 7
|
||||
bind = $main, 8, movetoworkspace, 8
|
||||
bind = $main, 9, movetoworkspace, 9
|
||||
|
||||
# Move active window to a specific workspace
|
||||
bind = $movews, 1, movetoworkspace, 1
|
||||
bind = $movews, 2, movetoworkspace, 2
|
||||
bind = $movews, 3, movetoworkspace, 3
|
||||
bind = $movews, 4, movetoworkspace, 4
|
||||
bind = $movews, 5, movetoworkspace, 5
|
||||
bind = $movews, 6, movetoworkspace, 6
|
||||
bind = $movews, 7, movetoworkspace, 7
|
||||
bind = $movews, 8, movetoworkspace, 8
|
||||
bind = $movews, 9, movetoworkspace, 9
|
||||
# Move window to an adjacent workspace
|
||||
bind = $main ALT, right, movetoworkspace, +1
|
||||
bind = $main ALT, left, movetoworkspace, -1
|
||||
|
||||
# Example special workspace (scratchpad)
|
||||
bind = $leader, S, togglespecialworkspace, magic
|
||||
bind = $leader SHIFT, S, movetoworkspace, special:magic
|
||||
# Special workspace (scratchpad)
|
||||
bind = $main, Z, togglespecialworkspace, magic
|
||||
bind = $main SHIFT, Z, movetoworkspace, special:magic
|
||||
|
||||
# Move/resize windows with leader + LMB/RMB and dragging
|
||||
bindm = $leader, mouse:272, movewindow
|
||||
bindm = $leader, mouse:273, resizewindow
|
||||
# Move and resize windows (main + LMB/RMB and drag)
|
||||
bindm = $main, mouse:272, movewindow
|
||||
bindm = $main, mouse:273, resizewindow
|
||||
|
||||
# Media player control
|
||||
bindl =, XF86AudioPlay, exec, playerctl play-pause
|
||||
bindl =, XF86AudioNext, exec, playerctl next
|
||||
bindl =, XF86AudioPrev, exec, playerctl previous
|
||||
|
||||
# Volume control
|
||||
bindle =, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+
|
||||
bindle =, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05-
|
||||
bindl =, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
|
||||
# Media keys
|
||||
bindl =, XF86AudioPlay, exec, playerctl play-pause
|
||||
bindl =, XF86AudioNext, exec, playerctl next
|
||||
bindl =, XF86AudioPrev, exec, playerctl previous
|
||||
|
@ -1,10 +1,10 @@
|
||||
$browser = firefox
|
||||
$editor = nvim
|
||||
$email = geary
|
||||
$email = evolution
|
||||
$files = nautilus
|
||||
$logout = wlogout
|
||||
$lockscreen = swaylock
|
||||
$menu = pkill fuzzel || fuzzel
|
||||
$screenshot = IMG=~/pictures/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png && grim -g "$(slurp -d)" $IMG && wl-copy < $IMG
|
||||
$statusbar = ~/.bin/launch-waybar
|
||||
$statusbar = waybar
|
||||
$terminal = alacritty
|
||||
$editor = $terminal -e nvim
|
||||
|
@ -2,19 +2,20 @@
|
||||
"Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" },
|
||||
"flash.nvim": { "branch": "main", "commit": "48817af25f51c0590653bbc290866e4890fe1cbe" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "2c2463dbd82eddd7dbab881c3a62cfbfbe3c67ae" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "aedcd79811d491b60d0a6577a9c1701063c2a609" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "83493db50a434a4c5c648faf41e2ead80f96e478" },
|
||||
"mini.completion": { "branch": "main", "commit": "0cf6c4e257b5e8189ac6b3ffa2064a319c4eb8a8" },
|
||||
"mini.surround": { "branch": "main", "commit": "a1b590cc3b676512de507328d6bbab5e43794720" },
|
||||
"monokai.nvim": { "branch": "master", "commit": "b8bd44d5796503173627d7a1fc51f77ec3a08a63" },
|
||||
"noice.nvim": { "branch": "main", "commit": "bf67d70bd7265d075191e7812d8eb42b9791f737" },
|
||||
"nui.nvim": { "branch": "main", "commit": "756c59f46057cd2d43619cd3a6d4e01b2aa60295" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "c6139ca0d5ad7af129ea6c89cb4c56093f2c034a" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "e5e600232188ed9fb960f5df6bb06084ae8bf3ec" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "16295b79410f131c4fa7870c663b4ace6a761fb2" },
|
||||
"nvim-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" },
|
||||
"nvim-tree.lua": { "branch": "master", "commit": "efafd73efa9bc8c26282aed563ba0f01c7465b06" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "9775d5d7c724f81acdd441e7e9edefc4514e990b" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "4adea17610d140a99c313e3f79a9dc01825d59ae" },
|
||||
"nvim-tree.lua": { "branch": "master", "commit": "041dbd18f440207ad161503a384e7c82d575db66" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "7ff51f53b0efb6228df2e8539b51bb2e737b77f3" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "75df79feb02d5e0ec114e447453775d4d291ea03" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" },
|
||||
"telescope-project.nvim": { "branch": "master", "commit": "1aaf16580a614601a7f7077d9639aeb457dc5559" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "dc1ea28cc2a02cd1cebb9d80e967807d668f78f8" }
|
||||
"telescope.nvim": { "branch": "master", "commit": "7472420f8734c710bd7009081cef9b97f08a3821" },
|
||||
"vim-visual-multi": { "branch": "master", "commit": "fe1ec7e430013b83c8c2dee85ae496251b71e253" }
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
return {
|
||||
"brenton-leighton/multiple-cursors.nvim",
|
||||
event = "VeryLazy",
|
||||
keys = {
|
||||
{"<C-Down>", "<Cmd>MultipleCursorsAddDown<CR>", mode = {"n", "i"}},
|
||||
{"<C-j>", "<Cmd>MultipleCursorsAddDown<CR>"},
|
||||
{"<C-Up>", "<Cmd>MultipleCursorsAddUp<CR>", mode = {"n", "i"}},
|
||||
{"<C-k>", "<Cmd>MultipleCursorsAddUp<CR>"},
|
||||
{"<C-LeftMouse>", "<Cmd>MultipleCursorsMouseAddDelete<CR>", mode = {"n", "i"}},
|
||||
{"<Leader>a", "<Cmd>MultipleCursorsAddBySearch<CR>", mode = {"n", "x"}},
|
||||
{"<Leader>A", "<Cmd>MultipleCursorsAddBySearchV<CR>", mode = {"n", "x"}},
|
||||
},
|
||||
config = true,
|
||||
}
|
@ -8,9 +8,9 @@ map({ "i", "n" }, "<esc>", "<cmd>noh<cr><esc>", "Clear search")
|
||||
map({"n", "v"}, "<leader>q", "<cmd>qa!<cr>", "Quit all")
|
||||
|
||||
-- Buffer management
|
||||
map("n", "<C-n>", "<cmd>enew<cr>", "New file")
|
||||
map("n", "<C-t>", "<cmd>enew<cr>", "New file")
|
||||
map({ "i", "n", "s", "v" }, "<C-s>", "<cmd>w<cr>", "Save file")
|
||||
map("n", "<C-q>", "<cmd>bd<cr>", "Delete buffer")
|
||||
map("n", "<C-q>", "<cmd>close<cr>", "Close window")
|
||||
|
||||
-- Copy and paste
|
||||
map("v", "<C-c>", "y")
|
||||
@ -27,10 +27,10 @@ map("n", "<C-Enter>", "i<Enter>", "Split line")
|
||||
map({"n", "v"}, "<C-a>", "<esc>ggVG", "Select all")
|
||||
|
||||
-- Editing multiple instances
|
||||
map("n", "<f3>", "*#", "Search word under cursor")
|
||||
map("n", "<f3>", "#*", "Search word under cursor")
|
||||
map("v", "<f3>", "y/<C-r>\"<cr>N", "Search selection")
|
||||
map("n", "<C-d>", "viw", "Select word under cursor")
|
||||
map("v", "<C-d>", "y/<C-r>\"<cr>N", "Search selection")
|
||||
-- map("n", "<C-d>", "viw", "Select word under cursor")
|
||||
-- map("v", "<C-d>", "y/<C-r>\"<cr>N", "Search selection")
|
||||
map("n", "<C-r>", "*#:%s//<C-r><C-w>/g<left><left>", "Replace word under cursor")
|
||||
map("v", "<C-r>", "y/<C-r>\"<cr>N:%s//<C-r>\"/g<left><left>", "Replace selection")
|
||||
|
||||
@ -71,3 +71,9 @@ map("i", "<S-Up>", "<Esc>v<Up>")
|
||||
map("i", "<S-Down>", "<Esc>v<Down>")
|
||||
map("i", "<S-Left>", "<Esc>v<Left>")
|
||||
map("i", "<S-Right>", "<Esc>v<Right>")
|
||||
|
||||
-- Window switching
|
||||
map("n", "<A-Up>", "<C-w>k", "Move to the window above")
|
||||
map("n", "<A-Down>", "<C-w>j", "Move to the window below")
|
||||
map("n", "<A-Left>", "<C-w>h", "Move to the window on the left")
|
||||
map("n", "<A-Right>", "<C-w>l", "Move to the window on the right")
|
||||
|
@ -1,5 +1,5 @@
|
||||
return {
|
||||
"windwp/nvim-autopairs",
|
||||
event = "InsertEnter",
|
||||
config = true
|
||||
config = true,
|
||||
}
|
||||
|
14
.config/nvim/lua/plugins/multicursor.lua
Normal file
14
.config/nvim/lua/plugins/multicursor.lua
Normal file
@ -0,0 +1,14 @@
|
||||
return {
|
||||
"mg979/vim-visual-multi",
|
||||
keys = {
|
||||
{ "<C-d>", mode = { "n", "x" }, desc = "Multicursor (word)" },
|
||||
{ "<C-Up>", mode = { "n", "x" }, desc = "Multicursor (next line)" },
|
||||
{ "<C-Down>", mode = { "n", "x" }, desc = "Multicursor (previous line)" },
|
||||
},
|
||||
init = function()
|
||||
vim.g.VM_maps = {
|
||||
["Find Under"] = "<C-d>",
|
||||
["Find Subword Under"] = "<C-d>",
|
||||
}
|
||||
end,
|
||||
}
|
@ -3,6 +3,8 @@ return {
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
background_colour = "#000000",
|
||||
fps = 60,
|
||||
render = "compact",
|
||||
timeout = 0,
|
||||
},
|
||||
config = true,
|
||||
|
@ -14,6 +14,7 @@
|
||||
"editor.scrollbar.verticalScrollbarSize": 0,
|
||||
"editor.scrollBeyondLastLine": false,
|
||||
"editor.showFoldingControls": "never",
|
||||
"editor.stickyScroll.enabled": false,
|
||||
"explorer.compactFolders": false,
|
||||
"explorer.confirmDelete": false,
|
||||
"explorer.openEditors.visible": 1,
|
||||
@ -44,4 +45,5 @@
|
||||
"workbench.layoutControl.enabled": false,
|
||||
"workbench.startupEditor": "none",
|
||||
"workbench.statusBar.visible": false,
|
||||
"workbench.tree.enableStickyScroll": false,
|
||||
}
|
||||
|
@ -6,6 +6,7 @@
|
||||
],
|
||||
"modules-center": [],
|
||||
"modules-right": [
|
||||
"group/hardware",
|
||||
"custom/updates",
|
||||
"wireplumber",
|
||||
"clock",
|
||||
|
@ -42,7 +42,7 @@
|
||||
margin: 4px;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
/*#cpu {
|
||||
background: rgb(50.15%, 92.07%, 99.48%);
|
||||
}
|
||||
|
||||
@ -60,11 +60,7 @@
|
||||
|
||||
#network {
|
||||
background: rgb(92.54%, 81.78%, 100%);
|
||||
}
|
||||
|
||||
#wireplumber {
|
||||
/* background: rgb(90.34%, 85.77%, 59.65%); */
|
||||
}
|
||||
}*/
|
||||
|
||||
#custom-updates.disabled {
|
||||
opacity: 0;
|
||||
|
Loading…
Reference in New Issue
Block a user