@@ -31,3 +31,4 @@ end
|
|||||||
if not type -q wget
|
if not type -q wget
|
||||||
abbr wget curl -O
|
abbr wget curl -O
|
||||||
end
|
end
|
||||||
|
abbr rpc 'patch -p0 < ~/.local/share/console.diff'
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ $mainModShift = SUPER_SHIFT
|
|||||||
bind = $mainMod, Return, exec, foot
|
bind = $mainMod, Return, exec, foot
|
||||||
bind = $mainModShift, Return, exec, wezterm
|
bind = $mainModShift, Return, exec, wezterm
|
||||||
bind = $mainModShift, Q, killactive,
|
bind = $mainModShift, Q, killactive,
|
||||||
bind = $mainMod, M, exit,
|
# bind = $mainMod, M, exit,
|
||||||
bind = $mainMod, t, togglefloating,
|
bind = $mainMod, t, togglefloating,
|
||||||
bind = $mainMod, f, fullscreen,
|
bind = $mainMod, f, fullscreen,
|
||||||
bind = $mainMod, d, exec, anyrun
|
bind = $mainMod, d, exec, anyrun
|
||||||
@@ -26,6 +26,7 @@ bind = ,xf86audioplay, exec, /home/fs0c131y/.cargo/bin/mctl toggle
|
|||||||
# Screenshot
|
# Screenshot
|
||||||
bind = $mainMod,Print, exec, grim
|
bind = $mainMod,Print, exec, grim
|
||||||
bind = $mainModShift,Print, exec, grim -g "$(slurp)"
|
bind = $mainModShift,Print, exec, grim -g "$(slurp)"
|
||||||
|
bind = $mainModShift,s, exec, watershot
|
||||||
|
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
# Move focus with mainMod + arrow keys
|
||||||
|
|||||||
@@ -31,8 +31,9 @@ exec-once = swaync
|
|||||||
exec-once = ironbar
|
exec-once = ironbar
|
||||||
exec-once = nextcloud --background
|
exec-once = nextcloud --background
|
||||||
exec-once = /usr/lib/polkit-kde-authentication-agent-1
|
exec-once = /usr/lib/polkit-kde-authentication-agent-1
|
||||||
exec-once = /usr/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland --start-minimized
|
exec-once = /usr/local/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland --start-minimized
|
||||||
exec-once = /usr/lib/kdeconnectd
|
exec-once = /usr/lib/kdeconnectd
|
||||||
|
exec-once = aa-notify -p -s 1 -w 60 -f /var/log/audit/audit.log
|
||||||
|
|
||||||
# exec-once = linux-wallpaperengine --screen-root DP-2 2207659298
|
# exec-once = linux-wallpaperengine --screen-root DP-2 2207659298
|
||||||
# exec-once = linux-wallpaperengine --screen-root DP-3 2207659298
|
# exec-once = linux-wallpaperengine --screen-root DP-3 2207659298
|
||||||
|
|||||||
@@ -319,7 +319,7 @@ $env.config = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
explore: {
|
explore: {
|
||||||
help_banner: true
|
help_banner: false
|
||||||
exit_esc: true
|
exit_esc: true
|
||||||
|
|
||||||
command_bar_text: '#C4C9C6'
|
command_bar_text: '#C4C9C6'
|
||||||
@@ -378,7 +378,8 @@ $env.config = {
|
|||||||
history: {
|
history: {
|
||||||
max_size: 10000 # Session has to be reloaded for this to take effect
|
max_size: 10000 # Session has to be reloaded for this to take effect
|
||||||
sync_on_enter: true # Enable to share history between multiple sessions, else you have to close the session to write history to file
|
sync_on_enter: true # Enable to share history between multiple sessions, else you have to close the session to write history to file
|
||||||
file_format: "plaintext" # "sqlite" or "plaintext"
|
file_format: "sqlite" # "sqlite" or "plaintext"
|
||||||
|
isolation: true
|
||||||
}
|
}
|
||||||
completions: {
|
completions: {
|
||||||
case_sensitive: false # set to true to enable case-sensitive completions
|
case_sensitive: false # set to true to enable case-sensitive completions
|
||||||
@@ -651,6 +652,50 @@ $env.config = {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let fish_completer = {|spans|
|
||||||
|
fish --command $'complete "--do-complete=($spans | str join " ")"'
|
||||||
|
| $"value(char tab)description(char newline)" + $in
|
||||||
|
| from tsv --flexible --no-infer
|
||||||
|
}
|
||||||
|
|
||||||
|
let carapace_completer = {|spans: list<string>|
|
||||||
|
carapace $spans.0 nushell $spans
|
||||||
|
| from json
|
||||||
|
| if ($in | default [] | where value =~ '^-.*ERR$' | is-empty) { $in } else { null }
|
||||||
|
}
|
||||||
|
|
||||||
|
# This completer will use carapace by default
|
||||||
|
let external_completer = {|spans|
|
||||||
|
let expanded_alias = scope aliases
|
||||||
|
| where name == $spans.0
|
||||||
|
| get -i 0.expansion
|
||||||
|
|
||||||
|
let spans = if $expanded_alias != null {
|
||||||
|
$spans
|
||||||
|
| skip 1
|
||||||
|
| prepend ($expanded_alias | split row ' ')
|
||||||
|
} else {
|
||||||
|
$spans
|
||||||
|
}
|
||||||
|
|
||||||
|
match $spans.0 {
|
||||||
|
nu => $fish_completer
|
||||||
|
git => $fish_completer
|
||||||
|
_ => $fish_completer
|
||||||
|
} | do $in $spans
|
||||||
|
}
|
||||||
|
|
||||||
|
$env.config = {
|
||||||
|
# ...
|
||||||
|
completions: {
|
||||||
|
external: {
|
||||||
|
enable: true
|
||||||
|
completer: $external_completer
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# ...
|
||||||
|
}
|
||||||
|
|
||||||
source starship.nu
|
source starship.nu
|
||||||
source zoxide.nu
|
source zoxide.nu
|
||||||
source alias.nu
|
source alias.nu
|
||||||
|
|||||||
@@ -203,7 +203,9 @@ return require('lazy').setup({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
'LhKipp/nvim-nu',
|
'LhKipp/nvim-nu',
|
||||||
config = function() require 'nu'.setup() end,
|
config = function() require 'nu'.setup({
|
||||||
|
use_lsp_features = false,
|
||||||
|
}) end,
|
||||||
ft = "nu"
|
ft = "nu"
|
||||||
},
|
},
|
||||||
-- lsp
|
-- lsp
|
||||||
|
|||||||
Reference in New Issue
Block a user