This commit is contained in:
2025-10-09 11:23:52 +03:00
parent 964db24d10
commit 81b0bd4851
13 changed files with 80 additions and 41 deletions
-2
View File
@@ -9,13 +9,11 @@ abbr t trash put
abbr mm -- mpv --shuffle \$XDG_MUSIC_DIR
abbr l lazygit
abbr g git
# abbr dots -- git --git-dir \~/.dotfiles/ --work-tree \~
abbr gl git log
abbr ga git add
abbr gc git commit
abbr gs git status
abbr gcl git clone
abbr gco git checkout
function __last_hist_item
View File
+1 -4
View File
@@ -1,7 +1,4 @@
function music --wraps 'yt-dlp -x --embed-thumbnail --embed-chapters' --description 'Download music with yt-dlp'
test -d $argv[-1]; or set -a argv "$XDG_MUSIC_DIR"
echo "Downloading into $argv[-1]"
command yt-dlp --extract-audio --embed-thumbnail --embed-chapters \
--output "$argv[-1]/%(title)s.%(ext)s" $argv[..-2]
--output "$XDG_MUSIC_DIR/%(title)s.%(ext)s" $argv
end
+1 -1
View File
@@ -3,7 +3,7 @@
[diff]
tool = nvimdiff
[core]
editor = nvim
editor = helix
; repositoryformatversion = 1
; [extensions]
; objectformat = sha256
+10 -12
View File
@@ -8,11 +8,11 @@ theme = "custom" # monokai_soda, kaolin-valley-dark, material_deep_ocean, carbon
shell = ["fish", "-c"]
line-number = "relative"
cursorline = true
continue-comments = false # annoying
auto-completion = true # TODO: is it annoying?
completion-replace = true # why is it not default
continue-comments = true # doc comments
auto-completion = true
completion-replace = false # STOP deleting stuff
auto-format = true
auto-info = true # TODO: idle-timeout?
auto-info = true # TODO: idle-timeout?
# true-color = true
# undercurl = true
rulers = [80, 100]
@@ -107,7 +107,7 @@ C-backspace = "delete_word_backward"
[keys.select]
";" = ["collapse_selection", "normal_mode"]
a = ["collapse_selection", "append_mode"]
# a = ["collapse_selection", "append_mode"]
x = "extend_line"
V = ["extend_to_line_bounds", "trim_selections"]
@@ -135,7 +135,7 @@ C-l = "jump_view_right"
[keys.normal]
"=" = ":format"
"A-=" = "format_selections"
a = ["collapse_selection", "append_mode"]
# a = ["collapse_selection", "append_mode"]
x = "extend_line"
V = ["extend_to_line_bounds", "trim_selections"]
@@ -182,22 +182,20 @@ n = "file_picker_in_current_buffer_directory"
# Toggle
[keys.normal.space.t]
f = ":toggle auto-format"
c = ":toggle cursorline"
w = ":toggle soft-wrap.enable"
n = ":toggle line-number absolute relative"
b = ":toggle bufferline never multiple"
r = ":set-option rulers []"
R = ":set-option rulers [80,100]"
r = ":toggle rulers [] [80,100]"
g = ":toggle indent-guides.render"
i = ":toggle lsp.display-inlay-hints"
e = ":toggle end-of-line-diagnostics disable hint"
d = ":toggle inline-diagnostics.cursor-line disable warning"
D = ":toggle inline-diagnostics.other-lines disable error"
# z = [ # TODO: not work
# t = [":toggle cursorline", ":toggle line-number absolute relative"]
# https://github.com/helix-editor/helix/issues/13187
# t = [ # TODO: not work
# ":set-option cursorline true",
# ":set-option rulers [100]",
# ":set-option soft-wrap.enable false",
+32
View File
@@ -18,6 +18,38 @@ auto-format = false
name = "toml"
auto-format = true
[[language]]
name = "sql"
auto-format = true
formatter = { command = "sqlformat", args = [
"--keywords",
"upper", # "upper", "lower", "capitalize"
"--identifiers",
"lower",
"--reindent",
"--indent_width",
"2",
# "--compact", "True",
"-",
] }
[[language]]
name = "rust"
[language.debugger]
name = "lldb-dap"
transport = "stdio"
command = "lldb-dap"
[[language.debugger.templates]]
name = "binary"
request = "launch"
completion = [{ name = "binary", completion = "filename" }]
args = { program = "{0}", initCommands = [
"command script import /usr/local/etc/lldb_vscode_rustc_primer.py",
] }
# TODO: still aligns
[language-server.taplo.config]
+2 -2
View File
@@ -40,14 +40,14 @@ column_meter_modes_0=1 1
column_meters_1=DateTime Uptime LoadAverage Tasks Battery DiskIO NetworkIO Memory Swap
column_meter_modes_1=2 2 2 2 2 2 2 1 1
tree_view=0
sort_key=47
sort_key=46
tree_sort_key=0
sort_direction=-1
tree_sort_direction=-1
tree_view_always_by_pid=0
all_branches_collapsed=0
screen:Main=PID USER PRIORITY NICE M_VIRT M_SHARE M_RESIDENT STATE NLWP PROCESSOR PERCENT_CPU PERCENT_MEM TIME Command
.sort_key=PERCENT_MEM
.sort_key=PERCENT_CPU
.tree_sort_key=PID
.tree_view_always_by_pid=0
.tree_view=0
+10 -8
View File
@@ -149,25 +149,29 @@ bind = SHIFT, T, exec, killall Telegram
bind = SHIFT, T, submap, reset
bind =, S, exec, killall signal-desktop || signal-desktop
bind =, S, submap, reset
bind =, M, exec, QT_SCALE_FACTOR=1.25 fjordlauncher
bind =, M, submap, reset
bind =, E, exec, element-desktop
# bind =, M, exec, nheko
# bind =, M, submap, reset
bind =, E, exec, kitty helix
bind =, E, submap, reset
#bind =, N, exec, nemo
bind =, N, exec, nheko
bind =, N, submap, reset
bind =, Y, exec, kitty yazi
bind =, Y, submap, reset
bind =, L, exec, logseq
bind =, L, submap, reset
bind =, O, exec, QT_SCALE_FACTOR=1.25 obs
bind =, O, exec, obsidian --force-device-scale-factor=2
bind =, O, submap, reset
bind = SHIFT, O, exec, QT_SCALE_FACTOR=1.25 obs
bind = SHIFT, O, submap, reset
bind =, K, exec, klavaro
bind =, K, submap, reset
bind = SHIFT, S, exec, gamemoderun steam-native
bind = SHIFT, S, submap, reset
# bind =, D, exec, discord --enable-features=UseOzonePlatform --ozone-platform=wayland
bind =, D, exec, drawio
bind =, D, exec, vesktop # drawio
bind =, D, submap, reset
bind = SHIFT, D, exec, drawing
bind = SHIFT, D, submap, reset
bind = SHIFT, V, exec, QT_SCALE_FACTOR=1.5 virtualbox
bind = SHIFT, V, submap, reset
bind =, V, exec, bitwarden-desktop
@@ -176,8 +180,6 @@ bind = SHIFT, B, exec, flatpak run com.usebottles.bottles
bind = SHIFT, B, submap, reset
bind =, Q, exec, qbittorrent
bind =, Q, submap, reset
bind = SHIFT, D, exec, drawing
bind = SHIFT, D, submap, reset
bind =, A, exec, anki
bind =, A, submap, reset
# utilities
+3
View File
@@ -28,7 +28,10 @@ windowrule = rounding 0, floating:0, onworkspace:f[1]
# windowrule = float, class:^(LibreWolf)$
# layerrule = noscreenshare, notifications
windowrule = noscreenshare, class:^(Bitwarden)$
windowrule = noscreenshare, class:^(nheko)$
# windowrule = noscreenshare, class:^(vesktop)$
windowrule = noscreenshare, class:^(org.telegram.desktop)$
windowrule = float, class:^(Bitwarden)$
+3 -3
View File
@@ -166,8 +166,8 @@ device {
kb_options = altwin:swap_lalt_lwin, grp:win_space_toggle, grp_led:caps, shift:both_capslock_cancel
} # }}}
gestures { # {{{
workspace_swipe = false
# gestures { # {{{
# workspace_swipe = false
#workspace_swipe_fingers = 3
#workspace_swipe_distance = 150
#workspace_swipe_invert = true
@@ -177,7 +177,7 @@ gestures { # {{{
#workspace_swipe_forever = false
#workspace_swipe_numbered = false
#workspace_swipe_use_r = false
} # }}}
# } # }}}
misc { # {{{
disable_hyprland_logo = true
@@ -0,0 +1,11 @@
pulse.rules = [
{
# prevent all sources matching "Chromium" from messing with the volume
matches = [ { application.name = "~Chromium.*" } ]
actions = { quirks = [ block-source-volume ] }
}
{
matches = [ { application.process.binary = "Discord" } ]
actions = { quirks = [ block-source-volume ] }
}
]
+1 -4
View File
@@ -3,10 +3,7 @@
[mgr]
prepend_keymap = [
# { on = "<C-y>", run = "plugin wl-clipboard", desc = "Yank to clipboard" },
{ on = "<C-y>", run = [
'shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list',
"yank",
] },
{ on = "<C-y>", run = 'shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list' },
{ on = "R", run = "rename --empty=stem --cursor=start", desc = "Rename file full" },
{ on = [
+6 -5
View File
@@ -5,16 +5,17 @@ rustflags = ["-Z", "threads=8"]
[profile.release]
lto = true
[unstable]
codegen-backend = true
[profile.dev]
opt-level = 1
codegen-backend = "cranelift"
[unstable]
codegen-backend = true
[profile.dev.package."*"]
opt-level = 3
[target.x86_64-unknown-linux-gnu]
linker = "/usr/bin/clang"
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"] # "target-cpu=native"
linker = "clang"
rustflags = ["-C", "link-arg=--ld-path=wild"]
# rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"] # "target-cpu=native"