aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-05-20 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-05-20 20:20:20 +0200
commit0fcdc6440f170307dbf90fe1bbdf361132809af2 (patch)
treee58ec10488c0e050cfd655a314820add3ad4ae32
parentup (diff)
downloadhardflip-0fcdc6440f170307dbf90fe1bbdf361132809af2.tar.gz
hardflip-0fcdc6440f170307dbf90fe1bbdf361132809af2.tar.bz2
hardflip-0fcdc6440f170307dbf90fe1bbdf361132809af2.tar.xz
hardflip-0fcdc6440f170307dbf90fe1bbdf361132809af2.tar.zst
hardflip-0fcdc6440f170307dbf90fe1bbdf361132809af2.zip
readme or not
-rw-r--r--README.md82
-rw-r--r--ROADMAP.md1
-rw-r--r--conf/config.sample.yml3
3 files changed, 84 insertions, 2 deletions
diff --git a/README.md b/README.md
index aa75e79..c2a6195 100644
--- a/README.md
+++ b/README.md
@@ -41,7 +41,85 @@ Example:
DEST := /usr/local
```
-Will install bin and man in the /usr/local/bin /usr/local/share/man... dirs
-BSD style
+will install bin and man in the `/usr/local/bin` `/usr/local/share/man/...` dirs
+BSD style.
## Config
+
+Configuration files will be stored in your `$XDG_CONFIG_HOME/hf` directory which
+will be created if not found. Your need read and write accesses to your
+`$XDG_CONFIG_HOME` dir.
+
+If `$XDG_CONFIG_HOME` is not set on your system, the program will use
+`$HOME/.config/hf` as a config directory instead. If `$HOME` is unset, the
+program will not load and return an error.
+
+### `config.yml`
+
+This is the main options files. You can reload the options on-the-go with
+`Ctrl+r` in `hf`. Here are some options:
+
++ `icons`: (`bool`) shows or not icons
++ `loop`: (`bool`) the program will run again after exiting the host you
+connected to
++ `gpg`: (`string`) the gpg key ID you set at first boot. It is used to encrypt
+passwords. If set to **"plain"**, passwords will be stored in plaintext. I don't
+recommend this at all but you might not care
++ `percent`: (`bool`) shows percent of hosts the cursor is on in the bottom
+right of the window
++ `terminal`: (`string`) will spawn the command to connect to your host in a
+new instance of your set terminal. It was intended to `setsid` the connection
+in a new terminal, allowing you to still be using the same `hf` while connected
+to one or several of your hosts. Turns out I can't code that it doesn't work at
+all, just leave that unset
++ `default_ssh_priv`: (`string`) default SSH private key path. It will be
+entered by default when adding a new SSH host or jump, saving a ton of time.
+Of course it can be changed when adding the host. Leave empty if you don't have
+a main key.
+
+### `colors.yml`
+
+Colors for different elements are defined in the `CONFIG_DIR/colors.yml`.
+Name of the elements speak by themselves.
+Here are the available colors (for now):
+
+**default**
+**black**
+**red**
+**green**
+**yellow**
+**blue**
+**magenta**
+**cyan**
+**white**
+**gray**
+**boldblack**
+**boldred**
+**boldgreen**
+**boldyellow**
+**boldblue**
+**boldmagenta**
+**boldcyan**
+**boldwhite**
+**boldgray**
+
+## Data
+
+The data files are stored in your `$XDG_DATA_HOME/hf` directory which
+will be created if not found. Your need read and write accesses to your
+`$XDG_DATA_HOME` dir.
+
+If `$XDG_DATA_HOME` is not set on your system, the program will use
+`$HOME/.local/share/hf` as a data directory instead.
+
+Added hosts are stored as `.yml` files. It is not recommended to edit them
+directly even though you can if you want. Remember to use `Ctrl+r` to reload
+your data files if you're still running `hardflip`. Beware that this will also
+reload your config and colors files.
+
+## Usage
+
+## Next
+
+Check `ROADMAP.md` to see the intended upgrades for `hardflip`. VNC hosts and
+fuzzysearch are big ones. But that's pretty much it. Enjoy.
diff --git a/ROADMAP.md b/ROADMAP.md
index bfb3a3e..dc60218 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -59,6 +59,7 @@
- [ ] fuzz
- [ ] undo maybe
+- [ ] better insert form
## v1.2 - ghetto bird
diff --git a/conf/config.sample.yml b/conf/config.sample.yml
index 48d3821..d80eb1d 100644
--- a/conf/config.sample.yml
+++ b/conf/config.sample.yml
@@ -18,3 +18,6 @@ percent: false
# if commented or unset,
# the command will replace hardflip
#terminal: alacritty
+
+# this will be entered by default when adding a new SSH or SSH jump host
+default_ssh_priv: path/to/key