AutoYADM commit: 2025-05-20 17:16:24

This commit is contained in:
Daniel Fichtinger 2025-05-20 17:16:24 -04:00
parent bb57cfb34d
commit ec47b2ed03
2 changed files with 44 additions and 13 deletions

View file

@ -43,9 +43,13 @@ define-command autowrap-toggle -docstring "toggle autowrap" %{
if [ "$kak_opt_autowrap" = "true" ]; then if [ "$kak_opt_autowrap" = "true" ]; then
echo "autowrap-disable" echo "autowrap-disable"
echo "set-option window autowrap false" echo "set-option window autowrap false"
echo "info -title Autowrap 'Window autowrap disabled'"
else else
echo "autowrap-enable" echo "autowrap-enable"
echo "set-option window autowrap true" echo "set-option window autowrap true"
echo "info -title Autowrap 'Window autowrap enabled'"
fi fi
} }
} }
map -docstring 'toggle autowrap' global ui a ": autowrap-toggle<ret>"

View file

@ -1,10 +1,17 @@
# Daniel's Dotfiles <h1>Daniel's Dotfiles</h1>
My personal Linux dotfiles. My personal Linux dotfiles.
I use Arch btw. I use Arch btw.
The root of this repo is equivalent to my $HOME directory. The root of this repo is equivalent to my `$HOME` directory.
<!--toc:start-->
- [This Repository](#this-repository)
- [Note On Keybindings](#note-on-keybindings)
<!--toc:end-->
## This Repository ## This Repository
@ -12,21 +19,41 @@ I use this repository to sync and backup my dotfiles. I use the excellent [yadm]
to manage the repo, and [autoyadm](https://git.sr.ht/~ficd/autoyadm) to automate to manage the repo, and [autoyadm](https://git.sr.ht/~ficd/autoyadm) to automate
committing & pushing on a timer. committing & pushing on a timer.
Therefore, these configs are:
- Always up to date.
- But potentially broken on any given commit (due to incomplete configs being
pushed).
If you see a file with a weird name, like `config##hostname.dbox`, it's If you see a file with a weird name, like `config##hostname.dbox`, it's
leveraging `yadm`'s alternate files feature; the program will automatically leveraging `yadm`'s alternate files feature; the program will automatically
symlink that file to its appropriate destination depending on which computer symlink the appropriate file to its destination depending on what comes after
it's on. the `##`. This is also how templates are handled (see [niri](./.config/niri))
for an example of this.
This is done automatically on a timer. Therefore, these configs are: ### Note On Keybindings
- Always up-to-date. I use Colemak-DH, which is a non-qwerty keyboard layout. Because I came up using
- Potentially broken on any given commit. Vim, I'm used to `hjkl` for movement. However, on this layout, `mnei` occupies
the `hjkl` position. Thus, in most applications, I change the bindings so
they're more comfortable for me to use. Please keep this in mind when copying my
configs.
## Note On Keybindings ## Configuration Notes
A note on keybindings: I use Colemak-DH, which is a non-qwerty keyboard layout. ### Kakoune
I use either `MNEI` or the arrow keys (which is a mod key + `MNEI` on my
keyboard) for navigation, depending on a few different factors.
If `MNEI` conflicts with any defaults that would be far too finicky to remap, I I've been configuring and enjoying Kakoune as my text editor lately. It's highly
just use the arrow keys. Otherwise, I bind `MNEI` to navigation. personalized, so I don't recommend copying it, but feel free to peruse for
inspiration.
### Helix
I used Helix for quite a few months. I had implemented some cool functionality
using calls to external scripts; these may be of interest to you.
### Niri
I use Niri as my Window manager. I've written quite a few custom scripts that
work with Niri; you'll find references to them in the configuration, and the
code for most is available in my [utils collection](https://sr.ht/~ficd/utils).