From 81b0bd4851c625286982c556c7a0756f558de7e4 Mon Sep 17 00:00:00 2001 From: Anton Bilous Date: Thu, 9 Oct 2025 11:23:52 +0300 Subject: [PATCH] p --- .config/fish/conf.d/abbr.fish | 2 -- .config/fish/config.fish | 0 .config/fish/functions/music.fish | 5 +-- .config/git/config | 2 +- .config/helix/config.toml | 22 ++++++------- .config/helix/languages.toml | 32 +++++++++++++++++++ .config/htop/htoprc | 4 +-- .config/hypr/binds.conf | 18 ++++++----- .config/hypr/rules.conf | 3 ++ .config/hypr/variables.conf | 6 ++-- .../pipewire-pulse.d/10-adjust-quirks.conf | 11 +++++++ .config/yazi/keymap.toml | 5 +-- .local/share/cargo/config.toml | 11 ++++--- 13 files changed, 80 insertions(+), 41 deletions(-) delete mode 100644 .config/fish/config.fish create mode 100644 .config/pipewire/pipewire-pulse.d/10-adjust-quirks.conf diff --git a/.config/fish/conf.d/abbr.fish b/.config/fish/conf.d/abbr.fish index 26afda3..7e972b3 100644 --- a/.config/fish/conf.d/abbr.fish +++ b/.config/fish/conf.d/abbr.fish @@ -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 diff --git a/.config/fish/config.fish b/.config/fish/config.fish deleted file mode 100644 index e69de29..0000000 diff --git a/.config/fish/functions/music.fish b/.config/fish/functions/music.fish index cf06dc9..a5249c4 100644 --- a/.config/fish/functions/music.fish +++ b/.config/fish/functions/music.fish @@ -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 diff --git a/.config/git/config b/.config/git/config index ab18a66..0f5d7e8 100644 --- a/.config/git/config +++ b/.config/git/config @@ -3,7 +3,7 @@ [diff] tool = nvimdiff [core] - editor = nvim + editor = helix ; repositoryformatversion = 1 ; [extensions] ; objectformat = sha256 diff --git a/.config/helix/config.toml b/.config/helix/config.toml index 38e4ed6..1a40705 100644 --- a/.config/helix/config.toml +++ b/.config/helix/config.toml @@ -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", diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml index dc58e04..2c1953a 100644 --- a/.config/helix/languages.toml +++ b/.config/helix/languages.toml @@ -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] diff --git a/.config/htop/htoprc b/.config/htop/htoprc index 48a76ac..212a3e6 100644 --- a/.config/htop/htoprc +++ b/.config/htop/htoprc @@ -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 diff --git a/.config/hypr/binds.conf b/.config/hypr/binds.conf index 57cc5a5..6db6cf6 100644 --- a/.config/hypr/binds.conf +++ b/.config/hypr/binds.conf @@ -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 diff --git a/.config/hypr/rules.conf b/.config/hypr/rules.conf index c0f93c8..1d1633d 100644 --- a/.config/hypr/rules.conf +++ b/.config/hypr/rules.conf @@ -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)$ diff --git a/.config/hypr/variables.conf b/.config/hypr/variables.conf index 8033001..a9f743a 100644 --- a/.config/hypr/variables.conf +++ b/.config/hypr/variables.conf @@ -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 diff --git a/.config/pipewire/pipewire-pulse.d/10-adjust-quirks.conf b/.config/pipewire/pipewire-pulse.d/10-adjust-quirks.conf new file mode 100644 index 0000000..ec1ed49 --- /dev/null +++ b/.config/pipewire/pipewire-pulse.d/10-adjust-quirks.conf @@ -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 ] } +} +] diff --git a/.config/yazi/keymap.toml b/.config/yazi/keymap.toml index 8f2fb67..cc9b533 100644 --- a/.config/yazi/keymap.toml +++ b/.config/yazi/keymap.toml @@ -3,10 +3,7 @@ [mgr] prepend_keymap = [ # { on = "", run = "plugin wl-clipboard", desc = "Yank to clipboard" }, - { on = "", run = [ - 'shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list', - "yank", - ] }, + { on = "", 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 = [ diff --git a/.local/share/cargo/config.toml b/.local/share/cargo/config.toml index 0398bb2..d943dee 100644 --- a/.local/share/cargo/config.toml +++ b/.local/share/cargo/config.toml @@ -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"