Compare commits

...

6 commits

Author SHA1 Message Date
c4c5b5fc9a kak: Usar kakoune.cr en vez de fzf.kak
Y solo setear foot en caso de que estemos en Wayland
2022-07-10 20:51:19 -03:00
818dc70481 zshrc: Usar pcmanfm 2022-07-10 20:46:38 -03:00
e5d720c09e profile: Configurar FZF mejor 2022-07-10 20:46:27 -03:00
8d03fcd69e themer.lua: rose-pine 2022-07-10 20:46:14 -03:00
1473b19b47 fuzzel: Mostrar iconos
Actualizar a master (de 1.7.0) para que no sea dolorosamente lento
2022-07-10 20:45:27 -03:00
3d336e3b7e sutty-vm.desktop 2022-07-09 18:41:29 -03:00
8 changed files with 35 additions and 25 deletions

View file

@ -57,12 +57,16 @@ hook global WinSetOption filetype=go %{
# Usar Foot # Usar Foot
# ------------ # ------------
eval %sh{
test -n "$WAYLAND_DISPLAY" && echo '
hook global KakBegin .* %{ set-option global termcmd "footclient sh -c" } hook global KakBegin .* %{ set-option global termcmd "footclient sh -c" }
define-command fzf-terminal -params 1.. -shell-completion %{ define-command terminal-popup -params 1.. -shell-completion %{
set-option global termcmd "footclient --app-id=fzf sh -c" set-option global termcmd "footclient --app-id=fzf sh -c"
wayland-terminal %arg{@} wayland-terminal %arg{@}
set-option global termcmd "footclient sh -c" set-option global termcmd "footclient sh -c"
} }
'
}
# ------------ # ------------
# Keybindings genericas # Keybindings genericas
@ -102,25 +106,18 @@ hook -group sleuth global BufOpenFile .* %{ sleuth }
hook -group sleuth global BufWritePost .* %{ sleuth } hook -group sleuth global BufWritePost .* %{ sleuth }
# ------------ # ------------
# FZF # Kakoune.cr
# ------------ # ------------
source "%val{config}/plugins/fzf.kak/rc/fzf.kak"
evaluate-commands %sh{ evaluate-commands %sh{
find -L "$kak_config/plugins/fzf.kak/rc/modules/" -type f -name '*.kak' -exec printf 'source "%s"\n' {} \; kcr init kakoune
} }
hook global ModuleLoaded fzf %{
set-option global fzf_terminal_command 'fzf-terminal kak -c %val{session} -e "%arg{@}"' map -docstring 'new client' global normal <c-t> ': new<ret>'
} map -docstring 'terminal' global normal <c-ret> ': connect terminal<ret>'
hook global ModuleLoaded fzf-file %{ map -docstring 'file picker' global normal <c-f> ': connect terminal-popup kcr fzf files -- -H<ret>'
set-option global fzf_file_command 'rg -L --hidden --files --glob !.git' map -docstring 'buffer picker' global normal <c-b> ': connect terminal-popup kcr fzf buffers<ret>'
} map -docstring 'grep picker' global normal <c-g> ': connect terminal-popup kcr fzf grep<ret>'
hook global ModuleLoaded fzf-grep %{
set-option global fzf_grep_command 'rg'
}
map -docstring 'search files' global user f ': fzf-mode<ret>f'
map -docstring 'search buffers' global user b ': fzf-mode<ret>b'
map -docstring 'grep files' global user g ': fzf-mode<ret>g'
# ------------ # ------------
# Buffer switching # Buffer switching

@ -1 +1 @@
Subproject commit 6fcc7dffe1f5793bb87122d2d445171d568d052a Subproject commit 22f5fdbf2607b9fa15881e566d9d26ba5e0d411e

View file

@ -1 +1 @@
rose-pine-moon rose-pine

View file

@ -5,7 +5,6 @@ exec fuzzel \
--terminal=footclient \ --terminal=footclient \
--font='monospace:pixelsize=22' \ --font='monospace:pixelsize=22' \
--prompt='➦ ' \ --prompt='➦ ' \
--no-icons \
--width=40 \ --width=40 \
--background=${background}ff \ --background=${background}ff \
--text-color=${foreground}ff \ --text-color=${foreground}ff \

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Terminal @ sutty.vm
Exec=footclient ssh nulo@sutty.vm
Categories=System;Monitor;ConsoleOnly;
Keywords=system;process;task

View file

@ -12,6 +12,7 @@ export ZEIT_DB=~/Sync/zeit.db
export EDITOR=kak export EDITOR=kak
export FZF_DEFAULT_COMMAND='rg -L --hidden --files' export FZF_DEFAULT_COMMAND='rg -L --hidden --files'
export FZF_DEFAULT_OPTS='--multi --layout=reverse --preview-window=down:60%'
export FZF_CTRL_T_COMMAND='rg -L --hidden --files' export FZF_CTRL_T_COMMAND='rg -L --hidden --files'
export MOZ_ENABLE_WAYLAND=1 export MOZ_ENABLE_WAYLAND=1

View file

@ -28,5 +28,11 @@ Probablemente incompleto.
### Alpine ### Alpine
```sh ```sh
apk add zsh zsh-vcs fzf vis apk add zsh zsh-vcs fzf kak
```
#### Para desktop/IDE
```sh
apk add kakoune-cr kakoune-cr-commands foot sway
``` ```

2
.zshrc
View file

@ -41,7 +41,7 @@ alias ssh='TERM=xterm-256color ssh'
alias e="$EDITOR" alias e="$EDITOR"
alias r="trash -r" alias r="trash -r"
alias a='nohup nautilus "$(pwd)" >/dev/null &' alias a='pcmanfm --new-win "$(pwd)" &; disown'
alias g='git' alias g='git'
alias gc='git commit' alias gc='git commit'