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 lu "ls -l --total-size --sort=size --reverse --no-permissions --no-user --no-time"
|
||||||
alias lp "ls -l --no-filesize --no-time"
|
alias lp "ls -l --no-filesize --no-time"
|
||||||
|
|
||||||
|
# Lsof
|
||||||
|
alias tcp "lsof -PniTCP"
|
||||||
|
alias udp "lsof -PniUDP"
|
||||||
|
|
||||||
# Neovim
|
# Neovim
|
||||||
alias e "nvim"
|
alias e "nvim"
|
||||||
alias n "nvim"
|
alias n "nvim"
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
exec-once = dunst
|
exec-once = dunst
|
||||||
exec-once = waypaper --restore
|
exec-once = waypaper --restore
|
||||||
exec-once = wl-paste --watch cliphist store
|
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
|
accel_profile = flat
|
||||||
}
|
}
|
||||||
|
|
||||||
|
debug {
|
||||||
|
overlay = false
|
||||||
|
}
|
||||||
|
|
||||||
decoration {
|
decoration {
|
||||||
rounding = 6
|
rounding = 6
|
||||||
|
|
||||||
|
@ -1,31 +1,32 @@
|
|||||||
$leader = SUPER
|
$main = SUPER
|
||||||
$movews = CTRL ALT
|
|
||||||
|
|
||||||
# Apps
|
# Apps
|
||||||
bind = $leader, T, exec, $terminal
|
bind = $main, B, exec, $browser
|
||||||
bind = $leader, B, exec, $browser
|
bind = $main, D, exec, $editor
|
||||||
bind = $leader, E, exec, $files
|
bind = $main, E, exec, $files
|
||||||
bind = $leader, D, exec, $terminal -e $editor
|
bind = $main, L, exec, $lockscreen
|
||||||
bind = $leader, L, exec, $lockscreen
|
bind = $main, T, exec, $terminal
|
||||||
bind = $leader, Space, exec, $menu
|
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
|
bind = , Print, exec, $screenshot
|
||||||
|
|
||||||
# Session management
|
|
||||||
bind = $leader, Backspace, exit,
|
|
||||||
bind = $leader, F12, exec, $logout
|
|
||||||
|
|
||||||
# Window management
|
# Window management
|
||||||
bind = $leader, C, killactive,
|
bind = $main, C, killactive,
|
||||||
bind = $leader, F, fullscreen,
|
bind = $main, F, fullscreen,
|
||||||
bind = $leader, V, togglefloating,
|
bind = $main, V, togglefloating,
|
||||||
bind = $leader, P, pseudo,
|
bind = $main, P, pseudo,
|
||||||
bind = $leader, J, togglesplit,
|
bind = $main, J, togglesplit,
|
||||||
|
|
||||||
# Move focus with leader + arrow keys
|
# Session management
|
||||||
bind = $leader, left, movefocus, l
|
bind = $main, Backspace, exit,
|
||||||
bind = $leader, right, movefocus, r
|
bind = $main, F12, exec, $logout
|
||||||
bind = $leader, up, movefocus, u
|
|
||||||
bind = $leader, down, movefocus, d
|
# 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
|
# Switch workspaces with numpad
|
||||||
bind =, KP_Home, workspace, 1
|
bind =, KP_Home, workspace, 1
|
||||||
@ -38,35 +39,35 @@ bind =, KP_End, workspace, 7
|
|||||||
bind =, KP_Down, workspace, 8
|
bind =, KP_Down, workspace, 8
|
||||||
bind =, KP_Next, workspace, 9
|
bind =, KP_Next, workspace, 9
|
||||||
|
|
||||||
# Move active window to an adjacent workspace
|
# Move window to a specific workspace
|
||||||
bind = $movews, right, movetoworkspace, +1
|
bind = $main, 1, movetoworkspace, 1
|
||||||
bind = $movews, left, 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
|
# Move window to an adjacent workspace
|
||||||
bind = $movews, 1, movetoworkspace, 1
|
bind = $main ALT, right, movetoworkspace, +1
|
||||||
bind = $movews, 2, movetoworkspace, 2
|
bind = $main ALT, left, movetoworkspace, -1
|
||||||
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
|
|
||||||
|
|
||||||
# Example special workspace (scratchpad)
|
# Special workspace (scratchpad)
|
||||||
bind = $leader, S, togglespecialworkspace, magic
|
bind = $main, Z, togglespecialworkspace, magic
|
||||||
bind = $leader SHIFT, S, movetoworkspace, special:magic
|
bind = $main SHIFT, Z, movetoworkspace, special:magic
|
||||||
|
|
||||||
# Move/resize windows with leader + LMB/RMB and dragging
|
# Move and resize windows (main + LMB/RMB and drag)
|
||||||
bindm = $leader, mouse:272, movewindow
|
bindm = $main, mouse:272, movewindow
|
||||||
bindm = $leader, mouse:273, resizewindow
|
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
|
# Volume control
|
||||||
bindle =, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+
|
bindle =, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.05+
|
||||||
bindle =, XF86AudioLowerVolume, 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
|
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
|
$browser = firefox
|
||||||
$editor = nvim
|
$email = evolution
|
||||||
$email = geary
|
|
||||||
$files = nautilus
|
$files = nautilus
|
||||||
$logout = wlogout
|
$logout = wlogout
|
||||||
$lockscreen = swaylock
|
$lockscreen = swaylock
|
||||||
$menu = pkill fuzzel || fuzzel
|
$menu = pkill fuzzel || fuzzel
|
||||||
$screenshot = IMG=~/pictures/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png && grim -g "$(slurp -d)" $IMG && wl-copy < $IMG
|
$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
|
$terminal = alacritty
|
||||||
|
$editor = $terminal -e nvim
|
||||||
|
@ -2,19 +2,20 @@
|
|||||||
"Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" },
|
"Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" },
|
||||||
"flash.nvim": { "branch": "main", "commit": "48817af25f51c0590653bbc290866e4890fe1cbe" },
|
"flash.nvim": { "branch": "main", "commit": "48817af25f51c0590653bbc290866e4890fe1cbe" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "2c2463dbd82eddd7dbab881c3a62cfbfbe3c67ae" },
|
"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.completion": { "branch": "main", "commit": "0cf6c4e257b5e8189ac6b3ffa2064a319c4eb8a8" },
|
||||||
"mini.surround": { "branch": "main", "commit": "a1b590cc3b676512de507328d6bbab5e43794720" },
|
"mini.surround": { "branch": "main", "commit": "a1b590cc3b676512de507328d6bbab5e43794720" },
|
||||||
"monokai.nvim": { "branch": "master", "commit": "b8bd44d5796503173627d7a1fc51f77ec3a08a63" },
|
"monokai.nvim": { "branch": "master", "commit": "b8bd44d5796503173627d7a1fc51f77ec3a08a63" },
|
||||||
"noice.nvim": { "branch": "main", "commit": "bf67d70bd7265d075191e7812d8eb42b9791f737" },
|
"noice.nvim": { "branch": "main", "commit": "bf67d70bd7265d075191e7812d8eb42b9791f737" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "756c59f46057cd2d43619cd3a6d4e01b2aa60295" },
|
"nui.nvim": { "branch": "main", "commit": "756c59f46057cd2d43619cd3a6d4e01b2aa60295" },
|
||||||
"nvim-autopairs": { "branch": "master", "commit": "c6139ca0d5ad7af129ea6c89cb4c56093f2c034a" },
|
"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-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" },
|
||||||
"nvim-tree.lua": { "branch": "master", "commit": "efafd73efa9bc8c26282aed563ba0f01c7465b06" },
|
"nvim-tree.lua": { "branch": "master", "commit": "041dbd18f440207ad161503a384e7c82d575db66" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "9775d5d7c724f81acdd441e7e9edefc4514e990b" },
|
"nvim-treesitter": { "branch": "master", "commit": "7ff51f53b0efb6228df2e8539b51bb2e737b77f3" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "4adea17610d140a99c313e3f79a9dc01825d59ae" },
|
"nvim-web-devicons": { "branch": "master", "commit": "75df79feb02d5e0ec114e447453775d4d291ea03" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" },
|
"plenary.nvim": { "branch": "master", "commit": "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" },
|
||||||
"telescope-project.nvim": { "branch": "master", "commit": "1aaf16580a614601a7f7077d9639aeb457dc5559" },
|
"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")
|
map({"n", "v"}, "<leader>q", "<cmd>qa!<cr>", "Quit all")
|
||||||
|
|
||||||
-- Buffer management
|
-- 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({ "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
|
-- Copy and paste
|
||||||
map("v", "<C-c>", "y")
|
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")
|
map({"n", "v"}, "<C-a>", "<esc>ggVG", "Select all")
|
||||||
|
|
||||||
-- Editing multiple instances
|
-- 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("v", "<f3>", "y/<C-r>\"<cr>N", "Search selection")
|
||||||
map("n", "<C-d>", "viw", "Select word under cursor")
|
-- map("n", "<C-d>", "viw", "Select word under cursor")
|
||||||
map("v", "<C-d>", "y/<C-r>\"<cr>N", "Search selection")
|
-- 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("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")
|
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-Down>", "<Esc>v<Down>")
|
||||||
map("i", "<S-Left>", "<Esc>v<Left>")
|
map("i", "<S-Left>", "<Esc>v<Left>")
|
||||||
map("i", "<S-Right>", "<Esc>v<Right>")
|
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 {
|
return {
|
||||||
"windwp/nvim-autopairs",
|
"windwp/nvim-autopairs",
|
||||||
event = "InsertEnter",
|
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",
|
event = "VeryLazy",
|
||||||
opts = {
|
opts = {
|
||||||
background_colour = "#000000",
|
background_colour = "#000000",
|
||||||
|
fps = 60,
|
||||||
|
render = "compact",
|
||||||
timeout = 0,
|
timeout = 0,
|
||||||
},
|
},
|
||||||
config = true,
|
config = true,
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
"editor.scrollbar.verticalScrollbarSize": 0,
|
"editor.scrollbar.verticalScrollbarSize": 0,
|
||||||
"editor.scrollBeyondLastLine": false,
|
"editor.scrollBeyondLastLine": false,
|
||||||
"editor.showFoldingControls": "never",
|
"editor.showFoldingControls": "never",
|
||||||
|
"editor.stickyScroll.enabled": false,
|
||||||
"explorer.compactFolders": false,
|
"explorer.compactFolders": false,
|
||||||
"explorer.confirmDelete": false,
|
"explorer.confirmDelete": false,
|
||||||
"explorer.openEditors.visible": 1,
|
"explorer.openEditors.visible": 1,
|
||||||
@ -44,4 +45,5 @@
|
|||||||
"workbench.layoutControl.enabled": false,
|
"workbench.layoutControl.enabled": false,
|
||||||
"workbench.startupEditor": "none",
|
"workbench.startupEditor": "none",
|
||||||
"workbench.statusBar.visible": false,
|
"workbench.statusBar.visible": false,
|
||||||
|
"workbench.tree.enableStickyScroll": false,
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
],
|
],
|
||||||
"modules-center": [],
|
"modules-center": [],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
|
"group/hardware",
|
||||||
"custom/updates",
|
"custom/updates",
|
||||||
"wireplumber",
|
"wireplumber",
|
||||||
"clock",
|
"clock",
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
margin: 4px;
|
margin: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#cpu {
|
/*#cpu {
|
||||||
background: rgb(50.15%, 92.07%, 99.48%);
|
background: rgb(50.15%, 92.07%, 99.48%);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,11 +60,7 @@
|
|||||||
|
|
||||||
#network {
|
#network {
|
||||||
background: rgb(92.54%, 81.78%, 100%);
|
background: rgb(92.54%, 81.78%, 100%);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
#wireplumber {
|
|
||||||
/* background: rgb(90.34%, 85.77%, 59.65%); */
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-updates.disabled {
|
#custom-updates.disabled {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user