This commit is contained in:
2025-06-26 21:40:43 +03:00
parent d259a6fd55
commit 3a8f55211f
10 changed files with 114 additions and 29 deletions

View File

@ -31,7 +31,7 @@ set -gx SCREENRECORD_DIR $XDG_VIDEOS_DIR/screen
# Find an editor # Find an editor
for e in nvim vim vi helix nano for e in helix nvim vim vi nano
type -q $e; or continue type -q $e; or continue
set -gx EDITOR $e set -gx EDITOR $e
break break

46
.config/helix/config.toml Normal file
View File

@ -0,0 +1,46 @@
theme = "ao"
[editor]
# no you don't
mouse = false
middle-click-paste = false
scroll-lines = 0
shell = ["fish", "-c"]
line-number = "relative"
cursorline = true
continue-comments = false # annoying
gutters = ["diagnostics", "line-numbers", "diff"]
auto-completion = true # TODO: is it annoying?
completion-replace = true
auto-format = true
auto-info = true # TODO: idle-timeout?
# true-color = true
rulers = [80, 100]
bufferline = "multiple" # never, always, multiple
color-modes = true # mode indicator color
insert-final-newline = true # POSIX compatibility
popup-border = "none" # popup, menu, all, none
jump-label-alphabet = "tneiouykhsrafwvd"
end-of-line-diagnostics = "disable" # TODO: check `inline-diagnostics`
# file-picker.hidden = true
cursor-shape.insert = "underline"
[editor.statusline.mode]
normal = "N"
insert = "I"
select = "S"
[keys.normal]
# "<space>=" = ":format"
D = [ "extend_to_line_end", "delete_selection" ]
# previous/next buffer
L = "goto_next_buffer"
H = "goto_previous_buffer"
# move/copy line below/above
"A-j" = [ "extend_to_line_bounds", "delete_selection", "paste_after" ]
"A-k" = [ "extend_to_line_bounds", "delete_selection", "move_line_up", "paste_before" ]
"A-J" = [ "extend_to_line_bounds", "yank", "paste_after" ]
"A-K" = [ "extend_to_line_bounds", "yank", "paste_before" ]

View File

@ -0,0 +1,23 @@
[language-server.taplo]
config = {} # https://github.com/helix-editor/helix/issues/3897
[language-server.rust-analyzer]
checkOnSave = true
cargo = { allFeatures = true, loadOutDirsFromCheck = true, runBuildScripts = true }
check.command = "clippy"
check.extraArgs = [ "--",
"--no-deps",
"-Wclippy::correctness",
"-Wclippy::complexity",
"-Wclippy::suspicious",
"-Wclippy::style",
"-Wclippy::perf",
"-Wclippy::pedantic",
"-Wclippy::nursery",
"-Wclippy::cargo",
"-Aclippy::restriction",
"-Aclippy::must_use_candidate",
]
procMacro.enable = true

View File

@ -61,6 +61,9 @@ binde = CTRL, F2, exec, playerctl volume 0.05+
binde = $mod CTRL, F2, exec, playerctl volume 0.01+ binde = $mod CTRL, F2, exec, playerctl volume 0.01+
bind = $mod, F3, exec, playerctl play-pause bind = $mod, F3, exec, playerctl play-pause
bind = SHIFT, F3, exec, playerctl -a play-pause bind = SHIFT, F3, exec, playerctl -a play-pause
# bind = $mod, F4, pass, class:^(com\.obsproject\.Studio)$
bind = $mod, F4, sendshortcut, , F4, class:^(com\.obsproject\.Studio)$
bind = $mod SHIFT, F4, sendshortcut, SHIFT, F4, class:^(com\.obsproject\.Studio)$
# toggles # toggles
bindl = $mod, F5, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 1 bindl = $mod, F5, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 1
bind = SHIFT, F5, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 0 bind = SHIFT, F5, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 0
@ -93,8 +96,9 @@ binde = SHIFT, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUD
binde = SHIFT, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%- binde = SHIFT, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-
bindl =, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 1 bindl =, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 1
bind = SHIFT, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 0 bind = SHIFT, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ 0
bindl =, XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ 1 ; killall waybar -s 35 # bindl =, XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ 1 ; killall waybar -s 35
bind = SHIFT, XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ 0 ; killall waybar -s 35 # bind = SHIFT, XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ 0 ; killall waybar -s 35
bind =, XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle ; killall waybar -s 35
bind =, XF86AudioPlay, exec, playerctl play-pause bind =, XF86AudioPlay, exec, playerctl play-pause
bind =, XF86AudioPrev, exec, playerctl previous bind =, XF86AudioPrev, exec, playerctl previous
bind =, XF86AudioNext, exec, playerctl next bind =, XF86AudioNext, exec, playerctl next
@ -139,7 +143,7 @@ bind = SHIFT, F, exec, firefox
bind = SHIFT, F, submap, reset bind = SHIFT, F, submap, reset
bind = CTRL, F, exec, torbrowser-launcher bind = CTRL, F, exec, torbrowser-launcher
bind = CTRL, F, submap, reset bind = CTRL, F, submap, reset
bind =, T, exec, killall telegram-desktop || telegram-desktop bind =, T, exec, killall Telegram || Telegram
bind =, T, submap, reset bind =, T, submap, reset
bind =, S, exec, killall signal-desktop || signal-desktop bind =, S, exec, killall signal-desktop || signal-desktop
bind =, S, submap, reset bind =, S, submap, reset
@ -153,15 +157,15 @@ bind =, Y, exec, kitty yazi
bind =, Y, submap, reset bind =, Y, submap, reset
bind =, L, exec, logseq bind =, L, exec, logseq
bind =, L, submap, reset bind =, L, submap, reset
bind =, O, exec, QT_SCALE_FACTOR=1.5 obs bind =, O, exec, QT_SCALE_FACTOR=1.25 obs
bind =, O, submap, reset bind =, O, submap, reset
bind =, K, exec, klavaro bind =, K, exec, klavaro
bind =, K, submap, reset bind =, K, submap, reset
bind = SHIFT, S, exec, mysql-workbench bind = SHIFT, S, exec, gamemoderun steam-native
bind = SHIFT, S, submap, reset bind = SHIFT, S, submap, reset
bind =, D, exec, discord --enable-features=UseOzonePlatform --ozone-platform=wayland bind =, D, exec, discord --enable-features=UseOzonePlatform --ozone-platform=wayland
bind =, D, submap, reset bind =, D, submap, reset
bind = SHIFT, V, exec, virtualboxvm --startvm Ghost11 bind = SHIFT, V, exec, QT_SCALE_FACTOR=1.5 virtualbox
bind = SHIFT, V, submap, reset bind = SHIFT, V, submap, reset
bind =, V, exec, bitwarden-desktop bind =, V, exec, bitwarden-desktop
bind =, V, submap, reset bind =, V, submap, reset
@ -298,17 +302,17 @@ bindle =, J, exec, brightnessctl s 5%+
binde = CTRL, J, exec, brightnessctl s 1%+ binde = CTRL, J, exec, brightnessctl s 1%+
binde = SHIFT, J, exec, brightnessctl s 15%+ binde = SHIFT, J, exec, brightnessctl s 15%+
bind =, R, exec, wl-screenrec --codec hevc -b '1 MB' --audio --audio-device $(pactl list short sinks | grep $(pactl get-default-sink) | head -c2) -f $SCREENRECORD_DIR/$(date +'%-d.%m.%y-%H:%M:%S').mkv # bind =, R, exec, wl-screenrec --codec hevc -b '1 MB' --audio --audio-device $(pactl list short sinks | grep $(pactl get-default-sink) | head -c2) -f $SCREENRECORD_DIR/$(date +'%-d.%m.%y-%H:%M:%S').mkv
bind =, R, exec, sleep 0.5; killall waybar -s 36 # bind =, R, exec, sleep 0.5; killall waybar -s 36
bind =, R, submap, reset # bind =, R, submap, reset
bind = SHIFT, R, exec, wl-screenrec --codec hevc -b '1 MB' --audio -f $SCREENRECORD_DIR/$(date +'%-d.%m.%y-%H:%M:%S').mkv # bind = SHIFT, R, exec, wl-screenrec --codec hevc -b '1 MB' --audio -f $SCREENRECORD_DIR/$(date +'%-d.%m.%y-%H:%M:%S').mkv
bind = SHIFT, R, exec, sleep 0.5; killall waybar -s 36 # bind = SHIFT, R, exec, sleep 0.5; killall waybar -s 36
bind = SHIFT, R, submap, reset # bind = SHIFT, R, submap, reset
bind = CTRL, R, exec, wl-screenrec --codec hevc -b '0.5 MB' -g "$($slurp_cmd ff00ff)" -f $SCREENRECORD_DIR/$(date +'%-d.%m.%y-%H:%M:%S').mkv # bind = CTRL, R, exec, wl-screenrec --codec hevc -b '0.5 MB' -g "$($slurp_cmd ff00ff)" -f $SCREENRECORD_DIR/$(date +'%-d.%m.%y-%H:%M:%S').mkv
bind = CTRL, R, exec, sleep 0.5; killall waybar -s 36 # bind = CTRL, R, exec, sleep 0.5; killall waybar -s 36
bind = CTRL, R, submap, reset # bind = CTRL, R, submap, reset
bind = $mod, R, exec, killall -INT wl-screenrec ; sleep 1; killall waybar -s 36 # bind = $mod, R, exec, killall -INT wl-screenrec ; sleep 1; killall waybar -s 36
bind = $mod, R, submap, reset # bind = $mod, R, submap, reset
bindl = $mod, M, submap, reset bindl = $mod, M, submap, reset
bindl = $mod, grave, submap, reset bindl = $mod, grave, submap, reset

View File

@ -268,6 +268,7 @@ clear_all_shortcuts yes
# kitten_alias # kitten_alias
# Miscellaneous {{{ # Miscellaneous {{{
map ctrl+[ send_text all 
map shift+space send_text all \033[32;2u map shift+space send_text all \033[32;2u
map kitty_mod+v paste_from_clipboard map kitty_mod+v paste_from_clipboard

View File

@ -0,0 +1,7 @@
return {
settings = {
["nil"] = {
formatting = { command = { "alejandra" } }
}
}
}

View File

@ -1,21 +1,21 @@
{ {
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
"LuaSnip": { "branch": "master", "commit": "c1851d5c519611dfc451b6582961b2602e0af89b" }, "LuaSnip": { "branch": "master", "commit": "fb525166ccc30296fb3457441eb979113de46b00" },
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" }, "cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
"cmp-nvim-lsp": { "branch": "main", "commit": "a8912b88ce488f411177fc8aed358b04dc246d7b" }, "cmp-nvim-lsp": { "branch": "main", "commit": "a8912b88ce488f411177fc8aed358b04dc246d7b" },
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" }, "cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
"cyberdream.nvim": { "branch": "main", "commit": "8407e80415aebd6b052773d751dda7cd9cfc6835" }, "cyberdream.nvim": { "branch": "main", "commit": "f660ebfd8840e226d2a5368e08108a7aa84fef36" },
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" }, "friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
"gitsigns.nvim": { "branch": "main", "commit": "39e0d1cd44eafed5f30c372e377ab1cb1781ec9f" }, "gitsigns.nvim": { "branch": "main", "commit": "1b0350ab707713b2bc6c236151f1a324175347b1" },
"harpoon": { "branch": "harpoon2", "commit": "ed1f853847ffd04b2b61c314865665e1dadf22c7" }, "harpoon": { "branch": "harpoon2", "commit": "ed1f853847ffd04b2b61c314865665e1dadf22c7" },
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "d39a75bbce4b8aad5d627191ea915179c77c100f" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "c4c84f4521d62de595c0d0f718a9a40c1890c8ce" },
"mason.nvim": { "branch": "main", "commit": "888d6ee499d8089a3a4be4309d239d6be1c1e6c0" }, "mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" },
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" }, "nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
"nvim-lspconfig": { "branch": "master", "commit": "ac1dfbe3b60e5e23a2cff90e3bd6a3bc88031a57" }, "nvim-lspconfig": { "branch": "master", "commit": "69a1624aff5dc30dddd0c59d99a947b63c80bf2a" },
"nvim-treesitter": { "branch": "master", "commit": "066fd6505377e3fd4aa219e61ce94c2b8bdb0b79" }, "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
"nvim-treesitter-textobjects": { "branch": "master", "commit": "b0debd5c424969b4baeabdc8f54db3036c691732" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "89ebe73cd2836db80a22d9748999ace0241917a5" },
"nvim-web-devicons": { "branch": "master", "commit": "1fb58cca9aebbc4fd32b086cb413548ce132c127" }, "nvim-web-devicons": { "branch": "master", "commit": "19d6211c78169e78bab372b585b6fb17ad974e82" },
"onedark.nvim": { "branch": "master", "commit": "11de4da47f3e69cb70c3ae9816bd8af166cbe121" }, "onedark.nvim": { "branch": "master", "commit": "11de4da47f3e69cb70c3ae9816bd8af166cbe121" },
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" }, "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },

View File

@ -1,6 +1,6 @@
"$schema" = "https://yazi-rs.github.io/schemas/keymap.json" "$schema" = "https://yazi-rs.github.io/schemas/keymap.json"
[manager] [mgr]
prepend_keymap = [ prepend_keymap = [
{ on = "<C-y>", run = "plugin wl-clipboard", desc = "Yank to clipboard" }, { on = "<C-y>", run = "plugin wl-clipboard", desc = "Yank to clipboard" },
{ on = "R", run = "rename --empty=stem --cursor=start", desc = "Rename file full" }, { on = "R", run = "rename --empty=stem --cursor=start", desc = "Rename file full" },

View File

@ -1,6 +1,6 @@
"$schema" = "https://yazi-rs.github.io/schemas/yazi.json" "$schema" = "https://yazi-rs.github.io/schemas/yazi.json"
[manager] [mgr]
ratio = [0, 2, 3] # prev, current, next / preview ratio = [0, 2, 3] # prev, current, next / preview
sort_by = "natural" # 1.md < 2.md < 10.md sort_by = "natural" # 1.md < 2.md < 10.md
# sort_translit = false # replaces  as A, Æ as AE, etc. # sort_translit = false # replaces  as A, Æ as AE, etc.

4
.gitignore vendored
View File

@ -31,6 +31,10 @@
.config/git/* .config/git/*
!.config/git/config !.config/git/config
!.config/helix/
.config/helix/*
!.config/helix/*.toml
!.config/nvim/ !.config/nvim/
.config/nvim/* .config/nvim/*
!.config/nvim/lua/ !.config/nvim/lua/