p
This commit is contained in:
@@ -9,13 +9,11 @@ abbr t trash put
|
|||||||
abbr mm -- mpv --shuffle \$XDG_MUSIC_DIR
|
abbr mm -- mpv --shuffle \$XDG_MUSIC_DIR
|
||||||
|
|
||||||
abbr l lazygit
|
abbr l lazygit
|
||||||
abbr g git
|
|
||||||
# abbr dots -- git --git-dir \~/.dotfiles/ --work-tree \~
|
# abbr dots -- git --git-dir \~/.dotfiles/ --work-tree \~
|
||||||
abbr gl git log
|
abbr gl git log
|
||||||
abbr ga git add
|
abbr ga git add
|
||||||
abbr gc git commit
|
abbr gc git commit
|
||||||
abbr gs git status
|
abbr gs git status
|
||||||
abbr gcl git clone
|
|
||||||
abbr gco git checkout
|
abbr gco git checkout
|
||||||
|
|
||||||
function __last_hist_item
|
function __last_hist_item
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
function music --wraps 'yt-dlp -x --embed-thumbnail --embed-chapters' --description 'Download music with yt-dlp'
|
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 \
|
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
|
end
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
[diff]
|
[diff]
|
||||||
tool = nvimdiff
|
tool = nvimdiff
|
||||||
[core]
|
[core]
|
||||||
editor = nvim
|
editor = helix
|
||||||
; repositoryformatversion = 1
|
; repositoryformatversion = 1
|
||||||
; [extensions]
|
; [extensions]
|
||||||
; objectformat = sha256
|
; objectformat = sha256
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ theme = "custom" # monokai_soda, kaolin-valley-dark, material_deep_ocean, carbon
|
|||||||
shell = ["fish", "-c"]
|
shell = ["fish", "-c"]
|
||||||
line-number = "relative"
|
line-number = "relative"
|
||||||
cursorline = true
|
cursorline = true
|
||||||
continue-comments = false # annoying
|
continue-comments = true # doc comments
|
||||||
auto-completion = true # TODO: is it annoying?
|
auto-completion = true
|
||||||
completion-replace = true # why is it not default
|
completion-replace = false # STOP deleting stuff
|
||||||
auto-format = true
|
auto-format = true
|
||||||
auto-info = true # TODO: idle-timeout?
|
auto-info = true # TODO: idle-timeout?
|
||||||
# true-color = true
|
# true-color = true
|
||||||
@@ -107,7 +107,7 @@ C-backspace = "delete_word_backward"
|
|||||||
|
|
||||||
[keys.select]
|
[keys.select]
|
||||||
";" = ["collapse_selection", "normal_mode"]
|
";" = ["collapse_selection", "normal_mode"]
|
||||||
a = ["collapse_selection", "append_mode"]
|
# a = ["collapse_selection", "append_mode"]
|
||||||
|
|
||||||
x = "extend_line"
|
x = "extend_line"
|
||||||
V = ["extend_to_line_bounds", "trim_selections"]
|
V = ["extend_to_line_bounds", "trim_selections"]
|
||||||
@@ -135,7 +135,7 @@ C-l = "jump_view_right"
|
|||||||
[keys.normal]
|
[keys.normal]
|
||||||
"=" = ":format"
|
"=" = ":format"
|
||||||
"A-=" = "format_selections"
|
"A-=" = "format_selections"
|
||||||
a = ["collapse_selection", "append_mode"]
|
# a = ["collapse_selection", "append_mode"]
|
||||||
|
|
||||||
x = "extend_line"
|
x = "extend_line"
|
||||||
V = ["extend_to_line_bounds", "trim_selections"]
|
V = ["extend_to_line_bounds", "trim_selections"]
|
||||||
@@ -182,22 +182,20 @@ n = "file_picker_in_current_buffer_directory"
|
|||||||
# Toggle
|
# Toggle
|
||||||
[keys.normal.space.t]
|
[keys.normal.space.t]
|
||||||
f = ":toggle auto-format"
|
f = ":toggle auto-format"
|
||||||
|
|
||||||
c = ":toggle cursorline"
|
c = ":toggle cursorline"
|
||||||
w = ":toggle soft-wrap.enable"
|
w = ":toggle soft-wrap.enable"
|
||||||
n = ":toggle line-number absolute relative"
|
n = ":toggle line-number absolute relative"
|
||||||
b = ":toggle bufferline never multiple"
|
b = ":toggle bufferline never multiple"
|
||||||
|
r = ":toggle rulers [] [80,100]"
|
||||||
r = ":set-option rulers []"
|
|
||||||
R = ":set-option rulers [80,100]"
|
|
||||||
|
|
||||||
g = ":toggle indent-guides.render"
|
g = ":toggle indent-guides.render"
|
||||||
i = ":toggle lsp.display-inlay-hints"
|
i = ":toggle lsp.display-inlay-hints"
|
||||||
e = ":toggle end-of-line-diagnostics disable hint"
|
e = ":toggle end-of-line-diagnostics disable hint"
|
||||||
d = ":toggle inline-diagnostics.cursor-line disable warning"
|
d = ":toggle inline-diagnostics.cursor-line disable warning"
|
||||||
D = ":toggle inline-diagnostics.other-lines disable error"
|
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 cursorline true",
|
||||||
# ":set-option rulers [100]",
|
# ":set-option rulers [100]",
|
||||||
# ":set-option soft-wrap.enable false",
|
# ":set-option soft-wrap.enable false",
|
||||||
|
|||||||
@@ -18,6 +18,38 @@ auto-format = false
|
|||||||
name = "toml"
|
name = "toml"
|
||||||
auto-format = true
|
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
|
# TODO: still aligns
|
||||||
[language-server.taplo.config]
|
[language-server.taplo.config]
|
||||||
|
|||||||
+2
-2
@@ -40,14 +40,14 @@ column_meter_modes_0=1 1
|
|||||||
column_meters_1=DateTime Uptime LoadAverage Tasks Battery DiskIO NetworkIO Memory Swap
|
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
|
column_meter_modes_1=2 2 2 2 2 2 2 1 1
|
||||||
tree_view=0
|
tree_view=0
|
||||||
sort_key=47
|
sort_key=46
|
||||||
tree_sort_key=0
|
tree_sort_key=0
|
||||||
sort_direction=-1
|
sort_direction=-1
|
||||||
tree_sort_direction=-1
|
tree_sort_direction=-1
|
||||||
tree_view_always_by_pid=0
|
tree_view_always_by_pid=0
|
||||||
all_branches_collapsed=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
|
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_sort_key=PID
|
||||||
.tree_view_always_by_pid=0
|
.tree_view_always_by_pid=0
|
||||||
.tree_view=0
|
.tree_view=0
|
||||||
|
|||||||
+10
-8
@@ -149,25 +149,29 @@ bind = SHIFT, T, exec, killall Telegram
|
|||||||
bind = SHIFT, T, submap, reset
|
bind = SHIFT, 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
|
||||||
bind =, M, exec, QT_SCALE_FACTOR=1.25 fjordlauncher
|
# bind =, M, exec, nheko
|
||||||
bind =, M, submap, reset
|
# bind =, M, submap, reset
|
||||||
bind =, E, exec, element-desktop
|
bind =, E, exec, kitty helix
|
||||||
bind =, E, submap, reset
|
bind =, E, submap, reset
|
||||||
#bind =, N, exec, nemo
|
bind =, N, exec, nheko
|
||||||
bind =, N, submap, reset
|
bind =, N, submap, reset
|
||||||
bind =, Y, exec, kitty yazi
|
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.25 obs
|
bind =, O, exec, obsidian --force-device-scale-factor=2
|
||||||
bind =, O, submap, reset
|
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, exec, klavaro
|
||||||
bind =, K, submap, reset
|
bind =, K, submap, reset
|
||||||
bind = SHIFT, S, exec, gamemoderun steam-native
|
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, exec, drawio
|
bind =, D, exec, vesktop # drawio
|
||||||
bind =, D, submap, reset
|
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, 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
|
||||||
@@ -176,8 +180,6 @@ bind = SHIFT, B, exec, flatpak run com.usebottles.bottles
|
|||||||
bind = SHIFT, B, submap, reset
|
bind = SHIFT, B, submap, reset
|
||||||
bind =, Q, exec, qbittorrent
|
bind =, Q, exec, qbittorrent
|
||||||
bind =, Q, submap, reset
|
bind =, Q, submap, reset
|
||||||
bind = SHIFT, D, exec, drawing
|
|
||||||
bind = SHIFT, D, submap, reset
|
|
||||||
bind =, A, exec, anki
|
bind =, A, exec, anki
|
||||||
bind =, A, submap, reset
|
bind =, A, submap, reset
|
||||||
# utilities
|
# utilities
|
||||||
|
|||||||
@@ -28,7 +28,10 @@ windowrule = rounding 0, floating:0, onworkspace:f[1]
|
|||||||
|
|
||||||
# windowrule = float, class:^(LibreWolf)$
|
# windowrule = float, class:^(LibreWolf)$
|
||||||
|
|
||||||
|
# layerrule = noscreenshare, notifications
|
||||||
windowrule = noscreenshare, class:^(Bitwarden)$
|
windowrule = noscreenshare, class:^(Bitwarden)$
|
||||||
|
windowrule = noscreenshare, class:^(nheko)$
|
||||||
|
# windowrule = noscreenshare, class:^(vesktop)$
|
||||||
windowrule = noscreenshare, class:^(org.telegram.desktop)$
|
windowrule = noscreenshare, class:^(org.telegram.desktop)$
|
||||||
|
|
||||||
windowrule = float, class:^(Bitwarden)$
|
windowrule = float, class:^(Bitwarden)$
|
||||||
|
|||||||
@@ -166,8 +166,8 @@ device {
|
|||||||
kb_options = altwin:swap_lalt_lwin, grp:win_space_toggle, grp_led:caps, shift:both_capslock_cancel
|
kb_options = altwin:swap_lalt_lwin, grp:win_space_toggle, grp_led:caps, shift:both_capslock_cancel
|
||||||
} # }}}
|
} # }}}
|
||||||
|
|
||||||
gestures { # {{{
|
# gestures { # {{{
|
||||||
workspace_swipe = false
|
# workspace_swipe = false
|
||||||
#workspace_swipe_fingers = 3
|
#workspace_swipe_fingers = 3
|
||||||
#workspace_swipe_distance = 150
|
#workspace_swipe_distance = 150
|
||||||
#workspace_swipe_invert = true
|
#workspace_swipe_invert = true
|
||||||
@@ -177,7 +177,7 @@ gestures { # {{{
|
|||||||
#workspace_swipe_forever = false
|
#workspace_swipe_forever = false
|
||||||
#workspace_swipe_numbered = false
|
#workspace_swipe_numbered = false
|
||||||
#workspace_swipe_use_r = false
|
#workspace_swipe_use_r = false
|
||||||
} # }}}
|
# } # }}}
|
||||||
|
|
||||||
misc { # {{{
|
misc { # {{{
|
||||||
disable_hyprland_logo = true
|
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 ] }
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -3,10 +3,7 @@
|
|||||||
[mgr]
|
[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 = "<C-y>", run = [
|
{ on = "<C-y>", run = 'shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list' },
|
||||||
'shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list',
|
|
||||||
"yank",
|
|
||||||
] },
|
|
||||||
|
|
||||||
{ on = "R", run = "rename --empty=stem --cursor=start", desc = "Rename file full" },
|
{ on = "R", run = "rename --empty=stem --cursor=start", desc = "Rename file full" },
|
||||||
{ on = [
|
{ on = [
|
||||||
|
|||||||
@@ -5,16 +5,17 @@ rustflags = ["-Z", "threads=8"]
|
|||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
lto = true
|
||||||
|
|
||||||
[unstable]
|
|
||||||
codegen-backend = true
|
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
opt-level = 1
|
opt-level = 1
|
||||||
codegen-backend = "cranelift"
|
codegen-backend = "cranelift"
|
||||||
|
|
||||||
|
[unstable]
|
||||||
|
codegen-backend = true
|
||||||
|
|
||||||
[profile.dev.package."*"]
|
[profile.dev.package."*"]
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
|
|
||||||
[target.x86_64-unknown-linux-gnu]
|
[target.x86_64-unknown-linux-gnu]
|
||||||
linker = "/usr/bin/clang"
|
linker = "clang"
|
||||||
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"] # "target-cpu=native"
|
rustflags = ["-C", "link-arg=--ld-path=wild"]
|
||||||
|
# rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"] # "target-cpu=native"
|
||||||
|
|||||||
Reference in New Issue
Block a user