Compare commits

...

179 commits

Author SHA1 Message Date
5623f85d50 sway: Usar negro como acento 2022-03-12 17:04:00 -03:00
81299eca3e sway: Usar Inter Medium 2022-03-12 17:03:51 -03:00
1602e48e6c Revert "Anonymous Pro"
This reverts commit 9bbbc397a6.
2022-03-12 17:00:19 -03:00
c2968aec76 sway: Usar Inter extra bold 2022-03-12 16:49:16 -03:00
9bbbc397a6 Anonymous Pro 2022-03-12 16:49:08 -03:00
ca6c77eb77 fnott: No hacer ruido 2022-03-12 16:35:40 -03:00
ba2b93a148 sway: Keybind para enfocar hijx 2022-03-12 16:35:26 -03:00
b4b89b5218 sway: Suspender sin pm-suspend 2022-03-12 16:35:18 -03:00
1a6158fffd Volver a Input Mono 2022-03-12 16:35:08 -03:00
c12bc6fc03 foot: No centrar padding 2022-03-06 00:21:47 -03:00
c2ed01e234 sway: Workspace y 2022-03-06 00:21:38 -03:00
ec7bfe9592 zsh: No activar zcalc 2022-03-06 00:21:14 -03:00
dd6ae92654 themer: No correr scripts de river ya que ahora uso Sway 2022-03-05 20:14:47 -03:00
dcdc341b02 foot: Cambiar tamaño de tipografía 2022-03-05 20:14:33 -03:00
47c4f03023 river: Cambiar un montón de cosas, no se, ya no lo uso 2022-03-05 20:14:12 -03:00
4d51bdf517 sway: No auto-bloquear si hay algo en pantalla completa 2022-03-05 20:13:52 -03:00
9c890ebd21 sway: No enfocar automáticamente con el mouse 2022-03-05 20:13:27 -03:00
ed6b05fd20 sway: Mutear con mod+c 2022-03-05 20:13:10 -03:00
3ddf1ab571 sway: Color más claro para cosas semi desenfocadas 2022-03-05 20:12:53 -03:00
ab8a5250ab sway: Mejorar keybindings de splitteo 2022-03-05 20:12:41 -03:00
ef2e38c963 sway: Poder mover workspaces 2022-03-05 20:12:13 -03:00
7fbf4ab6a3 kak: Mostrar número de línea relativo 2022-03-05 20:12:00 -03:00
a0cf6b55bf sway: También mover con flechas normales 2022-03-05 20:11:46 -03:00
f560318484 Pasarse a sway 2022-02-19 12:19:21 -03:00
0407f2f71e yambar: Cambiar color del tag seleccionado 2022-02-15 14:41:44 -03:00
301b508b4a river: Cambiar acento a algo más vibrante 2022-02-15 14:41:29 -03:00
5c9698e77e river: Cambiar keybindings (mucho) 2022-02-15 14:41:16 -03:00
d9b1955c7f river: Sin padding 2022-02-15 14:41:03 -03:00
2b571f705c river: Fondo cat ears 2022-02-15 14:40:55 -03:00
b2a7060774 river: Permitir espacios en los path de los fondos de pantalla 2022-02-15 14:39:46 -03:00
e6f84791db river: El foco sigue al cursor 2022-02-15 14:39:30 -03:00
c88d4425d1 Revert "mono-light: Hacer acento más obvio"
This reverts commit 921bc2336c.
2022-02-12 20:04:41 +00:00
24506e18de fuzzel: Usar texto contrastante en mono* 2022-02-11 22:25:11 -03:00
978b7ee7f5 foot: Usar selenized-black en mono 2022-02-11 22:24:55 -03:00
d642063b7a river: No cambiar opciones de input 2022-02-11 22:24:31 -03:00
8bb8c14ea3 kak: Usar modo oscuro si el tema es oscuro 2022-02-11 22:24:06 -03:00
5abc3f608a river: Desactivar poweralertd 2022-02-11 22:23:53 -03:00
e47b2c8170 yambar: Mostrar tags ocupados 2022-02-10 19:27:10 -03:00
3517a6c382 yambar: Numeros romanos y mostrar tags no usados 2022-02-10 19:23:35 -03:00
2173762397 buscar-archivo: Usar handlr en vez de xdg-open 2022-02-09 19:57:08 -03:00
ada064f576 buscar-archivos: Limpiar archivo temporal 2022-02-09 19:56:59 -03:00
d9ae70be7f buscar-archivos: Ventana grande 2022-02-09 19:56:46 -03:00
7ebab29013 buscar-archivos: Usar ripgrep 2022-02-09 19:56:37 -03:00
8b6d382191 kak: Ignorar .git en FZF 2022-02-09 19:56:08 -03:00
b72cf841fd river: No sobreescribir zoom 2022-02-09 13:43:26 -03:00
231f605a76 river: Reducir teclas 2022-02-09 13:16:32 -03:00
44bd790fd5 Cambiar a JetBrains Mono 2022-02-09 13:14:45 -03:00
80ab6cc6a9 yambar: Achicar 2022-02-09 13:14:06 -03:00
8e052f41b0 river: Desactivar river-tag-overlay 2022-02-09 13:13:05 -03:00
eb12966ca2 Revert "river: Desactivar yambar"
This reverts commit 1f230d99c5.
2022-02-09 13:12:36 -03:00
ac1467cd59 river-tag-overlay: No usar texto 2022-02-09 12:57:34 -03:00
d4e2e8c8c9 pass-fuzzel.desktop 2022-02-09 12:55:58 -03:00
9db08412ea pass-fuzzel: Escribir contraseña en vez de copiar 2022-02-09 12:55:38 -03:00
aa7b92458f river: Agrandar padding 2022-02-09 12:55:15 -03:00
921bc2336c mono-light: Hacer acento más obvio 2022-02-09 12:54:26 -03:00
1759f33741 fnott: Menos padding 2022-02-09 12:54:06 -03:00
54f8e8911a kak: No pegar con newline al final 2022-02-09 12:53:49 -03:00
e59ffa4746 Revert "river: Desactivar river-tag-overlay"
This reverts commit 774ee90108.
2022-02-09 12:53:44 -03:00
1f230d99c5 river: Desactivar yambar 2022-02-09 12:53:35 -03:00
a71081ff2a zsh: Invertir PS1 2022-02-07 16:41:49 -03:00
04cea0b2df zsh: Permitir comentarios en la shell 2022-02-07 16:35:49 -03:00
2f38e63497 kak: Cambiar manejo de buffers 2022-02-06 23:58:29 -03:00
001bf7c3db pass-fuzzel 2022-02-06 23:53:50 -03:00
e1a580e7dc fuzzel: Hacer fuzzel-run ejecutable 2022-02-06 23:52:37 -03:00
eb21ee309b Borrar fuzzel-run ya que es autogenerado 2022-02-06 18:51:42 -03:00
a53c388db6 river: Cambiar padding y borde 2022-02-06 18:51:24 -03:00
7410511054 Actualizar plugins de kak y nvim 2022-02-06 18:50:43 -03:00
9e9427813d yambar: Mostrar batería cuando está al limite 2022-02-06 18:50:19 -03:00
9bedffb533 kak: Usar mi fork de fzf.kak 2022-02-03 13:37:20 -03:00
cc5877058a kakrc: Arreglar fzf_terminal_command 2022-02-03 13:37:09 -03:00
754317859c zsh: Desactivar autocompletación de menú 2022-02-03 13:34:01 -03:00
0bce60d17e foot: Cambiar tamaño 2022-02-03 13:33:48 -03:00
d39c1dfbdc kak: Modo claro en FZF 2022-01-31 16:16:11 -03:00
f94b158f65 foot: Hacer ventana más grande por defecto
Para cuando se abre flotante
2022-01-31 16:13:44 -03:00
efcbfccefa kak & river: Usar una ventana flotante para FZF 2022-01-31 16:13:17 -03:00
2c8971bcd1 .profile: Usar modo claro en FZF 2022-01-31 16:13:01 -03:00
238a429c8f fontconfig: Volver a Inter 2022-01-27 16:09:57 -03:00
3282f59cd7 foot: Cambiar tamaño de tipografía 2022-01-27 16:09:38 -03:00
7fd75ce1e5 Cambiar tono de acento en mono-light y ajustar yambar 2022-01-27 16:00:21 -03:00
ba7404abf9 river: Restaurar gaps 2022-01-27 16:00:07 -03:00
92e5d25a00 river: Documentar que Mod4 es Super 2022-01-23 17:34:29 -03:00
5b7f1bd3a7 river: Definir tags UIOP 2022-01-21 21:45:13 -03:00
214a66b9a9 foot: Usar tamaños de pixeles 2022-01-20 13:14:01 -03:00
774ee90108 river: Desactivar river-tag-overlay 2022-01-20 13:13:52 -03:00
7ad941f63b kak: Formatear Go con goimports 2022-01-18 23:47:01 -03:00
d70132efec kak: Activar LSP para Go 2022-01-18 23:46:55 -03:00
3015f7922e foot: Cambiar tamaño 2022-01-18 23:46:41 -03:00
bc9cd2f1ea bash: Desactivar notificaciones OSC 777
Son buggy
2022-01-17 23:54:22 -03:00
da6219c026 Usar Inter Sans Condensed como tipografía sans-serif 2022-01-17 23:54:07 -03:00
99f6d81c69 pass-fuzzel 2022-01-17 23:54:01 -03:00
faffe6c108 Revert "Revert "Revert "Revert "Revert "Revert "Revert "river: desactivar yambar"""""""
This reverts commit 884b7aebbe.
2022-01-17 20:39:51 -03:00
d763c6b61c Revert "river: Volver a rivertile"
This reverts commit d6d83d813d.
2022-01-17 19:28:07 -03:00
19d0b78e9d Revert "Cambiar a Hack >.>"
This reverts commit 011089e086.
2022-01-17 00:04:14 -03:00
a6cc9cf8b5 bash: OSC 777 2022-01-14 23:08:50 -03:00
96a508ea2d bash: Poder usar C-s 2022-01-14 22:50:39 -03:00
607fa9c573 bash: GPG SSH agent 2022-01-14 22:46:21 -03:00
df697759e2 bash: Solo correr OSC 7 localmente 2022-01-14 22:46:13 -03:00
dce73d7f82 .inputrc 2022-01-14 22:45:40 -03:00
593089dcfe bash: Ordenar y OSC 7 2022-01-14 22:24:15 -03:00
153d5e897b bash: Añadir alias r 2022-01-14 22:18:23 -03:00
4b2555e031 bash 2022-01-14 22:16:14 -03:00
011089e086 Cambiar a Hack >.> 2022-01-13 18:48:29 -03:00
b3740bc428 fnott: Agregar a themer y reproducir sonido 2022-01-13 18:48:03 -03:00
375043423e river-tag-overlay: No usar negrita 2022-01-13 00:16:18 -03:00
c0a0522597 river-tag-overlay: Mejorar colores 2022-01-13 00:15:34 -03:00
4d88c4cdee fuzzel: Usar monospace 2022-01-13 00:08:26 -03:00
b495d57616 river-tag-overlay: Achicar 2022-01-13 00:07:01 -03:00
2e1a5adece Revert "river: Desactivar poweralertd"
This reverts commit 07dd77516a.
2022-01-11 23:07:35 -03:00
ad308e78ea Revert "river: desactivar river-tag-overlay"
This reverts commit b230bc6329.
2022-01-11 23:06:28 -03:00
884b7aebbe Revert "Revert "Revert "Revert "Revert "Revert "river: desactivar yambar""""""
This reverts commit 57a20f0cce.
2022-01-11 23:05:46 -03:00
e487c99210 senpai: Mostrar mensaje cuando llega una notificación
Creo que esto funcionaba con bash pero estamos usando la shell de sistema que puede no ser bash
2022-01-11 12:09:40 -03:00
c8bbff3aee Revert ".profile: EDITOR=nvim :P"
This reverts commit cbadc34d4a.
2022-01-07 14:44:57 -03:00
eca86dae55 nvim: relativenumber 2022-01-07 14:44:41 -03:00
57633a111d nvim: Borrar fzf (instalado via sistema), rose-pine y yami 2022-01-06 21:14:08 -03:00
cbadc34d4a .profile: EDITOR=nvim :P 2022-01-06 21:12:21 -03:00
b53dd311ac nvim: Desactivar tsserver y svelte(-language-server) 2022-01-06 21:12:10 -03:00
75f4cafeb5 nvim: Limpiar y hacer mas oscuros los comentarios 2022-01-06 21:11:55 -03:00
789ab805f8 kak: Cambiar forma que se manejan los buffers 2022-01-06 21:09:32 -03:00
c8f58914ca kak: Siempre mostrar 5 líneas de contexto 2022-01-06 21:09:16 -03:00
d8cea51e45 kak: Hacer que los grises sean menos oscuros 2022-01-06 21:08:46 -03:00
7c774db4af Cambiar a Input Mono Narrow 2022-01-06 21:08:32 -03:00
a326e3e2d0 Revert "nvim: borrar config de nvim"
This reverts commit 749c1055d1.
2022-01-06 21:03:57 -03:00
db38e5eea1 kak: Arreglar Sleuth
Antes no se corría por defecto porque esperaba a que se corra algún comando de smarttab para que se cargue el modulo.
2022-01-03 15:15:21 -03:00
ff75f27150 fontconfig: Cambiar monospace a Iosekva Term 2022-01-03 15:06:48 -03:00
9adfe3ab5a Revert "fuzzel: Reactivar iconos"
This reverts commit 3ae89a8827.
2022-01-03 15:06:28 -03:00
3ae89a8827 fuzzel: Reactivar iconos 2022-01-03 00:35:28 -03:00
58e9938c22 Revert "kak: Activar LSP inlay diagnostics"
This reverts commit e5002293dd.
2022-01-02 17:56:34 -03:00
b26616dc51 kak: Mostrar code actions 2022-01-02 17:56:07 -03:00
e5002293dd kak: Activar LSP inlay diagnostics 2022-01-02 17:27:12 -03:00
116241fbd5 kak: Separar sleuth a otro archivo 2022-01-02 17:27:00 -03:00
b77c2e0269 kak: Limpiar 2022-01-02 17:26:37 -03:00
9a07c05482 foot.ini: Setear tamaño por tamaño físico 2022-01-02 17:25:41 -03:00
d6d83d813d river: Volver a rivertile 2022-01-02 17:25:29 -03:00
07dd77516a river: Desactivar poweralertd 2022-01-02 17:25:16 -03:00
f1d879a8c0 bg_notify: Chequear por REMOTE bien 2022-01-02 15:21:57 -03:00
fa5aa41ebb foot: cambiar padding 2022-01-02 14:38:16 -03:00
603fb8c2c7 kak: colores: Titulos en negrita 2022-01-02 14:38:00 -03:00
63a0a7168d Revert "yambar: números romanos"
This reverts commit b43cac546b.
2022-01-01 16:15:31 -03:00
ad9d10b2c5 river: bindear comandos de fnott 2021-12-31 16:36:38 -03:00
37ad595bfb fnott: usar fuzzel-run para que use el tema 2021-12-31 16:36:28 -03:00
3dc5b11216 river: Hacer que los bordes sean levemente más grandes 2021-12-31 15:48:48 -03:00
75112c49ea yambar: setear el accent al color accent de verdad 2021-12-31 15:46:05 -03:00
b230bc6329 river: desactivar river-tag-overlay 2021-12-31 15:45:34 -03:00
6cfe0f6818 river: sacar padding 2021-12-31 15:45:22 -03:00
4ceb3e80f0 river: reemplazar mako con fnott 2021-12-31 15:44:51 -03:00
57a20f0cce Revert "Revert "Revert "Revert "Revert "river: desactivar yambar"""""
This reverts commit 9aec86f864.
2021-12-31 15:14:01 -03:00
33c1a33c76 river: menos padding en river-tag-overlay 2021-12-30 17:15:47 -03:00
cd886ca488 foot: sacar padding 2021-12-30 17:12:53 -03:00
0aae9a35c9 river: ponerle colores a river-tag-overlay 2021-12-30 17:06:06 -03:00
3a7400a3d1 Revert "Cambiar font a Hack"
This reverts commit 80e3261b45.
2021-12-30 17:05:52 -03:00
9aec86f864 Revert "Revert "Revert "Revert "river: desactivar yambar""""
This reverts commit 579e0de335.
2021-12-30 13:35:52 -03:00
b43cac546b yambar: números romanos 2021-12-30 13:35:34 -03:00
487ab720f9 kak: <c-p> para ir para adelante en el historial 2021-12-30 13:30:54 -03:00
80e3261b45 Cambiar font a Hack 2021-12-30 13:30:45 -03:00
579e0de335 Revert "Revert "Revert "river: desactivar yambar"""
This reverts commit 3173bb5c5a.
2021-12-30 13:30:07 -03:00
ab5290d677 Revert "yambar: pa bajo"
This reverts commit 0a57c42d6b.
2021-12-30 13:27:30 -03:00
67949ccddc kak: activar kak-lsp para zig 2021-12-29 16:36:41 -03:00
51b11ae78c river: matar mako antes de empezar 2021-12-29 16:35:33 -03:00
25d7252e21 htop: actualizar htop 2021-12-29 16:35:21 -03:00
5d69974359 zsh: usar source en vez de . 2021-12-27 13:03:26 -03:00
f6601127bc foot: fijar tamaño por pixeles en vez de tamaño físico 2021-12-27 13:03:16 -03:00
38da6d9b46 river: outer padding 2021-12-27 13:02:55 -03:00
a9c933cbb1 zsh: logear river 2021-12-27 10:37:48 -03:00
cf1494996f zsh: mover .profile dinamico a .profile 2021-12-27 10:37:34 -03:00
5bc610eaa3 zsh: chequear bien REMOTE=false 2021-12-26 17:42:45 -03:00
cb30cdffd6 zsh: defaultear a REMOTE=true 2021-12-26 17:39:57 -03:00
dd48b91b2e README: agregar dependencias 2021-12-24 12:11:43 -03:00
f00f2352ea zsh: arreglar osc_7 2021-12-24 12:10:07 -03:00
71c19d60ea .profile.sutty-vm 2021-12-24 12:09:53 -03:00
50209f489e zsh: bg_notify: mostrar hostname si es remoto 2021-12-22 21:22:09 -03:00
a40f12f305 zsh: activar bg_notify en remotos 2021-12-22 21:18:55 -03:00
332905dba1 README 2021-12-22 21:16:16 -03:00
f1523d59b6 zsh: importar .profile locales bien 2021-12-22 21:14:33 -03:00
62482373f1 zsh: solo usar OSC 7 cuando es local 2021-12-22 21:13:25 -03:00
bda49307bc zsh: agregar scripts 2021-12-22 21:12:11 -03:00
749c1055d1 nvim: borrar config de nvim 2021-12-22 20:54:37 -03:00
1bf8cf6b71 zshrc/zprofile + profile específico de cada host 2021-12-22 20:52:52 -03:00
3173bb5c5a Revert "Revert "river: desactivar yambar""
This reverts commit 1a3193af97.
2021-12-22 18:33:33 -03:00
2b3c59fdf2 Script que manda una notificación sobre el sistema 2021-12-22 18:33:08 -03:00
49 changed files with 806 additions and 164 deletions

11
.bash_profile Executable file
View file

@ -0,0 +1,11 @@
. ~/.profile
if ! "$REMOTE" && test "$(tty)" = /dev/tty1; then
mkdir -p "$HOME/.local/share/river"
log="$HOME/.local/share/river/$(date +%Y-%m-%d@%H:%M:%S).log"
exec env \
XDG_CURRENT_DESKTOP=river \
XDG_SESSION_DESKTOP=river \
dbus-run-session river -log-level debug >"$log" 2>&1
fi
. ~/.bashrc

52
.bashrc Normal file
View file

@ -0,0 +1,52 @@
source ~/.profile
# ------------------------------------------------------------------------------
# History config
export HISTSIZE=10000
export HISTFILESIZE=10000
shopt -s histappend # Append to history file instead of overwriting
shopt -s cmdhist # Write a multi line command in a single line
PROMPT_COMMAND="history -a;$PROMPT_COMMAND" # Save history on every command
stty -ixon # Make bash receive C-s for history search
# ------------------------------------------------------------------------------
# Aliases
alias gitdf='git --git-dir=$HOME/.config/dotfiles/ --work-tree=$HOME'
alias ssh='TERM=xterm-256color ssh'
alias e="$EDITOR"
alias r="trash -r"
# ------------------------------------------------------------------------------
# Notify terminal of current working directory
# https://codeberg.org/dnkl/foot/wiki#user-content-bash-and-zsh
_urlencode() {
local length="${#1}"
for (( i = 0; i < length; i++ )); do
local c="${1:$i:1}"
case $c in
%) printf '%%%02X' "'$c" ;;
*) printf "%s" "$c" ;;
esac
done
}
osc7_cwd() {
printf '\e]7;file://%s%s\e\\' "$HOSTNAME" "$(_urlencode "$PWD")"
}
if ! "$REMOTE"; then
PROMPT_COMMAND="osc7_cwd;$PROMPT_COMMAND"
fi
# ------------------------------------------------------------------------------
# GPG SSH agent
if ! "$REMOTE"; then
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
# Start if not started
gpg-agent --daemon 2>/dev/null
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
fi

32
.config/README.md Normal file
View file

@ -0,0 +1,32 @@
# Puntos
Mis archivos de configuración
## Aplicar
Para bajar la repo y poner los archivos donde van, hacer esto:
```sh
git clone --bare --recurse-submodules https://cgit.nulo.in/puntos ~/.config/dotfiles
git --git-dir=$HOME/.config/dotfiles --work-tree=$HOME checkout
```
Después cambiamos la shell por zsh:
```sh
chsh -s /bin/zsh
```
Ya en zsh, podemos usar `gitdf` para manejar la repo.
```sh
gitdf submodule update # Descargar (o actualizar) plugins
```
## Dependencias
Probablemente incompleto.
### Alpine
```sh
apk add zsh zsh-vcs fzf kakoune
```

BIN
.config/fnott/juntos.mp3 Normal file

Binary file not shown.

View file

@ -82,10 +82,10 @@
<!-- Set default monospace font -->
<alias>
<family>monospace</family>
<prefer><family>IBM Plex Mono</family></prefer>
<prefer><family>Input Mono Narrow</family></prefer>
</alias>
<alias>
<family>IBM Plex Mono</family>
<family>Input Mono Narrow</family>
<default><family>monospace</family></default>
</alias>

View file

@ -1,6 +1,6 @@
# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
htop_version=3.1.1
htop_version=3.1.2
config_reader_min_version=2
fields=0 48 39 40 2 46 47 1
sort_key=46

View file

@ -1,7 +1,7 @@
evaluate-commands %sh{
black="rgb:000000"
dark_gray="rgb:333333"
gray="rgb:666666"
gray="rgb:474747"
white="rgb:FFFFFF"
whiteish="rgb:DDDDDD"
@ -31,7 +31,7 @@ evaluate-commands %sh{
# For markup
set-face global title +b
set-face global header Default
set-face global header +b
set-face global block Default
set-face global mono Default
set-face global link +u

View file

@ -1,51 +1,60 @@
# add-highlighter global/ number-lines -relative -hlcursor
add-highlighter global/number number-lines -relative -hlcursor
add-highlighter global/ wrap -word
add-highlighter global/search dynregex '%reg{/}' 0:MatchingChar
add-highlighter global/ show-matching
set global scrolloff 5,5
set-option global ui_options terminal_assistant=off
colorscheme grayscale-superiority
eval %sh{
. ~/.config/river/colors
if test "$dark" = true; then
echo "colorscheme selenized-black"
else
echo "colorscheme grayscale-superiority"
fi
}
#source "%val{config}/todo-txt.kak"
# eval %sh{kak-lsp --kakoune -s $kak_session}
# set global lsp_cmd "kak-lsp -s %val{session} -vvv --log /tmp/kak-lsp.log"
# set global lsp_diagnostic_line_error_sign '║'
# set global lsp_diagnostic_line_warning_sign '┊'
# set global lsp_hover_anchor true
# set global lsp_auto_highlight_references true
# #set global lsp_hover_max_lines 3
# hook global WinSetOption filetype=(go|javascript|typescript|zig) %{
# map buffer user r ': lsp-rename-prompt<ret>' -docstring "LSP Rename"
# map buffer user a ': lsp-code-actions<ret>' -docstring "LSP Code actions"
# map buffer user , ': lsp-hover<ret>' -docstring "LSP hover"
# map buffer user l ': enter-user-mode lsp<ret>' -docstring "LSP mode"
# #set buffer idle_timeout 200
# #lsp-inlay-diagnostics-enable buffer
# lsp-enable-window
# #lsp-auto-hover-enable
# lsp-auto-signature-help-enable
# }
# hook global KakEnd .* lsp-exit
eval %sh{kak-lsp --kakoune -s $kak_session}
set global lsp_cmd "kak-lsp -s %val{session} -vvv --log /tmp/kak-lsp.log"
set global lsp_diagnostic_line_error_sign '║'
set global lsp_diagnostic_line_warning_sign '┊'
set global lsp_hover_anchor true
set global lsp_auto_show_code_actions true
set global lsp_auto_highlight_references true
hook global WinSetOption filetype=(zig|go) %{
map buffer user r ': lsp-rename-prompt<ret>' -docstring "LSP Rename"
map buffer user a ': lsp-code-actions<ret>' -docstring "LSP Code actions"
map buffer user , ': lsp-hover<ret>' -docstring "LSP hover"
map buffer user l ': enter-user-mode lsp<ret>' -docstring "LSP mode"
lsp-enable-window
lsp-auto-signature-help-enable
}
hook global KakEnd .* lsp-exit
hook global WinSetOption filetype=(javascript|typescript|json|css) %{
set-option buffer formatcmd %sh{ echo prettier --stdin-filepath $kak_buffile }
hook buffer BufWritePre .* format-buffer
}
source "%val{config}/plugins/zig.kak/rc/zig.kak"
hook global WinSetOption filetype=zig %{
set-option buffer formatcmd "zig fmt --stdin"
hook buffer BufWritePre .* format-buffer
}
hook global WinSetOption filetype=go %{
set-option buffer formatcmd "goimports"
hook buffer BufWritePre .* format-buffer
}
source "%val{config}/plugins/zig.kak/rc/zig.kak"
#hook global WinSetOption filetype=zig %{ zig-auto-run buffer }
hook global KakBegin .* %{ set-option global termcmd "footclient sh -c" }
map -docstring "yank the selection into the clipboard" global user y "<a-|> wl-copy<ret>"
map -docstring "paste the clipboard" global user p "<a-!> wl-paste<ret>"
map -docstring "paste the clipboard" global user p "<a-!> wl-paste --no-newline<ret>"
map -docstring "comment" global user c ": comment-line<ret>"
map -docstring "stop searching" global user h ": set-register slash ''<ret>"
@ -63,28 +72,7 @@ hook global ModuleLoaded smarttab %{
set-option global softtabstop 4
}
# https://github.com/mawww/kakoune/issues/2108#issuecomment-721313321
define-command sleuth -docstring 'Heuristically set buffer options' %{
try %{
evaluate-commands -draft %{
# Search the first indent level
execute-keys 'gg' '/' '^\h+' '<ret>'
# Tab vs. Space
# https://youtu.be/V7PLxL8jIl8
try %{
execute-keys '<a-k>' '\t' '<ret>'
noexpandtab
set-option buffer indentwidth 0
} catch %{
expandtab
set-option buffer indentwidth %val{selection_length}
set-option buffer softtabstop %val{selection_length}
}
}
}
}
source "%val{config}/sleuth.kak"
hook -group sleuth global BufOpenFile .* %{ sleuth }
hook -group sleuth global BufWritePost .* %{ sleuth }
@ -96,17 +84,24 @@ evaluate-commands %sh{
find -L "$kak_config/plugins/fzf.kak/rc/modules/" -type f -name '*.kak' -exec printf 'source "%s"\n' {} \;
}
hook global ModuleLoaded fzf %{
set-option global fzf_preview_pos 'up'
set-option global fzf_terminal_command 'fzf-terminal kak -c %val{session} -e "%arg{@}"'
set-option global fzf_default_opts '--color=light'
}
hook global ModuleLoaded fzf-file %{
set-option global fzf_file_command 'rg'
set-option global fzf_file_command 'rg -L --hidden --files --glob !.git'
}
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 'grep files' global user g ': fzf-mode<ret>g'
map -docstring 'search buffers' global user b ': fzf-mode<ret>b'
map -docstring 'grep files' global user g ': fzf-mode<ret>g'
define-command fzf-terminal -params 1.. -shell-completion %{
set-option global termcmd "footclient --app-id=fzf sh -c"
wayland-terminal %arg{@}
set-option global termcmd "footclient sh -c"
}
# ------------
# Buffer switching
@ -114,8 +109,6 @@ map -docstring 'search buffers' global user b ': fzf-mode<ret>b'
source "%val{config}/plugins/kakoune-buffers/buffers.kak"
hook global WinDisplay .* info-buffers
map global normal ^ q
map global normal <a-^> Q
@ -124,5 +117,7 @@ map global normal Q B
map global normal <a-q> <a-b>
map global normal <a-Q> <a-B>
map global normal b ':enter-buffers-mode<ret>' -docstring 'buffers…'
map global normal b ':pick-buffers<ret>' -docstring 'pick buffers'
map global normal B ':enter-user-mode -lock buffers<ret>' -docstring 'buffers (lock)…'
map global normal '<c-p>' '<tab>' -docstring 'jump forward'

@ -1 +1 @@
Subproject commit 68f21eb78638e5a55027f11aa6cbbaebef90c6fb
Subproject commit 62a3de575cceeaf9f556b824123a418def8bea7b

@ -1 +1 @@
Subproject commit 06ec64885d7700be5c14c4adb2d36565bbdfc59d
Subproject commit 54e66fcb6adf247e6ea8465ec68fe507eb27f25f

22
.config/kak/sleuth.kak Normal file
View file

@ -0,0 +1,22 @@
# https://github.com/mawww/kakoune/issues/2108#issuecomment-721313321
define-command sleuth -docstring 'Heuristically set buffer options' %{
try %{
evaluate-commands -draft %{
# Search the first indent level
execute-keys 'gg' '/' '^\h+' '<ret>'
# Tab vs. Space
# https://youtu.be/V7PLxL8jIl8
try %{
execute-keys '<a-k>' '\t' '<ret>'
noexpandtab
set-option buffer indentwidth 0
} catch %{
expandtab
set-option buffer indentwidth %val{selection_length}
set-option buffer softtabstop %val{selection_length}
}
}
}
}

View file

@ -4,14 +4,20 @@ set hidden " Do not save when switching buffers
set inccommand=nosplit " Incremental live completion
set tabstop=4 shiftwidth=4 " 4 space \t
set relativenumber cursorline cursorlineopt=number lazyredraw
set ignorecase smartcase
set updatetime=250
set termguicolors
" colorscheme rose-pine
colorscheme paige
" autocmd ColorScheme * highlight! Normal guibg=NONE
highlight! Comment guifg=#474747 guibg=#ffffff
highlight! htmlComment guifg=#474747 guibg=#ffffff
highlight! htmlCommentPart guifg=#474747 guibg=#ffffff
highlight! gitcommitComment guifg=#474747 guibg=#ffffff
highlight! CursorLineNr ctermfg=232 ctermbg=254 gui=bold guifg=#080808 guibg=#cccccc
set completeopt=menu,menuone,noselect
@ -45,7 +51,7 @@ local on_attach = function(client, bufnr)
buf_set_keymap('n', '<space>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts)
end
local servers = { 'zls', 'gopls', 'tsserver', 'svelte' }
local servers = { 'zls', 'gopls' }
for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup {
on_attach = on_attach,

@ -1 +0,0 @@
Subproject commit e4c3ecc57e99f4037199f11b384a7f8758d1a0ff

@ -1 +1 @@
Subproject commit d6aa21476b2854694e6aa7b0941b8992a906c5ec
Subproject commit 1f7bfa4007043c30027b2cd79625e8aac5cff1f9

@ -1 +1 @@
Subproject commit 3a22ac6f8d87d42f89b9de791053c98b803f1b6d
Subproject commit 531751ef03d77bf094f1fc07844b6c03ec4862bb

@ -1 +0,0 @@
Subproject commit e9bf877ded422ce4323980c8347ca8578fe3b408

@ -1 +1 @@
Subproject commit 349340debb34f6302931f0eb7139b2c11dfdf427
Subproject commit 627308e30639be3e2d5402808ce18690557e8292

@ -1 +1 @@
Subproject commit 2831f4872431685d28fbe3e567cd539a455fe750
Subproject commit 430bc227654abc3eb5e27a9052a857344ca08cdc

@ -1 +1 @@
Subproject commit 38bd4010110614822cde523ebc5724963312ab63
Subproject commit 65ade2453342062010386e226eaa754889e2b557

@ -1 +1 @@
Subproject commit 5f88e5a0fe7dcece0008dae3453edbd99153a042
Subproject commit 3a37f2a2414fa4c20c70e67e978977c1e2a43187

@ -1 +0,0 @@
Subproject commit 716fe223a430a1379ef1e4bec84348a2f07430fd

@ -1 +1 @@
Subproject commit fb534e7d12be7e529f79ad5ab99c08dc99f53294
Subproject commit 0762d89c24f5a1da6bf26ca83f3719c379008ff9

View file

@ -8,29 +8,26 @@ riverctl spawn "/usr/libexec/xdg-desktop-portal-wlr"
brillo -I
riverctl spawn "pgrep -x foot >/dev/null || foot --server"
riverctl spawn "pgrep -x mako >/dev/null || mako"
if test -f ~/.config/river/coordenadas; then
riverctl spawn "pgrep -x wlsunset >/dev/null || wlsunset $(cat ~/.config/river/coordenadas)"
else
echo "¡Falta ~/.config/river/coordenadas!"
fi
riverctl spawn "pgrep -x syncthing >/dev/null || syncthing -no-browser"
riverctl spawn "pgrep -x river-tag-overl >/dev/null || river-tag-overlay --anchors=1:0:0:0"
# yambar spawned by load-colors
riverctl spawn "pgrep -x kanshi >/dev/null || kanshi"
riverctl spawn "pgrep -x poweralertd >/dev/null || poweralertd"
riverctl set-repeat 30 290
riverctl xcursor-theme Adwaita
riverctl input "2:10:TPPS/2_IBM_TrackPoint" pointer-accel 0.5
riverctl input 2:7:SynPS/2_Synaptics_TouchPad tap enabled
riverctl focus-follows-cursor normal
riverctl float-filter-add title Picture-in-Picture
riverctl float-filter-add title "Firefox — Sharing Indicator"
riverctl float-filter-add app-id fzf
~/.config/river/keys
riverctl spawn "pgrep -x stacktile >/dev/null || stacktile --per-tag-config --drop-empty-configs --outer-padding=0 --inner-padding=6 --primary-sublayout=stack"
riverctl spawn "pgrep -x stacktile >/dev/null || stacktile --per-tag-config --drop-empty-configs --primary-sublayout=stack --inner-padding=0 --outer-padding=0"
riverctl default-layout stacktile

View file

@ -1,6 +1,6 @@
#!/bin/sh
mod="Mod4"
mod="Mod4" # Super
riverctl map normal $mod Q close
@ -57,39 +57,42 @@ riverctl map-pointer normal $mod BTN_RIGHT resize-view
define_tag() {
riverctl map normal $mod $2 set-focused-tags $1
riverctl map normal $mod+Shift $2 set-view-tags $1
riverctl map normal $mod+Control $2 toggle-focused-tags $1
riverctl map normal $mod+Shift+Control $2 toggle-view-tags $1
riverctl map normal $mod+Alt $2 toggle-focused-tags $1
riverctl map normal $mod+Shift+Alt $2 toggle-view-tags $1
}
define_tag $((1 << 0)) 1
define_tag $((1 << 1)) 2
define_tag $((1 << 2)) 3
define_tag $((1 << 3)) 4
define_tag $((1 << 4)) 5
define_tag $((1 << 5)) 6
define_tag $((1 << 6)) 7
define_tag $((1 << 7)) 8
define_tag $((1 << 8)) 9
define_tag $((1 << 0)) Z
define_tag $((1 << 1)) X
define_tag $((1 << 2)) C
define_tag $((1 << 3)) B
define_tag $((1 << 4)) N
define_tag $((1 << 5)) M
define_tag $((1 << 6)) less
define_tag $((1 << 7)) greater
define_tag $((1 << 8)) question
all_tags=$(((1 << 32) - 1))
riverctl map normal $mod 0 set-focused-tags $all_tags
riverctl map normal $mod+Shift 0 set-view-tags $all_tags
riverctl map normal $mod Space toggle-float
riverctl map normal $mod F toggle-fullscreen
riverctl map normal $mod G toggle-fullscreen
riverctl map normal $mod Up send-layout-cmd stacktile "primary_position top"
riverctl map normal $mod Right send-layout-cmd stacktile "primary_position right"
riverctl map normal $mod Down send-layout-cmd stacktile "primary_position bottom"
riverctl map normal $mod Left send-layout-cmd stacktile "primary_position left"
riverctl map normal $mod M send-layout-cmd stacktile "all_primary toggle"
riverctl map normal $mod H send-layout-cmd stacktile "all_primary toggle"
riverctl declare-mode passthrough
riverctl map normal $mod F11 enter-mode passthrough
riverctl map passthrough $mod F11 enter-mode normal
riverctl map normal $mod Z spawn 'pamixer --default-source --toggle-mute'
riverctl map normal $mod grave spawn 'pamixer --default-source --toggle-mute'
riverctl map normal $mod A spawn 'fnottctl actions'
riverctl map normal $mod S spawn 'fnottctl dismiss'
for mode in normal locked
do
@ -111,7 +114,7 @@ done
riverctl map normal $mod+Shift N spawn lock
riverctl map normal $mod+Shift M spawn 'lock && doas pm-suspend'
riverctl map normal $mod+Shift T spawn footclient
riverctl map normal $mod+Shift Return spawn fuzzel-run
riverctl map normal $mod+Shift backslash spawn buscar-archivos
riverctl map normal $mod I spawn footclient
riverctl map normal $mod U spawn fuzzel-run
riverctl map normal $mod backslash spawn buscar-archivos
riverctl map normal None Print spawn 'grimshot copy area'

View file

@ -4,9 +4,11 @@
riverctl background-color 0x$background
riverctl border-color-focused 0x$border_focused
riverctl border-color-unfocused 0x$border_unfocused
riverctl border-width 3
riverctl border-width 5
riverctl spawn 'killall yambar ; yambar'
riverctl spawn "killall fnott >/dev/null ; fnott"
if test -n "$bg"; then
riverctl spawn "killall swaybg ; swaybg --image $bg"
riverctl spawn "killall swaybg ; swaybg --image '$bg'"
fi

View file

@ -1,6 +1,6 @@
#!/bin/sh
escape() {
printf "%s" "$1" | sed 's#\#\\#g'
printf "%s" "$1" | sed 'sx\\x\\\\xg'
}
notify-send "[$BUFFER] $SENDER" "$(escape "$MESSAGE")"

248
.config/sway/config Normal file
View file

@ -0,0 +1,248 @@
### Variables
#
set $mod Mod4
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term footclient
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu fuzzel-run
font Inter Medium 10
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
output * bg "~/.config/river/wallpapers/Abyss Reflections - Cat ears.png" fill
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
exec swayidle -w \
timeout 300 'swaylock -f -c ffffff' \
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c ffffff'
bindsym $mod+m exec swaylock
bindsym $mod+Shift+m exec "swaylock -f && doas su -c 'echo mem > /sys/power/state'"
### Input configuration
#
input * {
repeat_delay 290
repeat_rate 30
}
### Key bindings
#
# Basics:
#
# Start a terminal
bindsym $mod+Return exec $term
# Kill focused window
bindsym $mod+Shift+q kill
# Start your launcher
bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
#
# Moving around:
#
# Move your focus around
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
bindsym $mod+Control+$left move workspace to output left
bindsym $mod+Control+$down move workspace to output down
bindsym $mod+Control+$up move workspace to output up
bindsym $mod+Control+$right move workspace to output right
bindsym $mod+Control+Left move workspace to output left
bindsym $mod+Control+Down move workspace to output down
bindsym $mod+Control+Up move workspace to output up
bindsym $mod+Control+Right move workspace to output right
#
# Workspaces:
#
# Switch to workspace
bindsym $mod+u workspace 1:u
bindsym $mod+i workspace 2:i
bindsym $mod+o workspace 3:o
bindsym $mod+p workspace 4:p
bindsym $mod+y workspace 5:y
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
# Move focused container to workspace
bindsym $mod+Shift+u move container to workspace 1:u
bindsym $mod+Shift+i move container to workspace 2:i
bindsym $mod+Shift+o move container to workspace 3:o
bindsym $mod+Shift+p move container to workspace 4:p
bindsym $mod+Shift+y move container to workspace 5:y
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
#
# Layout stuff:
#
bindsym $mod+w layout toggle split tabbed stacking
bindsym $mod+e layout toggle split
bindsym $mod+v split toggle
bindsym $mod+s sticky toggle
# Make the current focus fullscreen
bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
bindsym $mod+space focus mode_toggle
# Move focus to the parent container
bindsym $mod+a focus parent
bindsym $mod+Shift+a focus child
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
bindsym $left resize shrink width 10px
bindsym $down resize grow height 10px
bindsym $up resize shrink height 10px
bindsym $right resize grow width 10px
# Ditto, with arrow keys
bindsym Left resize shrink width 10px
bindsym Down resize grow height 10px
bindsym Up resize shrink height 10px
bindsym Right resize grow width 10px
# Return to default mode
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
#
# Status Bar:
#
bar {
position top
status_command i3status
status_edge_padding 6
status_padding 0
separator_symbol " "
workspace_min_width 30
strip_workspace_numbers yes
colors {
statusline #000000
background #ffffff
focused_workspace #000000 #000000 #ffffff
active_workspace #eca6ff #eca6ff #ffffff
inactive_workspace #dfdfdf #dfdfdf #000000
}
}
client.focused #000000 #000000 #ffffff
client.focused_inactive #eca6ff #eca6ff #000000
client.unfocused #dfdfdf #dfdfdf #000000
bindsym $mod+z exec fnottctl dismiss
bindsym $mod+x exec fnottctl actions
bindsym Print exec 'grimshot copy area'
bindsym --locked XF86AudioRaiseVolume exec 'pamixer -i 5'
bindsym --locked XF86AudioLowerVolume exec 'pamixer -d 5'
bindsym --locked XF86AudioMute exec 'pamixer --toggle-mute'
bindsym --locked XF86AudioMicMute exec 'pamixer --default-source --toggle-mute'
bindsym --locked $mod+c exec 'pamixer --default-source --toggle-mute'
# https://github.com/altdesktop/playerctl
bindsym --locked XF86AudioMedia exec 'playerctl play-pause'
bindsym --locked XF86AudioPlay exec 'playerctl play-pause'
bindsym --locked XF86AudioPrev exec 'playerctl previous'
bindsym --locked XF86AudioNext exec 'playerctl next'
bindsym --locked XF86MonBrightnessUp exec 'brillo -A 5; brillo -O'
bindsym --locked XF86MonBrightnessDown exec 'brillo -U 5; brillo -O'
default_border pixel 4
smart_borders on
focus_follows_mouse no
for_window [title="."] inhibit_idle fullscreen
for_window [app_id="fzf"] floating enable
exec brillo -I
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
exec pipewire
exec /usr/libexec/xdg-desktop-portal-wlr
exec "foot --server"
exec "wlsunset $(cat ~/.config/river/coordenadas)"
exec "pgrep -x syncthing >/dev/null || syncthing -no-browser"
exec kanshi
exec fnott

62
.config/themer/fnott.ini.sh Executable file
View file

@ -0,0 +1,62 @@
#!/bin/sh
set -e
# https://github.com/jan-warchol/selenized/blob/e93e0d9fb47c7485f18fa16f9bdb70c2ee7fb5db/the-values.md
echo "# Autogenerated by ~/.config/themer/fnott.ini.sh
edge-margin-vertical=5
edge-margin-horizontal=5
padding-vertical=10
padding-horizontal=10
notification-margin=5
selection-helper=fuzzel-run -d
play-sound=mpv \${filename}
border-color=909090
border-size=0
title-font=sans serif:style=Italic:size=8
summary-font=sans serif:style=Bold:size=16
body-font=sans serif:size=12
" > ~/.config/fnott/fnott.ini
rose_pine () {
echo "
background=$base
title-color=$text
summary-color=$text
body-color=$text
" >> ~/.config/fnott/fnott.ini
}
mono () {
echo "
background=$backgroundish
title-color=$foreground
summary-color=$foreground
body-color=$foreground
" >> ~/.config/fnott/fnott.ini
}
if test "$1" = rose-pine; then
. ~/.config/themer/themes/rose-pine.sh
rose_pine
elif test "$1" = rose-pine-dawn; then
. ~/.config/themer/themes/rose-pine-dawn.sh
rose_pine
elif test "$1" = rose-pine-moon; then
. ~/.config/themer/themes/rose-pine-moon.sh
rose_pine
elif test "$1" = mono; then
. ~/.config/themer/themes/mono.sh
mono
elif test "$1" = mono-light; then
. ~/.config/themer/themes/mono-light.sh
mono
else
if test -n "$1"; then
echo "I don't know that theme"
else
echo "No theme specified"
fi
exit 1
fi

View file

@ -11,11 +11,13 @@ lines = 10000
hide-when-typing=yes
[main]
font=monospace:size=11
line-height=18
vertical-letter-offset=2
font=monospace:pixelsize=17
line-height=26px
vertical-letter-offset=4px
pad=4x4 center
pad=0x0
initial-window-size-chars=120x24
" > ~/.config/foot/foot.ini
rose_pine () {
@ -59,7 +61,7 @@ rose_pine () {
}
mono () {
if $dark; then
echo "include = /usr/share/foot/themes/tango" >> ~/.config/foot/foot.ini
echo "include = /usr/share/foot/themes/selenized-black" >> ~/.config/foot/foot.ini
else
echo "
[colors]

View file

@ -18,9 +18,9 @@ export accent=$iris
mono () {
echo "
export background=$background
export foreground=$foregroundish
export foreground=$foreground
export selection_background=$backgroundish
export selection_foreground=$foregroundish
export selection_foreground=$foreground
export border=$foreground
export accent=$foreground
" >> ~/.local/bin/fuzzel-run
@ -51,13 +51,14 @@ else
fi
echo "
exec fuzzel --terminal=footclient --font='Inter:style=Bold:size=11' \
exec fuzzel --terminal=footclient --font='monospace:size=11' \
--prompt='➦ ' \
--no-icons \
--width=20 \
--width=40 \
--background=\${background}ff --text-color=\${foreground}ff \
--match-color=\${accent}ff \
--selection-color=\${selection_background}ff --selection-text-color=\${selection_foreground}ff \
--horizontal-pad=12 \
--border-width=1 --border-color=\${border}ff --border-radius=2 \"\$@\"
" >> ~/.local/bin/fuzzel-run
chmod +x ~/.local/bin/fuzzel-run

View file

@ -15,14 +15,17 @@ rose_pine () {
fi
echo "
export background=$base
export foreground=$text
export border_focused=$border_focused
export border_unfocused=$border_unfocused
export dark=$dark
" >> ~/.config/river/colors
}
mono () {
test ! "$dark" = true && bg="export bg=~/.config/river/wallpapers/'Abyss Reflections - Cat ears.png'"
echo "
export background=$background
export foreground=$foreground
export border_focused=$accent
export border_unfocused=$backgroundish
export dark=$dark

View file

@ -1,7 +1,7 @@
#!/bin/sh
export background=ffffff
export backgroundish=cccccc
export backgroundish=dfdfdf
export foreground=000000
export foregroundish=333333
export accent=56949f
export accent=cf1bff
export dark=false

View file

@ -11,8 +11,9 @@ accent: &accent ${iris}ff
mono () {
echo "# Autogenerated by ~/.config/themer/yambar.sh
background: &bg ${background}ff
backgroundish: &bgish ${backgroundish}ff
foreground: &fg ${foreground}ff
accent: &accent ${foreground}ff
accent: &accent ${accent}ff
" > ~/.config/yambar/config.yml
}

View file

@ -1,12 +1,13 @@
bar:
height: 20
location: bottom
height: 16
location: top
layer: top
spacing: 8
right-margin: 8
background: *bg
foreground: *fg
font: Inter:style=Medium:size=14
font: sans-serif:size=12
left:
- river:
@ -14,9 +15,41 @@ bar:
base: &river_base
margin: 8
tag: id
values: {}
default: &river_default
default: {string: {text: "{id}"}}
values: &river_values
1: {string: {text: "I"}}
2: {string: {text: "II"}}
3: {string: {text: "III"}}
4: {string: {text: "IV"}}
5: {string: {text: "V"}}
6: {string: {text: "VI"}}
7: {string: {text: "VII"}}
8: {string: {text: "VIII"}}
9: {string: {text: "IX"}}
10: {empty: {}}
11: {empty: {}}
12: {empty: {}}
13: {empty: {}}
14: {empty: {}}
15: {empty: {}}
16: {empty: {}}
17: {empty: {}}
18: {empty: {}}
19: {empty: {}}
20: {empty: {}}
21: {empty: {}}
22: {empty: {}}
23: {empty: {}}
24: {empty: {}}
25: {empty: {}}
26: {empty: {}}
27: {empty: {}}
28: {empty: {}}
29: {empty: {}}
30: {empty: {}}
31: {empty: {}}
32: {empty: {}}
content:
map:
tag: state
@ -24,22 +57,38 @@ bar:
focused:
map:
<<: *river_base
default: {string: {text: "{id}", foreground: *bg}}
deco: {background: {color: *accent}}
values:
<<: *river_values
1: {string: {text: "I", foreground: *bg}}
2: {string: {text: "II", foreground: *bg}}
3: {string: {text: "III", foreground: *bg}}
4: {string: {text: "IV", foreground: *bg}}
5: {string: {text: "V", foreground: *bg}}
6: {string: {text: "VI", foreground: *bg}}
7: {string: {text: "VII", foreground: *bg}}
8: {string: {text: "VIII", foreground: *bg}}
9: {string: {text: "IX", foreground: *bg}}
unfocused:
map:
<<: *river_base
default: {string: {text: "{id}"}}
values:
<<: *river_values
invisible:
map:
tag: occupied
values:
false: {empty: {}}
true:
map:
deco: {background: {color: *bgish}}
<<: *river_base
default: {string: {text: "{id}"}}
values:
<<: *river_values
false:
map:
<<: *river_base
values:
<<: *river_values
right:
- network:
name: eth0
@ -82,6 +131,7 @@ bar:
values:
discharging: {string: {text: "{capacity}%"}}
unknown: {string: {text: "{capacity}% limite"}}
not charging: {string: {text: "{capacity}% limite"}}
charging: {string: {text: "{capacity}% cargando"}}
full: {string: {text: "{capacity}% full"}}

44
.config/zsh/bg_notify.zsh Normal file
View file

@ -0,0 +1,44 @@
#!/usr/bin/env zsh
# Based on https://github.com/t413/zsh-background-notify/blob/master/bgnotify.plugin.zsh
[[ -o interactive ]] || return
zmodload zsh/datetime || { print "can't load zsh/datetime"; return } # faster than date()
autoload -Uz add-zsh-hook || { print "can't add zsh hook!"; return }
(( ${+bgnotify_threshold} )) || bgnotify_threshold=5 # default 5 seconds
if ! (type bgnotify_formatted | grep -q 'function'); then ## allow custom function override
function bgnotify_formatted { ## args: (exit_status, command, elapsed_seconds)
elapsed="$(( $3 % 60 ))s"
(( $3 >= 60 )) && elapsed="$((( $3 % 3600) / 60 ))m $elapsed"
(( $3 >= 3600 )) && elapsed="$(( $3 / 3600 ))h $elapsed"
[ $1 -eq 0 ] && bgnotify "success (took $elapsed)" "$2" || bgnotify "fail (took $elapsed)" "$2"
}
fi
bgnotify () { ## args: (title, subtitle)
title="$1"
"$REMOTE" && title="[$(hostname)] $title"
echo -e "\033]777;notify;$title;$2\a"
}
## ZSH hooks ##
bgnotify_begin() {
bgnotify_timestamp=$EPOCHSECONDS
bgnotify_lastcmd="$1"
}
bgnotify_end() {
didexit=$?
elapsed=$(( EPOCHSECONDS - bgnotify_timestamp ))
past_threshold=$(( elapsed >= bgnotify_threshold ))
if (( bgnotify_timestamp > 0 )) && (( past_threshold )); then
print -n "\a"
bgnotify_formatted "$didexit" "$bgnotify_lastcmd" "$elapsed"
fi
bgnotify_timestamp=0
}
add-zsh-hook preexec bgnotify_begin
add-zsh-hook precmd bgnotify_end

20
.config/zsh/osc_7.zsh Normal file
View file

@ -0,0 +1,20 @@
#!/usr/bin/env zsh
# https://codeberg.org/dnkl/foot/wiki#user-content-bash-and-zsh
_urlencode() {
local length="${#1}"
for (( i = 0; i < length; i++ )); do
local c="${1:$i:1}"
case $c in
%) printf '%%%02X' "'$c" ;;
*) printf "%s" "$c" ;;
esac
done
}
osc7_cwd() {
printf '\e]7;file://%s%s\e\\' "$HOSTNAME" "$(_urlencode "$PWD")"
}
autoload -Uz add-zsh-hook
add-zsh-hook -Uz chpwd osc7_cwd

11
.gitmodules vendored
View file

@ -13,24 +13,15 @@
[submodule ".config/nvim/pack/plugins/start/fzf.vim"]
path = .config/nvim/pack/plugins/start/fzf.vim
url = https://github.com/junegunn/fzf.vim
[submodule ".config/nvim/pack/plugins/start/rose-pine"]
path = .config/nvim/pack/plugins/start/rose-pine
url = https://github.com/rose-pine/neovim
[submodule ".config/nvim/pack/plugins/start/vim-go"]
path = .config/nvim/pack/plugins/start/vim-go
url = https://github.com/fatih/vim-go
[submodule ".config/nvim/pack/plugins/start/fzf"]
path = .config/nvim/pack/plugins/start/fzf
url = https://github.com/junegunn/fzf
[submodule ".config/nvim/pack/plugins/start/formatter.nvim"]
path = .config/nvim/pack/plugins/start/formatter.nvim
url = https://github.com/mhartington/formatter.nvim
[submodule ".config/nvim/pack/plugins/start/vim-svelte"]
path = .config/nvim/pack/plugins/start/vim-svelte
url = https://github.com/evanleck/vim-svelte
[submodule ".config/nvim/pack/plugins/start/vim-yami"]
path = .config/nvim/pack/plugins/start/vim-yami
url = https://github.com/danishprakash/vim-yami
[submodule ".config/nvim/pack/plugins/start/paige"]
path = .config/nvim/pack/plugins/start/paige
url = https://git.sr.ht/~leon_plickat/paige
@ -42,7 +33,7 @@
url = https://gitea.nulo.in/Nulo/zig.kak
[submodule ".config/kak/plugins/fzf.kak"]
path = .config/kak/plugins/fzf.kak
url = https://github.com/andreyorst/fzf.kak
url = https://gitea.nulo.in/Nulo/fzf.kak
[submodule ".config/kak/plugins/kakoune-buffers"]
path = .config/kak/plugins/kakoune-buffers
url = https://github.com/Delapouite/kakoune-buffers

8
.inputrc Normal file
View file

@ -0,0 +1,8 @@
$include /etc/inputrc
set completion-ignore-case on
set completion-query-items -1
set show-all-if-unmodified on
set show-all-if-ambiguous off
set colored-completion-prefix on
set colored-stats on
set visible-stats on

View file

@ -2,37 +2,17 @@
set -e
cd ~
if test "$1" = "elegir"; then
find \
rg --files --hidden \
Documents Sync Pictures Downloads Proyectos \
-iname '*.jpg' -or \
-iname '*.png' -or \
-iname '*.js' -or \
-iname '*.md' -or \
-iname '*.txt' -or \
-iname '*.pdf' -or \
-iname '*.epub' -or \
-iname '*.docx' -or \
-iname '*.mp3' -or \
-type d \
| fzf > "$2"
exit $?
fi
out="$(mktemp)"
footclient buscar-archivos elegir $out
footclient --app-id=fzf buscar-archivos elegir $out
file="$(cat $out)"
# | fuzzel-run --dmenu --width=40)"
rm "$out"
if test -e "$file"; then
if test -d "$file"; then
exec thunar "$file"
else
exec xdg-open "$file"
exec handlr open "$file"
fi
fi
# if test -d "$file"; then
# xdg-open "$file"
# else
# xdg-open "$(dirname "$file")"
# fi

View file

@ -0,0 +1,11 @@
#!/bin/sh
battery="$(upower -i /org/freedesktop/UPower/devices/battery_BAT0)"
get_battery_value () {
echo "$battery" | grep "$1" | awk '{ print $2 }'
}
title="$(date +%T)"
body="\
$(date +"%A %d of %B")
$(get_battery_value percentage) $(get_battery_value state)\
"
notify-send --expire-time=5000 "$title" "$body"

16
.local/bin/pass-fuzzel Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
# Copied in https://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu
set -e
shopt -s nullglob globstar
prefix=${PASSWORD_STORE_DIR-~/.password-store}
password_files=( "$prefix"/**/*.gpg )
password_files=( "${password_files[@]#"$prefix"/}" )
password_files=( "${password_files[@]%.gpg}" )
password=$(printf '%s\n' "${password_files[@]}" | fuzzel-run -d)
[[ -n $password ]] || exit
pass show "$password" | wtype -

View file

@ -2,14 +2,15 @@
set -e
if test -n "$1"; then
~/.config/themer/river-colors.sh "$1"
# ~/.config/themer/river-colors.sh "$1"
~/.config/themer/foot.ini.sh "$1"
~/.config/themer/fnott.ini.sh "$1"
~/.config/themer/yambar.sh "$1"
~/.config/themer/fuzzel.sh "$1"
~/.config/themer/lock.sh "$1"
~/.config/themer/waylock.sh "$1"
~/.config/themer/gtk.sh "$1"
~/.config/river/load-colors
# ~/.config/river/load-colors
else
echo "No theme specified"
exit 1

View file

@ -0,0 +1,6 @@
[Desktop Entry]
Version=1.0
Name=pass-fuzzel / contraseña / password
Exec=pass-fuzzel
Terminal=false
Type=Application

13
.profile Normal file → Executable file
View file

@ -4,23 +4,24 @@
ulimit -c unlimited
export MESA_LOADER_DRIVER_OVERRIDE=crocus
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/go/bin:$PATH"
# export PATH="$HOME/.local/share/theme.sh:$PATH"
export MOZ_ENABLE_WAYLAND=1
export EDITOR=kak
export FZF_DEFAULT_OPTS='--color=light'
export FZF_DEFAULT_COMMAND='rg -L --hidden --files'
export FZF_CTRL_T_COMMAND='rg -L --hidden --files'
export MOZ_ENABLE_WAYLAND=1
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export XKB_DEFAULT_LAYOUT=us #-nulo
export XKB_DEFAULT_LAYOUT=us
export XKB_DEFAULT_VARIANT=altgr-intl
export XKB_DEFAULT_OPTIONS=caps:escape
export XCURSOR_THEME=Adwaita
test -f "$HOME/.profile.$(hostname)" && source "$HOME/.profile.$(hostname)"
export REMOTE="${REMOTE:-true}"

3
.profile.cauquenitx Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
export REMOTE=true

10
.profile.sutty-vm Normal file
View file

@ -0,0 +1,10 @@
#!/bin/sh
export REMOTE=true
export PATH="$PATH:$HOME/.npm/prefix/bin/"
export PATH="$HOME/Sutty/haini.sh:$PATH"
export ANDROID_SDK_ROOT=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_SDK_ROOT/tools/bin
export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin
export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools

6
.profile.x69 Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
export REMOTE=false
export MESA_LOADER_DRIVER_OVERRIDE=crocus

10
.zprofile Executable file
View file

@ -0,0 +1,10 @@
source ~/.profile
if ! "$REMOTE" && test "$(tty)" = /dev/tty1; then
mkdir -p "$HOME/.local/share/sway"
log="$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log"
exec env \
XDG_CURRENT_DESKTOP=sway \
XDG_SESSION_DESKTOP=sway \
dbus-run-session sway >"$log" 2>&1
fi
source ~/.zshrc

51
.zshrc Normal file
View file

@ -0,0 +1,51 @@
source ~/.profile
HISTFILE=~/.histfile
HISTSIZE=100000
SAVEHIST=100000
# Permitir comentarios en la shell
setopt interactive_comments
setopt autocd extendedglob notify
bindkey -e
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
zstyle ':completion:*' list-dirs-first yes
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
zstyle :compinstall filename ~/.zshrc
autoload -Uz compinit && compinit
autoload -Uz vcs_info
zstyle ':vcs_info:*' actionformats \
'%F{4}[%F{2}%b%F{3}|%F{1}%a%F{4}]%f '
zstyle ':vcs_info:*' formats '%F{4}%b%f '
zstyle ':vcs_info:*' enable git
precmd () { vcs_info }
setopt promptsubst
PS1='%S%F{5} %3~ ${vcs_info_msg_0_}%f%#%s '
"$REMOTE" && PS1='%n@%m '$PS1
alias ls='ls --color=always'
alias grep='grep --color=always'
alias gitdf='git --git-dir=$HOME/.config/dotfiles/ --work-tree=$HOME'
alias ssh='TERM=xterm-256color ssh'
alias e="$EDITOR"
alias r="trash -r"
source /usr/share/fzf/key-bindings.zsh
source ~/.config/zsh/bg_notify.zsh
! "$REMOTE" && source ~/.config/zsh/osc_7.zsh
if ! "$REMOTE"; then
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
# Start if not started
gpg-agent --daemon 2>/dev/null
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
fi