Compare commits
179 commits
fd4ba05318
...
5623f85d50
Author | SHA1 | Date | |
---|---|---|---|
5623f85d50 | |||
81299eca3e | |||
1602e48e6c | |||
c2968aec76 | |||
9bbbc397a6 | |||
ca6c77eb77 | |||
ba2b93a148 | |||
b4b89b5218 | |||
1a6158fffd | |||
c12bc6fc03 | |||
c2ed01e234 | |||
ec7bfe9592 | |||
dd6ae92654 | |||
dcdc341b02 | |||
47c4f03023 | |||
4d51bdf517 | |||
9c890ebd21 | |||
ed6b05fd20 | |||
3ddf1ab571 | |||
ab8a5250ab | |||
ef2e38c963 | |||
7fbf4ab6a3 | |||
a0cf6b55bf | |||
f560318484 | |||
0407f2f71e | |||
301b508b4a | |||
5c9698e77e | |||
d9b1955c7f | |||
2b571f705c | |||
b2a7060774 | |||
e6f84791db | |||
c88d4425d1 | |||
24506e18de | |||
978b7ee7f5 | |||
d642063b7a | |||
8bb8c14ea3 | |||
5abc3f608a | |||
e47b2c8170 | |||
3517a6c382 | |||
2173762397 | |||
ada064f576 | |||
d9ae70be7f | |||
7ebab29013 | |||
8b6d382191 | |||
b72cf841fd | |||
231f605a76 | |||
44bd790fd5 | |||
80ab6cc6a9 | |||
8e052f41b0 | |||
eb12966ca2 | |||
ac1467cd59 | |||
d4e2e8c8c9 | |||
9db08412ea | |||
aa7b92458f | |||
921bc2336c | |||
1759f33741 | |||
54f8e8911a | |||
e59ffa4746 | |||
1f230d99c5 | |||
a71081ff2a | |||
04cea0b2df | |||
2f38e63497 | |||
001bf7c3db | |||
e1a580e7dc | |||
eb21ee309b | |||
a53c388db6 | |||
7410511054 | |||
9e9427813d | |||
9bedffb533 | |||
cc5877058a | |||
754317859c | |||
0bce60d17e | |||
d39c1dfbdc | |||
f94b158f65 | |||
efcbfccefa | |||
2c8971bcd1 | |||
238a429c8f | |||
3282f59cd7 | |||
7fd75ce1e5 | |||
ba7404abf9 | |||
92e5d25a00 | |||
5b7f1bd3a7 | |||
214a66b9a9 | |||
774ee90108 | |||
7ad941f63b | |||
d70132efec | |||
3015f7922e | |||
bc9cd2f1ea | |||
da6219c026 | |||
99f6d81c69 | |||
faffe6c108 | |||
d763c6b61c | |||
19d0b78e9d | |||
a6cc9cf8b5 | |||
96a508ea2d | |||
607fa9c573 | |||
df697759e2 | |||
dce73d7f82 | |||
593089dcfe | |||
153d5e897b | |||
4b2555e031 | |||
011089e086 | |||
b3740bc428 | |||
375043423e | |||
c0a0522597 | |||
4d88c4cdee | |||
b495d57616 | |||
2e1a5adece | |||
ad308e78ea | |||
884b7aebbe | |||
e487c99210 | |||
c8bbff3aee | |||
eca86dae55 | |||
57633a111d | |||
cbadc34d4a | |||
b53dd311ac | |||
75f4cafeb5 | |||
789ab805f8 | |||
c8f58914ca | |||
d8cea51e45 | |||
7c774db4af | |||
a326e3e2d0 | |||
db38e5eea1 | |||
ff75f27150 | |||
9adfe3ab5a | |||
3ae89a8827 | |||
58e9938c22 | |||
b26616dc51 | |||
e5002293dd | |||
116241fbd5 | |||
b77c2e0269 | |||
9a07c05482 | |||
d6d83d813d | |||
07dd77516a | |||
f1d879a8c0 | |||
fa5aa41ebb | |||
603fb8c2c7 | |||
63a0a7168d | |||
ad9d10b2c5 | |||
37ad595bfb | |||
3dc5b11216 | |||
75112c49ea | |||
b230bc6329 | |||
6cfe0f6818 | |||
4ceb3e80f0 | |||
57a20f0cce | |||
33c1a33c76 | |||
cd886ca488 | |||
0aae9a35c9 | |||
3a7400a3d1 | |||
9aec86f864 | |||
b43cac546b | |||
487ab720f9 | |||
80e3261b45 | |||
579e0de335 | |||
ab5290d677 | |||
67949ccddc | |||
51b11ae78c | |||
25d7252e21 | |||
5d69974359 | |||
f6601127bc | |||
38da6d9b46 | |||
a9c933cbb1 | |||
cf1494996f | |||
5bc610eaa3 | |||
cb30cdffd6 | |||
dd48b91b2e | |||
f00f2352ea | |||
71c19d60ea | |||
50209f489e | |||
a40f12f305 | |||
332905dba1 | |||
f1523d59b6 | |||
62482373f1 | |||
bda49307bc | |||
749c1055d1 | |||
1bf8cf6b71 | |||
3173bb5c5a | |||
2b3c59fdf2 |
49 changed files with 806 additions and 164 deletions
11
.bash_profile
Executable file
11
.bash_profile
Executable 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
52
.bashrc
Normal 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
32
.config/README.md
Normal 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
BIN
.config/fnott/juntos.mp3
Normal file
Binary file not shown.
|
@ -82,10 +82,10 @@
|
||||||
<!-- Set default monospace font -->
|
<!-- Set default monospace font -->
|
||||||
<alias>
|
<alias>
|
||||||
<family>monospace</family>
|
<family>monospace</family>
|
||||||
<prefer><family>IBM Plex Mono</family></prefer>
|
<prefer><family>Input Mono Narrow</family></prefer>
|
||||||
</alias>
|
</alias>
|
||||||
<alias>
|
<alias>
|
||||||
<family>IBM Plex Mono</family>
|
<family>Input Mono Narrow</family>
|
||||||
<default><family>monospace</family></default>
|
<default><family>monospace</family></default>
|
||||||
</alias>
|
</alias>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
||||||
# The parser is also very primitive, and not human-friendly.
|
# 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
|
config_reader_min_version=2
|
||||||
fields=0 48 39 40 2 46 47 1
|
fields=0 48 39 40 2 46 47 1
|
||||||
sort_key=46
|
sort_key=46
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
evaluate-commands %sh{
|
evaluate-commands %sh{
|
||||||
black="rgb:000000"
|
black="rgb:000000"
|
||||||
dark_gray="rgb:333333"
|
dark_gray="rgb:333333"
|
||||||
gray="rgb:666666"
|
gray="rgb:474747"
|
||||||
white="rgb:FFFFFF"
|
white="rgb:FFFFFF"
|
||||||
whiteish="rgb:DDDDDD"
|
whiteish="rgb:DDDDDD"
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ evaluate-commands %sh{
|
||||||
|
|
||||||
# For markup
|
# For markup
|
||||||
set-face global title +b
|
set-face global title +b
|
||||||
set-face global header Default
|
set-face global header +b
|
||||||
set-face global block Default
|
set-face global block Default
|
||||||
set-face global mono Default
|
set-face global mono Default
|
||||||
set-face global link +u
|
set-face global link +u
|
||||||
|
|
|
@ -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/ wrap -word
|
||||||
add-highlighter global/search dynregex '%reg{/}' 0:MatchingChar
|
add-highlighter global/search dynregex '%reg{/}' 0:MatchingChar
|
||||||
add-highlighter global/ show-matching
|
add-highlighter global/ show-matching
|
||||||
|
|
||||||
|
set global scrolloff 5,5
|
||||||
|
|
||||||
set-option global ui_options terminal_assistant=off
|
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"
|
||||||
# eval %sh{kak-lsp --kakoune -s $kak_session}
|
set global lsp_diagnostic_line_error_sign '║'
|
||||||
# set global lsp_cmd "kak-lsp -s %val{session} -vvv --log /tmp/kak-lsp.log"
|
set global lsp_diagnostic_line_warning_sign '┊'
|
||||||
# set global lsp_diagnostic_line_error_sign '║'
|
set global lsp_hover_anchor true
|
||||||
# set global lsp_diagnostic_line_warning_sign '┊'
|
set global lsp_auto_show_code_actions true
|
||||||
# set global lsp_hover_anchor true
|
set global lsp_auto_highlight_references true
|
||||||
# set global lsp_auto_highlight_references true
|
hook global WinSetOption filetype=(zig|go) %{
|
||||||
# #set global lsp_hover_max_lines 3
|
map buffer user r ': lsp-rename-prompt<ret>' -docstring "LSP Rename"
|
||||||
# hook global WinSetOption filetype=(go|javascript|typescript|zig) %{
|
map buffer user a ': lsp-code-actions<ret>' -docstring "LSP Code actions"
|
||||||
# map buffer user r ': lsp-rename-prompt<ret>' -docstring "LSP Rename"
|
map buffer user , ': lsp-hover<ret>' -docstring "LSP hover"
|
||||||
# map buffer user a ': lsp-code-actions<ret>' -docstring "LSP Code actions"
|
map buffer user l ': enter-user-mode lsp<ret>' -docstring "LSP mode"
|
||||||
# map buffer user , ': lsp-hover<ret>' -docstring "LSP hover"
|
lsp-enable-window
|
||||||
# map buffer user l ': enter-user-mode lsp<ret>' -docstring "LSP mode"
|
lsp-auto-signature-help-enable
|
||||||
# #set buffer idle_timeout 200
|
}
|
||||||
# #lsp-inlay-diagnostics-enable buffer
|
hook global KakEnd .* lsp-exit
|
||||||
# lsp-enable-window
|
|
||||||
# #lsp-auto-hover-enable
|
|
||||||
# lsp-auto-signature-help-enable
|
|
||||||
# }
|
|
||||||
# hook global KakEnd .* lsp-exit
|
|
||||||
|
|
||||||
hook global WinSetOption filetype=(javascript|typescript|json|css) %{
|
hook global WinSetOption filetype=(javascript|typescript|json|css) %{
|
||||||
set-option buffer formatcmd %sh{ echo prettier --stdin-filepath $kak_buffile }
|
set-option buffer formatcmd %sh{ echo prettier --stdin-filepath $kak_buffile }
|
||||||
hook buffer BufWritePre .* format-buffer
|
hook buffer BufWritePre .* format-buffer
|
||||||
}
|
}
|
||||||
|
|
||||||
source "%val{config}/plugins/zig.kak/rc/zig.kak"
|
|
||||||
hook global WinSetOption filetype=zig %{
|
hook global WinSetOption filetype=zig %{
|
||||||
set-option buffer formatcmd "zig fmt --stdin"
|
set-option buffer formatcmd "zig fmt --stdin"
|
||||||
hook buffer BufWritePre .* format-buffer
|
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 WinSetOption filetype=zig %{ zig-auto-run buffer }
|
||||||
|
|
||||||
hook global KakBegin .* %{ set-option global termcmd "footclient sh -c" }
|
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 "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 "comment" global user c ": comment-line<ret>"
|
||||||
map -docstring "stop searching" global user h ": set-register slash ''<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
|
set-option global softtabstop 4
|
||||||
}
|
}
|
||||||
|
|
||||||
# https://github.com/mawww/kakoune/issues/2108#issuecomment-721313321
|
source "%val{config}/sleuth.kak"
|
||||||
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}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
hook -group sleuth global BufOpenFile .* %{ sleuth }
|
hook -group sleuth global BufOpenFile .* %{ sleuth }
|
||||||
hook -group sleuth global BufWritePost .* %{ 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' {} \;
|
find -L "$kak_config/plugins/fzf.kak/rc/modules/" -type f -name '*.kak' -exec printf 'source "%s"\n' {} \;
|
||||||
}
|
}
|
||||||
hook global ModuleLoaded fzf %{
|
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 %{
|
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 %{
|
hook global ModuleLoaded fzf-grep %{
|
||||||
set-option global fzf_grep_command 'rg'
|
set-option global fzf_grep_command 'rg'
|
||||||
}
|
}
|
||||||
map -docstring 'search files' global user f ': fzf-mode<ret>f'
|
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 '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
|
# 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"
|
source "%val{config}/plugins/kakoune-buffers/buffers.kak"
|
||||||
|
|
||||||
hook global WinDisplay .* info-buffers
|
|
||||||
|
|
||||||
map global normal ^ q
|
map global normal ^ q
|
||||||
map global normal <a-^> 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 <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 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
22
.config/kak/sleuth.kak
Normal 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}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -4,14 +4,20 @@ set hidden " Do not save when switching buffers
|
||||||
set inccommand=nosplit " Incremental live completion
|
set inccommand=nosplit " Incremental live completion
|
||||||
set tabstop=4 shiftwidth=4 " 4 space \t
|
set tabstop=4 shiftwidth=4 " 4 space \t
|
||||||
|
|
||||||
|
set relativenumber cursorline cursorlineopt=number lazyredraw
|
||||||
|
|
||||||
set ignorecase smartcase
|
set ignorecase smartcase
|
||||||
|
|
||||||
set updatetime=250
|
set updatetime=250
|
||||||
|
|
||||||
set termguicolors
|
set termguicolors
|
||||||
" colorscheme rose-pine
|
|
||||||
colorscheme paige
|
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
|
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)
|
buf_set_keymap('n', '<space>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
local servers = { 'zls', 'gopls', 'tsserver', 'svelte' }
|
local servers = { 'zls', 'gopls' }
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
nvim_lsp[lsp].setup {
|
nvim_lsp[lsp].setup {
|
||||||
on_attach = on_attach,
|
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
|
|
@ -8,29 +8,26 @@ riverctl spawn "/usr/libexec/xdg-desktop-portal-wlr"
|
||||||
|
|
||||||
brillo -I
|
brillo -I
|
||||||
riverctl spawn "pgrep -x foot >/dev/null || foot --server"
|
riverctl spawn "pgrep -x foot >/dev/null || foot --server"
|
||||||
riverctl spawn "pgrep -x mako >/dev/null || mako"
|
|
||||||
if test -f ~/.config/river/coordenadas; then
|
if test -f ~/.config/river/coordenadas; then
|
||||||
riverctl spawn "pgrep -x wlsunset >/dev/null || wlsunset $(cat ~/.config/river/coordenadas)"
|
riverctl spawn "pgrep -x wlsunset >/dev/null || wlsunset $(cat ~/.config/river/coordenadas)"
|
||||||
else
|
else
|
||||||
echo "¡Falta ~/.config/river/coordenadas!"
|
echo "¡Falta ~/.config/river/coordenadas!"
|
||||||
fi
|
fi
|
||||||
riverctl spawn "pgrep -x syncthing >/dev/null || syncthing -no-browser"
|
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
|
# yambar spawned by load-colors
|
||||||
riverctl spawn "pgrep -x kanshi >/dev/null || kanshi"
|
riverctl spawn "pgrep -x kanshi >/dev/null || kanshi"
|
||||||
riverctl spawn "pgrep -x poweralertd >/dev/null || poweralertd"
|
|
||||||
|
|
||||||
riverctl set-repeat 30 290
|
riverctl set-repeat 30 290
|
||||||
|
|
||||||
riverctl xcursor-theme Adwaita
|
riverctl xcursor-theme Adwaita
|
||||||
|
|
||||||
riverctl input "2:10:TPPS/2_IBM_TrackPoint" pointer-accel 0.5
|
riverctl focus-follows-cursor normal
|
||||||
riverctl input 2:7:SynPS/2_Synaptics_TouchPad tap enabled
|
|
||||||
|
|
||||||
riverctl float-filter-add title Picture-in-Picture
|
riverctl float-filter-add title Picture-in-Picture
|
||||||
riverctl float-filter-add title "Firefox — Sharing Indicator"
|
riverctl float-filter-add title "Firefox — Sharing Indicator"
|
||||||
|
riverctl float-filter-add app-id fzf
|
||||||
|
|
||||||
~/.config/river/keys
|
~/.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
|
riverctl default-layout stacktile
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
mod="Mod4"
|
mod="Mod4" # Super
|
||||||
|
|
||||||
riverctl map normal $mod Q close
|
riverctl map normal $mod Q close
|
||||||
|
|
||||||
|
@ -57,39 +57,42 @@ riverctl map-pointer normal $mod BTN_RIGHT resize-view
|
||||||
define_tag() {
|
define_tag() {
|
||||||
riverctl map normal $mod $2 set-focused-tags $1
|
riverctl map normal $mod $2 set-focused-tags $1
|
||||||
riverctl map normal $mod+Shift $2 set-view-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+Alt $2 toggle-focused-tags $1
|
||||||
riverctl map normal $mod+Shift+Control $2 toggle-view-tags $1
|
riverctl map normal $mod+Shift+Alt $2 toggle-view-tags $1
|
||||||
}
|
}
|
||||||
|
|
||||||
define_tag $((1 << 0)) 1
|
define_tag $((1 << 0)) Z
|
||||||
define_tag $((1 << 1)) 2
|
define_tag $((1 << 1)) X
|
||||||
define_tag $((1 << 2)) 3
|
define_tag $((1 << 2)) C
|
||||||
define_tag $((1 << 3)) 4
|
define_tag $((1 << 3)) B
|
||||||
define_tag $((1 << 4)) 5
|
define_tag $((1 << 4)) N
|
||||||
define_tag $((1 << 5)) 6
|
define_tag $((1 << 5)) M
|
||||||
define_tag $((1 << 6)) 7
|
define_tag $((1 << 6)) less
|
||||||
define_tag $((1 << 7)) 8
|
define_tag $((1 << 7)) greater
|
||||||
define_tag $((1 << 8)) 9
|
define_tag $((1 << 8)) question
|
||||||
|
|
||||||
all_tags=$(((1 << 32) - 1))
|
all_tags=$(((1 << 32) - 1))
|
||||||
riverctl map normal $mod 0 set-focused-tags $all_tags
|
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+Shift 0 set-view-tags $all_tags
|
||||||
|
|
||||||
riverctl map normal $mod Space toggle-float
|
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 Up send-layout-cmd stacktile "primary_position top"
|
||||||
riverctl map normal $mod Right send-layout-cmd stacktile "primary_position right"
|
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 Down send-layout-cmd stacktile "primary_position bottom"
|
||||||
riverctl map normal $mod Left send-layout-cmd stacktile "primary_position left"
|
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 declare-mode passthrough
|
||||||
riverctl map normal $mod F11 enter-mode passthrough
|
riverctl map normal $mod F11 enter-mode passthrough
|
||||||
|
|
||||||
riverctl map passthrough $mod F11 enter-mode normal
|
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
|
for mode in normal locked
|
||||||
do
|
do
|
||||||
|
@ -111,7 +114,7 @@ done
|
||||||
|
|
||||||
riverctl map normal $mod+Shift N spawn lock
|
riverctl map normal $mod+Shift N spawn lock
|
||||||
riverctl map normal $mod+Shift M spawn 'lock && doas pm-suspend'
|
riverctl map normal $mod+Shift M spawn 'lock && doas pm-suspend'
|
||||||
riverctl map normal $mod+Shift T spawn footclient
|
riverctl map normal $mod I spawn footclient
|
||||||
riverctl map normal $mod+Shift Return spawn fuzzel-run
|
riverctl map normal $mod U spawn fuzzel-run
|
||||||
riverctl map normal $mod+Shift backslash spawn buscar-archivos
|
riverctl map normal $mod backslash spawn buscar-archivos
|
||||||
riverctl map normal None Print spawn 'grimshot copy area'
|
riverctl map normal None Print spawn 'grimshot copy area'
|
||||||
|
|
|
@ -4,9 +4,11 @@
|
||||||
riverctl background-color 0x$background
|
riverctl background-color 0x$background
|
||||||
riverctl border-color-focused 0x$border_focused
|
riverctl border-color-focused 0x$border_focused
|
||||||
riverctl border-color-unfocused 0x$border_unfocused
|
riverctl border-color-unfocused 0x$border_unfocused
|
||||||
riverctl border-width 3
|
riverctl border-width 5
|
||||||
riverctl spawn 'killall yambar ; yambar'
|
riverctl spawn 'killall yambar ; yambar'
|
||||||
|
|
||||||
|
riverctl spawn "killall fnott >/dev/null ; fnott"
|
||||||
|
|
||||||
if test -n "$bg"; then
|
if test -n "$bg"; then
|
||||||
riverctl spawn "killall swaybg ; swaybg --image $bg"
|
riverctl spawn "killall swaybg ; swaybg --image '$bg'"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
escape() {
|
escape() {
|
||||||
printf "%s" "$1" | sed 's#\#\\#g'
|
printf "%s" "$1" | sed 'sx\\x\\\\xg'
|
||||||
}
|
}
|
||||||
notify-send "[$BUFFER] $SENDER" "$(escape "$MESSAGE")"
|
notify-send "[$BUFFER] $SENDER" "$(escape "$MESSAGE")"
|
||||||
|
|
248
.config/sway/config
Normal file
248
.config/sway/config
Normal 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
62
.config/themer/fnott.ini.sh
Executable 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
|
|
@ -11,11 +11,13 @@ lines = 10000
|
||||||
hide-when-typing=yes
|
hide-when-typing=yes
|
||||||
|
|
||||||
[main]
|
[main]
|
||||||
font=monospace:size=11
|
font=monospace:pixelsize=17
|
||||||
line-height=18
|
line-height=26px
|
||||||
vertical-letter-offset=2
|
vertical-letter-offset=4px
|
||||||
|
|
||||||
pad=4x4 center
|
pad=0x0
|
||||||
|
|
||||||
|
initial-window-size-chars=120x24
|
||||||
" > ~/.config/foot/foot.ini
|
" > ~/.config/foot/foot.ini
|
||||||
|
|
||||||
rose_pine () {
|
rose_pine () {
|
||||||
|
@ -59,7 +61,7 @@ rose_pine () {
|
||||||
}
|
}
|
||||||
mono () {
|
mono () {
|
||||||
if $dark; then
|
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
|
else
|
||||||
echo "
|
echo "
|
||||||
[colors]
|
[colors]
|
||||||
|
|
|
@ -18,9 +18,9 @@ export accent=$iris
|
||||||
mono () {
|
mono () {
|
||||||
echo "
|
echo "
|
||||||
export background=$background
|
export background=$background
|
||||||
export foreground=$foregroundish
|
export foreground=$foreground
|
||||||
export selection_background=$backgroundish
|
export selection_background=$backgroundish
|
||||||
export selection_foreground=$foregroundish
|
export selection_foreground=$foreground
|
||||||
export border=$foreground
|
export border=$foreground
|
||||||
export accent=$foreground
|
export accent=$foreground
|
||||||
" >> ~/.local/bin/fuzzel-run
|
" >> ~/.local/bin/fuzzel-run
|
||||||
|
@ -51,13 +51,14 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
exec fuzzel --terminal=footclient --font='Inter:style=Bold:size=11' \
|
exec fuzzel --terminal=footclient --font='monospace:size=11' \
|
||||||
--prompt='➦ ' \
|
--prompt='➦ ' \
|
||||||
--no-icons \
|
--no-icons \
|
||||||
--width=20 \
|
--width=40 \
|
||||||
--background=\${background}ff --text-color=\${foreground}ff \
|
--background=\${background}ff --text-color=\${foreground}ff \
|
||||||
--match-color=\${accent}ff \
|
--match-color=\${accent}ff \
|
||||||
--selection-color=\${selection_background}ff --selection-text-color=\${selection_foreground}ff \
|
--selection-color=\${selection_background}ff --selection-text-color=\${selection_foreground}ff \
|
||||||
--horizontal-pad=12 \
|
--horizontal-pad=12 \
|
||||||
--border-width=1 --border-color=\${border}ff --border-radius=2 \"\$@\"
|
--border-width=1 --border-color=\${border}ff --border-radius=2 \"\$@\"
|
||||||
" >> ~/.local/bin/fuzzel-run
|
" >> ~/.local/bin/fuzzel-run
|
||||||
|
chmod +x ~/.local/bin/fuzzel-run
|
||||||
|
|
|
@ -15,14 +15,17 @@ rose_pine () {
|
||||||
fi
|
fi
|
||||||
echo "
|
echo "
|
||||||
export background=$base
|
export background=$base
|
||||||
|
export foreground=$text
|
||||||
export border_focused=$border_focused
|
export border_focused=$border_focused
|
||||||
export border_unfocused=$border_unfocused
|
export border_unfocused=$border_unfocused
|
||||||
export dark=$dark
|
export dark=$dark
|
||||||
" >> ~/.config/river/colors
|
" >> ~/.config/river/colors
|
||||||
}
|
}
|
||||||
mono () {
|
mono () {
|
||||||
|
test ! "$dark" = true && bg="export bg=~/.config/river/wallpapers/'Abyss Reflections - Cat ears.png'"
|
||||||
echo "
|
echo "
|
||||||
export background=$background
|
export background=$background
|
||||||
|
export foreground=$foreground
|
||||||
export border_focused=$accent
|
export border_focused=$accent
|
||||||
export border_unfocused=$backgroundish
|
export border_unfocused=$backgroundish
|
||||||
export dark=$dark
|
export dark=$dark
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
export background=ffffff
|
export background=ffffff
|
||||||
export backgroundish=cccccc
|
export backgroundish=dfdfdf
|
||||||
export foreground=000000
|
export foreground=000000
|
||||||
export foregroundish=333333
|
export foregroundish=333333
|
||||||
export accent=56949f
|
export accent=cf1bff
|
||||||
export dark=false
|
export dark=false
|
||||||
|
|
|
@ -11,8 +11,9 @@ accent: &accent ${iris}ff
|
||||||
mono () {
|
mono () {
|
||||||
echo "# Autogenerated by ~/.config/themer/yambar.sh
|
echo "# Autogenerated by ~/.config/themer/yambar.sh
|
||||||
background: &bg ${background}ff
|
background: &bg ${background}ff
|
||||||
|
backgroundish: &bgish ${backgroundish}ff
|
||||||
foreground: &fg ${foreground}ff
|
foreground: &fg ${foreground}ff
|
||||||
accent: &accent ${foreground}ff
|
accent: &accent ${accent}ff
|
||||||
" > ~/.config/yambar/config.yml
|
" > ~/.config/yambar/config.yml
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
bar:
|
bar:
|
||||||
height: 20
|
height: 16
|
||||||
location: bottom
|
location: top
|
||||||
|
layer: top
|
||||||
spacing: 8
|
spacing: 8
|
||||||
right-margin: 8
|
right-margin: 8
|
||||||
background: *bg
|
background: *bg
|
||||||
foreground: *fg
|
foreground: *fg
|
||||||
|
|
||||||
font: Inter:style=Medium:size=14
|
font: sans-serif:size=12
|
||||||
|
|
||||||
left:
|
left:
|
||||||
- river:
|
- river:
|
||||||
|
@ -14,9 +15,41 @@ bar:
|
||||||
base: &river_base
|
base: &river_base
|
||||||
margin: 8
|
margin: 8
|
||||||
tag: id
|
tag: id
|
||||||
values: {}
|
|
||||||
default: &river_default
|
default: &river_default
|
||||||
default: {string: {text: "{id}"}}
|
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:
|
content:
|
||||||
map:
|
map:
|
||||||
tag: state
|
tag: state
|
||||||
|
@ -24,22 +57,38 @@ bar:
|
||||||
focused:
|
focused:
|
||||||
map:
|
map:
|
||||||
<<: *river_base
|
<<: *river_base
|
||||||
default: {string: {text: "{id}", foreground: *bg}}
|
|
||||||
deco: {background: {color: *accent}}
|
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:
|
unfocused:
|
||||||
map:
|
map:
|
||||||
<<: *river_base
|
<<: *river_base
|
||||||
default: {string: {text: "{id}"}}
|
values:
|
||||||
|
<<: *river_values
|
||||||
invisible:
|
invisible:
|
||||||
map:
|
map:
|
||||||
tag: occupied
|
tag: occupied
|
||||||
values:
|
values:
|
||||||
false: {empty: {}}
|
|
||||||
true:
|
true:
|
||||||
map:
|
map:
|
||||||
|
deco: {background: {color: *bgish}}
|
||||||
<<: *river_base
|
<<: *river_base
|
||||||
default: {string: {text: "{id}"}}
|
values:
|
||||||
|
<<: *river_values
|
||||||
|
false:
|
||||||
|
map:
|
||||||
|
<<: *river_base
|
||||||
|
values:
|
||||||
|
<<: *river_values
|
||||||
right:
|
right:
|
||||||
- network:
|
- network:
|
||||||
name: eth0
|
name: eth0
|
||||||
|
@ -82,6 +131,7 @@ bar:
|
||||||
values:
|
values:
|
||||||
discharging: {string: {text: "{capacity}%"}}
|
discharging: {string: {text: "{capacity}%"}}
|
||||||
unknown: {string: {text: "{capacity}% limite"}}
|
unknown: {string: {text: "{capacity}% limite"}}
|
||||||
|
not charging: {string: {text: "{capacity}% limite"}}
|
||||||
charging: {string: {text: "{capacity}% cargando"}}
|
charging: {string: {text: "{capacity}% cargando"}}
|
||||||
full: {string: {text: "{capacity}% full"}}
|
full: {string: {text: "{capacity}% full"}}
|
||||||
|
|
||||||
|
|
44
.config/zsh/bg_notify.zsh
Normal file
44
.config/zsh/bg_notify.zsh
Normal 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
20
.config/zsh/osc_7.zsh
Normal 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
11
.gitmodules
vendored
|
@ -13,24 +13,15 @@
|
||||||
[submodule ".config/nvim/pack/plugins/start/fzf.vim"]
|
[submodule ".config/nvim/pack/plugins/start/fzf.vim"]
|
||||||
path = .config/nvim/pack/plugins/start/fzf.vim
|
path = .config/nvim/pack/plugins/start/fzf.vim
|
||||||
url = https://github.com/junegunn/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"]
|
[submodule ".config/nvim/pack/plugins/start/vim-go"]
|
||||||
path = .config/nvim/pack/plugins/start/vim-go
|
path = .config/nvim/pack/plugins/start/vim-go
|
||||||
url = https://github.com/fatih/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"]
|
[submodule ".config/nvim/pack/plugins/start/formatter.nvim"]
|
||||||
path = .config/nvim/pack/plugins/start/formatter.nvim
|
path = .config/nvim/pack/plugins/start/formatter.nvim
|
||||||
url = https://github.com/mhartington/formatter.nvim
|
url = https://github.com/mhartington/formatter.nvim
|
||||||
[submodule ".config/nvim/pack/plugins/start/vim-svelte"]
|
[submodule ".config/nvim/pack/plugins/start/vim-svelte"]
|
||||||
path = .config/nvim/pack/plugins/start/vim-svelte
|
path = .config/nvim/pack/plugins/start/vim-svelte
|
||||||
url = https://github.com/evanleck/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"]
|
[submodule ".config/nvim/pack/plugins/start/paige"]
|
||||||
path = .config/nvim/pack/plugins/start/paige
|
path = .config/nvim/pack/plugins/start/paige
|
||||||
url = https://git.sr.ht/~leon_plickat/paige
|
url = https://git.sr.ht/~leon_plickat/paige
|
||||||
|
@ -42,7 +33,7 @@
|
||||||
url = https://gitea.nulo.in/Nulo/zig.kak
|
url = https://gitea.nulo.in/Nulo/zig.kak
|
||||||
[submodule ".config/kak/plugins/fzf.kak"]
|
[submodule ".config/kak/plugins/fzf.kak"]
|
||||||
path = .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"]
|
[submodule ".config/kak/plugins/kakoune-buffers"]
|
||||||
path = .config/kak/plugins/kakoune-buffers
|
path = .config/kak/plugins/kakoune-buffers
|
||||||
url = https://github.com/Delapouite/kakoune-buffers
|
url = https://github.com/Delapouite/kakoune-buffers
|
||||||
|
|
8
.inputrc
Normal file
8
.inputrc
Normal 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
|
|
@ -2,37 +2,17 @@
|
||||||
set -e
|
set -e
|
||||||
cd ~
|
cd ~
|
||||||
if test "$1" = "elegir"; then
|
if test "$1" = "elegir"; then
|
||||||
find \
|
rg --files --hidden \
|
||||||
Documents Sync Pictures Downloads Proyectos \
|
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"
|
| fzf > "$2"
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
out="$(mktemp)"
|
out="$(mktemp)"
|
||||||
footclient buscar-archivos elegir $out
|
footclient --app-id=fzf buscar-archivos elegir $out
|
||||||
file="$(cat $out)"
|
file="$(cat $out)"
|
||||||
# | fuzzel-run --dmenu --width=40)"
|
rm "$out"
|
||||||
|
|
||||||
if test -e "$file"; then
|
if test -e "$file"; then
|
||||||
if test -d "$file"; then
|
exec handlr open "$file"
|
||||||
exec thunar "$file"
|
|
||||||
else
|
|
||||||
exec xdg-open "$file"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if test -d "$file"; then
|
|
||||||
# xdg-open "$file"
|
|
||||||
# else
|
|
||||||
# xdg-open "$(dirname "$file")"
|
|
||||||
# fi
|
|
||||||
|
|
11
.local/bin/notificar-informacion.sh
Executable file
11
.local/bin/notificar-informacion.sh
Executable 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
16
.local/bin/pass-fuzzel
Executable 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 -
|
|
@ -2,14 +2,15 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if test -n "$1"; then
|
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/foot.ini.sh "$1"
|
||||||
|
~/.config/themer/fnott.ini.sh "$1"
|
||||||
~/.config/themer/yambar.sh "$1"
|
~/.config/themer/yambar.sh "$1"
|
||||||
~/.config/themer/fuzzel.sh "$1"
|
~/.config/themer/fuzzel.sh "$1"
|
||||||
~/.config/themer/lock.sh "$1"
|
~/.config/themer/lock.sh "$1"
|
||||||
~/.config/themer/waylock.sh "$1"
|
~/.config/themer/waylock.sh "$1"
|
||||||
~/.config/themer/gtk.sh "$1"
|
~/.config/themer/gtk.sh "$1"
|
||||||
~/.config/river/load-colors
|
# ~/.config/river/load-colors
|
||||||
else
|
else
|
||||||
echo "No theme specified"
|
echo "No theme specified"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
6
.local/share/applications/pass-fuzzel.desktop
Normal file
6
.local/share/applications/pass-fuzzel.desktop
Normal 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
13
.profile
Normal file → Executable file
|
@ -4,23 +4,24 @@
|
||||||
|
|
||||||
ulimit -c unlimited
|
ulimit -c unlimited
|
||||||
|
|
||||||
export MESA_LOADER_DRIVER_OVERRIDE=crocus
|
|
||||||
|
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
export PATH="$HOME/go/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 EDITOR=kak
|
||||||
|
|
||||||
|
export FZF_DEFAULT_OPTS='--color=light'
|
||||||
export FZF_DEFAULT_COMMAND='rg -L --hidden --files'
|
export FZF_DEFAULT_COMMAND='rg -L --hidden --files'
|
||||||
export FZF_CTRL_T_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 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_VARIANT=altgr-intl
|
||||||
export XKB_DEFAULT_OPTIONS=caps:escape
|
export XKB_DEFAULT_OPTIONS=caps:escape
|
||||||
|
|
||||||
export XCURSOR_THEME=Adwaita
|
export XCURSOR_THEME=Adwaita
|
||||||
|
|
||||||
|
test -f "$HOME/.profile.$(hostname)" && source "$HOME/.profile.$(hostname)"
|
||||||
|
export REMOTE="${REMOTE:-true}"
|
||||||
|
|
3
.profile.cauquenitx
Executable file
3
.profile.cauquenitx
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
export REMOTE=true
|
10
.profile.sutty-vm
Normal file
10
.profile.sutty-vm
Normal 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
6
.profile.x69
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
export REMOTE=false
|
||||||
|
|
||||||
|
export MESA_LOADER_DRIVER_OVERRIDE=crocus
|
||||||
|
|
10
.zprofile
Executable file
10
.zprofile
Executable 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
51
.zshrc
Normal 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
|
Loading…
Reference in a new issue