😎😎😎😎😎
This commit is contained in:
parent
ec34e7dbeb
commit
a1a5363b7a
|
@ -8,6 +8,8 @@ config:
|
||||||
longkey: false
|
longkey: false
|
||||||
default_actions:
|
default_actions:
|
||||||
- notify
|
- notify
|
||||||
|
func_file:
|
||||||
|
- funcs.py
|
||||||
profiles:
|
profiles:
|
||||||
i15:
|
i15:
|
||||||
dotfiles:
|
dotfiles:
|
||||||
|
@ -65,7 +67,6 @@ dotfiles:
|
||||||
dst: ~/.config/nvim
|
dst: ~/.config/nvim
|
||||||
actions:
|
actions:
|
||||||
- vimplug
|
- vimplug
|
||||||
- notify
|
|
||||||
sway:
|
sway:
|
||||||
src: sway.conf
|
src: sway.conf
|
||||||
dst: ~/.config/sway/config
|
dst: ~/.config/sway/config
|
||||||
|
|
|
@ -31,6 +31,9 @@ set -x PAGER less
|
||||||
export QPA_PLATFORM=wayland
|
export QPA_PLATFORM=wayland
|
||||||
export QT_QPA_PLATFORM=wayland
|
export QT_QPA_PLATFORM=wayland
|
||||||
|
|
||||||
|
# keep my dirs clean
|
||||||
|
export PYTHONPYCACHEPREFIX=$HOME/.cache/python
|
||||||
|
|
||||||
# end
|
# end
|
||||||
#}}}
|
#}}}
|
||||||
# Aliases{{{
|
# Aliases{{{
|
||||||
|
@ -51,10 +54,10 @@ alias fish_greeting 'khal list now 10d --format " {title}"'
|
||||||
abbr gs git status
|
abbr gs git status
|
||||||
abbr gp 'git pull; git push'
|
abbr gp 'git pull; git push'
|
||||||
|
|
||||||
alias dotdrop "dotdrop --cfg $HOME/dotdrop/config.yaml"
|
alias dotdrop "dotdrop --cfg \"{{@@ _dotdrop_cfgpath @@}}\""
|
||||||
|
|
||||||
function edit-config #{{{
|
function edit-config #{{{
|
||||||
cd dotdrop
|
cd "{{@@ parent_dir ( _dotdrop_dotpath ) @@}}"
|
||||||
nvim +GFiles
|
nvim +GFiles
|
||||||
end
|
end
|
||||||
abbr ec edit-config
|
abbr ec edit-config
|
||||||
|
@ -91,6 +94,10 @@ end
|
||||||
#}}}
|
#}}}
|
||||||
# }}}
|
# }}}
|
||||||
# Keys{{{
|
# Keys{{{
|
||||||
|
|
||||||
|
set fish_key_bindings fish_vi_key_bindings
|
||||||
|
|
||||||
|
if test $fish_key_bindings = fish_vi_key_bindings
|
||||||
bind {{@@ key.left @@}} backward-char
|
bind {{@@ key.left @@}} backward-char
|
||||||
bind -M visual {{@@ key.left @@}} backward-char
|
bind -M visual {{@@ key.left @@}} backward-char
|
||||||
bind {{@@ key.down @@}} down-or-search
|
bind {{@@ key.down @@}} down-or-search
|
||||||
|
@ -99,6 +106,7 @@ bind {{@@ key.up @@}} up-or-search
|
||||||
bind -M visual {{@@ key.up @@}} up-line
|
bind -M visual {{@@ key.up @@}} up-line
|
||||||
bind {{@@ key.right @@}} forward-char
|
bind {{@@ key.right @@}} forward-char
|
||||||
bind -M visual {{@@ key.right @@}} forward-char
|
bind -M visual {{@@ key.right @@}} forward-char
|
||||||
|
end
|
||||||
#}}}
|
#}}}
|
||||||
# start window manager if using tty1 {{{
|
# start window manager if using tty1 {{{
|
||||||
#
|
#
|
||||||
|
@ -115,7 +123,7 @@ bind -M visual {{@@ key.right @@}} forward-char
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
# use tmux{{{
|
# use tmux{{{
|
||||||
# set TMUX 1
|
set TMUX 1
|
||||||
if test -z "$TMUX" -a -n "$DISPLAY" &&
|
if test -z "$TMUX" -a -n "$DISPLAY" &&
|
||||||
not string match -qr kitty "$TERM" &&
|
not string match -qr kitty "$TERM" &&
|
||||||
test -z "$GNOME_TERMINAL_SCREEN" &&
|
test -z "$GNOME_TERMINAL_SCREEN" &&
|
||||||
|
@ -139,6 +147,55 @@ bind -M visual {{@@ key.right @@}} forward-char
|
||||||
end
|
end
|
||||||
#}}}
|
#}}}
|
||||||
# Prompt customization{{{
|
# Prompt customization{{{
|
||||||
|
|
||||||
|
|
||||||
|
# Fine, I'll do it myself
|
||||||
|
function fish_vi_cursor;end
|
||||||
|
function fish_mode_prompt;end
|
||||||
|
|
||||||
|
# function _fish_prompt_accent
|
||||||
|
# set_color --bold "{{@@ color.accent @@}}"
|
||||||
|
# echo -en $argv
|
||||||
|
# end
|
||||||
|
|
||||||
|
# function _fish_prompt_normal
|
||||||
|
# set_color --bold "brwhite"
|
||||||
|
# echo -en $argv
|
||||||
|
# end
|
||||||
|
|
||||||
|
# function fish_prompt
|
||||||
|
# _fish_prompt_accent $USER
|
||||||
|
# _fish_prompt_normal " in "
|
||||||
|
# _fish_prompt_accent (prompt_pwd)
|
||||||
|
# echo
|
||||||
|
|
||||||
|
# if test $fish_key_bindings = fish_vi_key_bindings
|
||||||
|
# printf '\e[1 q'
|
||||||
|
|
||||||
|
# printf (
|
||||||
|
# switch $fish_bind_mode
|
||||||
|
# case insert
|
||||||
|
# printf '\e[5 q'
|
||||||
|
# printf 'i'
|
||||||
|
# case replace_one
|
||||||
|
# printf 'o'
|
||||||
|
# case default
|
||||||
|
# printf 'n'
|
||||||
|
# case '*'
|
||||||
|
# printf (string match -r '^.' $fish_bind_mode )
|
||||||
|
# end | string upper
|
||||||
|
# )' '
|
||||||
|
# end
|
||||||
|
|
||||||
|
# if test $USER = root
|
||||||
|
# _fish_prompt_normal "\# "
|
||||||
|
# else
|
||||||
|
# _fish_prompt_normal "\$ "
|
||||||
|
# end
|
||||||
|
|
||||||
|
# set_color normal
|
||||||
|
# end
|
||||||
|
|
||||||
set SPACEFISH_USER_SHOW always
|
set SPACEFISH_USER_SHOW always
|
||||||
set SPACEFISH_USER_COLOR "{{@@ color.accent @@}}"
|
set SPACEFISH_USER_COLOR "{{@@ color.accent @@}}"
|
||||||
set SPACEFISH_DIR_COLOR "{{@@ color.accent @@}}"
|
set SPACEFISH_DIR_COLOR "{{@@ color.accent @@}}"
|
||||||
|
@ -146,29 +203,23 @@ bind -M visual {{@@ key.right @@}} forward-char
|
||||||
set SPACEFISH_PROMPT_ADD_NEWLINE false
|
set SPACEFISH_PROMPT_ADD_NEWLINE false
|
||||||
|
|
||||||
set SPACEFISH_CHAR_COLOR_SUCCESS white
|
set SPACEFISH_CHAR_COLOR_SUCCESS white
|
||||||
|
|
||||||
set SPACEFISH_CHAR_PREFIX ""
|
set SPACEFISH_CHAR_PREFIX ""
|
||||||
set SPACEFISH_CHAR_SYMBOL '$'
|
set SPACEFISH_CHAR_SYMBOL '$'
|
||||||
set SPACEFISH_CHAR_SYMBOL_ROOT '#'
|
set SPACEFISH_CHAR_SYMBOL_ROOT '#'
|
||||||
|
|
||||||
set SPACEFISH_VI_MODE_COLOR "{{@@ color.accent @@}}"
|
set SPACEFISH_VI_MODE_COLOR "{{@@ color.accent @@}}"
|
||||||
|
|
||||||
set SPACEFISH_VI_MODE_PREFIX "\e[1 q"
|
set SPACEFISH_VI_MODE_PREFIX "\e[1 q"
|
||||||
set SPACEFISH_VI_MODE_SUFIX ""
|
|
||||||
set SPACEFISH_VI_MODE_INSERT "I\e[5 q"
|
set SPACEFISH_VI_MODE_INSERT "I\e[5 q"
|
||||||
set SPACEFISH_VI_MODE_NORMAL "N"
|
set SPACEFISH_VI_MODE_NORMAL "N"
|
||||||
set SPACEFISH_VI_MODE_VISUAL "V"
|
set SPACEFISH_VI_MODE_VISUAL "V"
|
||||||
set SPACEFISH_VI_MODE_REPLACE "R"
|
set SPACEFISH_VI_MODE_REPLACE "R"
|
||||||
set SPACEFISH_VI_MODE_REPLACE_ONE "S"
|
set SPACEFISH_VI_MODE_REPLACE_ONE "S"
|
||||||
|
set SPACEFISH_VI_MODE_SUFIX ""
|
||||||
|
|
||||||
set fish_cursor_default block blink
|
# set fish_cursor_default block blink
|
||||||
set fish_cursor_insert line blink
|
# set fish_cursor_insert line blink
|
||||||
set fish_cursor_replace_one underscore blink
|
# set fish_cursor_replace_one underscore blink
|
||||||
set fish_cursor_visual block
|
# set fish_cursor_visual block
|
||||||
|
|
||||||
# set -l cnf /usr/share/doc/pkgfile/command-not-found.fish
|
|
||||||
test -f "$cnf" &&
|
|
||||||
source "$cnf"
|
|
||||||
|
|
||||||
#}}}
|
#}}}
|
||||||
# Color man pages{{{
|
# Color man pages{{{
|
||||||
|
|
|
@ -108,8 +108,8 @@ call plug#end()
|
||||||
" Enable syntax and set color scheme
|
" Enable syntax and set color scheme
|
||||||
syntax on
|
syntax on
|
||||||
|
|
||||||
set tabstop=2
|
set tabstop=4
|
||||||
set shiftwidth=2
|
set shiftwidth=4
|
||||||
set expandtab
|
set expandtab
|
||||||
set smarttab
|
set smarttab
|
||||||
|
|
||||||
|
@ -256,7 +256,7 @@ call plug#end()
|
||||||
cmap w!! w !sudo tee % >/dev/null
|
cmap w!! w !sudo tee % >/dev/null
|
||||||
|
|
||||||
" Auto deploy dotfiles
|
" Auto deploy dotfiles
|
||||||
autocmd BufWritePost /**/dotdrop/{config.yaml,dotfiles/**} silent !dotdrop install -f
|
autocmd BufWritePost {{@@ parent_dir( _dotdrop_dotpath ) @@}}/{config.yaml,dotfiles/**} silent !dotdrop install -f
|
||||||
|
|
||||||
{%@@ if lsp == "vim-lsp" @@%}
|
{%@@ if lsp == "vim-lsp" @@%}
|
||||||
" vim-lsp{{{
|
" vim-lsp{{{
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
|
|
||||||
RED_ON="$(pgrep redshift)"
|
RED_ON="$(pgrep redshift)"
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
if test -n "$RED_ON";then
|
if test -n "$RED_ON";then
|
||||||
pkill redshift
|
pkill redshift
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -17,7 +17,16 @@ search(){
|
||||||
}
|
}
|
||||||
|
|
||||||
delete(){
|
delete(){
|
||||||
current=~/Música/"$(mpc current -f %file%)"
|
[ -n "$XDG_CONFIG_HOME" ] &&
|
||||||
|
config_root="$XDG_CONFIG_HOME" ||
|
||||||
|
config_root="$HOME/.config"
|
||||||
|
music_root=$(awk '/^music_directory/
|
||||||
|
{
|
||||||
|
gsub(/"/,"");
|
||||||
|
gsub(/~/,"'$HOME'");
|
||||||
|
print $2
|
||||||
|
}' $config_root/mpd/mpd.conf)
|
||||||
|
current="$music_root"/"$(mpc current -f %file%)"
|
||||||
answer=$(echo -e "nothing\n$current" | $menu -p"delete?" )
|
answer=$(echo -e "nothing\n$current" | $menu -p"delete?" )
|
||||||
if [ "$answer" == "$current" ]
|
if [ "$answer" == "$current" ]
|
||||||
then
|
then
|
||||||
|
|
Reference in New Issue