mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 14:12:41 +00:00
Compare commits
419 Commits
9bb33cfaee
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
0a59fef11c
|
|||
|
fdf1ba6fb0
|
|||
|
17d83c347d
|
|||
|
c4faef634a
|
|||
|
2795a86441
|
|||
|
03244bd272
|
|||
|
37b97b00f5
|
|||
|
5d6cb3a843
|
|||
|
5561f3ccaf
|
|||
|
3a82ae15df
|
|||
|
d26ca008c0
|
|||
|
d29876b367
|
|||
|
24440f845b
|
|||
|
4a08de9573
|
|||
|
b1c3b16cc6
|
|||
|
b159565288
|
|||
|
df876d2cac
|
|||
|
e052f0c394
|
|||
|
0d916fe960
|
|||
|
1b504cca65
|
|||
|
fb0e4d705b
|
|||
|
b9f248926b
|
|||
|
f798ef2e4e
|
|||
|
fa47fcaed7
|
|||
|
f39a9113d6
|
|||
|
207e4469b2
|
|||
|
047c241df8
|
|||
|
b8bf70f117
|
|||
|
bec884f866
|
|||
|
943427b3e1
|
|||
|
eae3bfbc90
|
|||
|
6621475808
|
|||
|
090a0681ca
|
|||
|
3acaf486c0
|
|||
|
80c6eefe8c
|
|||
|
0c80780ade
|
|||
|
5ea0ef74e4
|
|||
|
5bad99f712
|
|||
|
44aec09d62
|
|||
|
a0dcba3810
|
|||
|
7356d129cc
|
|||
|
eece231724
|
|||
|
3446460827
|
|||
|
1e60f88ec4
|
|||
|
45666a5911
|
|||
|
46186e2741
|
|||
|
fe25f1bf19
|
|||
|
c8212b7587
|
|||
|
4b674c40c9
|
|||
|
8daa596205
|
|||
|
9977a8806b
|
|||
|
c667bfb8ee
|
|||
|
2ed9208e6a
|
|||
|
0be8bcd1a2
|
|||
|
dcb186393e
|
|||
|
b7ce95dc66
|
|||
|
358b9719f1
|
|||
|
89b12fc5fa
|
|||
|
23a27446df
|
|||
|
c44c2cf5ea
|
|||
|
9d6b99206a
|
|||
|
d19a33f4f0
|
|||
|
9c7d395c6b
|
|||
|
2f9c68acfb
|
|||
|
df109c3803
|
|||
|
cbe53484fa
|
|||
|
2aa9f4e839
|
|||
|
ad593bc25f
|
|||
|
790ba581aa
|
|||
|
e57262b4d3
|
|||
|
e63e4f4fab
|
|||
|
86d3a54e3b
|
|||
|
cf05f11759
|
|||
|
059dba6f18
|
|||
|
00c9c77bcc
|
|||
|
52cbe2ad89
|
|||
|
f1b65e955e
|
|||
|
3c98a008c8
|
|||
|
74011a46bc
|
|||
|
e972dd331c
|
|||
|
9c007c9434
|
|||
|
381a0450e5
|
|||
|
af7b46efa5
|
|||
|
f269906fd5
|
|||
|
307a971371
|
|||
|
6b13291fff
|
|||
|
b4b7fa0a84
|
|||
|
d166c246ef
|
|||
|
746167a9c8
|
|||
|
419752b381
|
|||
|
79da2db401
|
|||
|
0da387b1b9
|
|||
|
e1ed84d343
|
|||
|
d5f1d56b94
|
|||
|
97f3047989
|
|||
|
18fc260a75
|
|||
|
5811d5602b
|
|||
|
d172a0071b
|
|||
|
2995edfc86
|
|||
|
10987bd255
|
|||
|
0045e6149c
|
|||
|
3081c6b9b3
|
|||
|
e154efcac4
|
|||
|
71eae2eb5b
|
|||
|
9af452c849
|
|||
|
0636832796
|
|||
|
05cb700cb1
|
|||
|
a03617608d
|
|||
|
ef933bd3aa
|
|||
|
6b9f2203c1
|
|||
|
e0214a49d2
|
|||
|
b090430cd8
|
|||
|
e53cef27a0
|
|||
|
43f18eb45a
|
|||
|
c1eae18c67
|
|||
|
4d73fede8b
|
|||
|
ba06819221
|
|||
|
ba81c53054
|
|||
|
36fd0558b0
|
|||
|
1b349b11c3
|
|||
|
26f2b360e3
|
|||
|
2ac8560de1
|
|||
|
f4341f3b5f
|
|||
|
9ab1bed56a
|
|||
|
def9a00b76
|
|||
|
d1e9e3cc5a
|
|||
|
005403f939
|
|||
|
9c7940b5fa
|
|||
|
2949a85159
|
|||
|
737f9bfb2c
|
|||
|
654c61a460
|
|||
|
6f14542b7d
|
|||
|
63e698acb5
|
|||
|
aec01d5876
|
|||
|
95ffc9fa44
|
|||
|
b45503717f
|
|||
|
8acc2e6647
|
|||
|
f5705e9809
|
|||
|
eda3213f72
|
|||
|
d21e9931eb
|
|||
|
ed76943b79
|
|||
|
4909aa1fcb
|
|||
|
fcfbfac7dd
|
|||
|
281c26ed71
|
|||
|
cb479a5370
|
|||
|
32bdafff4f
|
|||
|
1006821a9c
|
|||
|
3b89eb4877
|
|||
|
45fa5196a7
|
|||
|
f94d724d67
|
|||
|
a6fcc8a460
|
|||
|
3799a81f05
|
|||
|
97ed707936
|
|||
|
|
6aee095859 | ||
|
|
461d06f681 | ||
|
|
2f626d4664 | ||
| b87348da96 | |||
|
4fcd2f43fd
|
|||
|
d1dffb632f
|
|||
|
1196849c3b
|
|||
|
e77b3e7535
|
|||
|
ee2898053b
|
|||
|
f1202d77f3
|
|||
|
087d7963e8
|
|||
|
8b25509344
|
|||
|
0034ac6d87
|
|||
|
5c6409c2e9
|
|||
|
8a63efd6cf
|
|||
|
7d4a0714d0
|
|||
|
b454c5d01d
|
|||
|
e003be5bee
|
|||
|
0bb288b3d6
|
|||
|
23a5dc0bdc
|
|||
|
72ff2e6316
|
|||
|
390230e532
|
|||
|
a006539bf1
|
|||
|
6332eafea5
|
|||
|
933ce337a1
|
|||
|
ae73074f6a
|
|||
|
63c8645051
|
|||
|
aec425c7d2
|
|||
|
fa6a482f2f
|
|||
|
dff77ae065
|
|||
|
bac516d446
|
|||
|
4674b132f3
|
|||
|
fd22a4ab4a
|
|||
|
18fce8e2bb
|
|||
|
0922f7578f
|
|||
|
335b60f43c
|
|||
|
99110dea2a
|
|||
|
2eb831e565
|
|||
|
53c439a418
|
|||
|
77c168cc99
|
|||
|
cfc846e2f7
|
|||
|
55d7199315
|
|||
|
5ddf6c3927
|
|||
|
dd9c018f99
|
|||
|
1eea0b84a7
|
|||
|
8d21e9a9fe
|
|||
|
52b78aadf8
|
|||
|
7178a12893
|
|||
|
931903d18c
|
|||
|
7024182f49
|
|||
|
7aec9d1610
|
|||
|
5946a177fb
|
|||
|
7c08fec16b
|
|||
|
78e40a9401
|
|||
|
b5198a5df6
|
|||
|
54fe479ee1
|
|||
|
503df7ce33
|
|||
|
009efbb952
|
|||
|
b1fb505ac5
|
|||
|
6721b2a8c5
|
|||
|
a4a560eb3d
|
|||
|
a7e6bc893c
|
|||
|
90c97263cb
|
|||
|
dccb1ca0a3
|
|||
|
f729bedc99
|
|||
|
4edf92e034
|
|||
|
5e8fbbcbab
|
|||
|
6d6f24467f
|
|||
|
cc47106e74
|
|||
|
bad3282dc5
|
|||
|
33e6683369
|
|||
|
c38348e62c
|
|||
|
55257e7c28
|
|||
|
318e7c7f95
|
|||
|
b6ce570f1d
|
|||
|
f911bfb7f1
|
|||
|
d32d0cf64f
|
|||
|
1def0356d7
|
|||
|
4d4b8c9945
|
|||
|
cedb6d8ab7
|
|||
|
eae42b40b8
|
|||
|
42e962d439
|
|||
|
27767d3948
|
|||
|
8bb6d35acd
|
|||
|
50191dde0c
|
|||
|
d4f85a6786
|
|||
|
1ee8cad635
|
|||
|
93fe3b6864
|
|||
|
e23e861101
|
|||
|
45bcf8771c
|
|||
|
ab2f4356a3
|
|||
|
26bc6635af
|
|||
|
0b166ad757
|
|||
|
eb4c6990ec
|
|||
|
f37b5f1db2
|
|||
|
dccf54e115
|
|||
|
c88d070b86
|
|||
|
1305b6708c
|
|||
|
e15a0ef007
|
|||
|
6a14830189
|
|||
|
ede7e4288b
|
|||
|
026a998fc4
|
|||
|
a7033b749e
|
|||
|
7d4e518479
|
|||
|
2d878f8c63
|
|||
|
cefdf21fc8
|
|||
|
c89b0e307c
|
|||
|
c383471903
|
|||
|
ba9a343452
|
|||
|
d78ec7f853
|
|||
|
4ae6389ae8
|
|||
|
e60f049f10
|
|||
|
a0a958defb
|
|||
|
b9481443a7
|
|||
|
a9f7317e30
|
|||
|
07272176cd
|
|||
|
51e2173084
|
|||
|
4314d28c01
|
|||
|
41760ac195
|
|||
|
edc3e9c74e
|
|||
|
eddb346e30
|
|||
|
1a3442dee7
|
|||
|
a05e8f41bd
|
|||
|
c6a0056ad6
|
|||
|
d5ab230d3f
|
|||
|
474746e296
|
|||
|
1a729e7281
|
|||
|
5aceabd878
|
|||
|
ea6737e55c
|
|||
|
28903f8078
|
|||
|
e5baef9bac
|
|||
|
9ae31715a3
|
|||
|
15b488f3a5
|
|||
|
6946389fac
|
|||
|
7903860e32
|
|||
|
8ddf08eb4b
|
|||
|
6b1e1412c3
|
|||
|
2ee186b8a2
|
|||
|
a42aad3fec
|
|||
|
35b7dca7e4
|
|||
|
129f452045
|
|||
|
824d3e20da
|
|||
|
cf7903e9ed
|
|||
|
60656734f1
|
|||
|
d277706034
|
|||
|
1e94c4181f
|
|||
|
bef4bbea5f
|
|||
|
460d9bb180
|
|||
|
2ea4540cba
|
|||
|
73d4da7106
|
|||
|
6107a658bb
|
|||
|
29dc54f5ae
|
|||
|
f10875412a
|
|||
|
379319dac7
|
|||
|
f660c0fa23
|
|||
|
81428fde31
|
|||
|
b7edc19958
|
|||
|
8bc955b12f
|
|||
| 28c71ee752 | |||
|
920d87f8e0
|
|||
|
d90146fde3
|
|||
|
40fe096baa
|
|||
|
9dd5559af5
|
|||
|
c96dd116c9
|
|||
|
92fbde1e00
|
|||
|
b77180638a
|
|||
|
a06f1cc2a6
|
|||
|
2a54c8c599
|
|||
|
dddcb877d6
|
|||
|
0bd1e6242d
|
|||
|
e8de865417
|
|||
|
3825ef78ff
|
|||
|
81582b2194
|
|||
|
9363055e5a
|
|||
|
3230fb7007
|
|||
|
6f11d99043
|
|||
|
802ea082c8
|
|||
|
9cb3792223
|
|||
|
3041d0a5e5
|
|||
|
ecf3e98e25
|
|||
|
cbe4ebc538
|
|||
|
511c7307b6
|
|||
|
30ac84ecac
|
|||
|
547cc41436
|
|||
|
3fd33cd92e
|
|||
|
8c83898abf
|
|||
|
3fc1054206
|
|||
|
6c6c5c507d
|
|||
|
b627d68ae3
|
|||
|
d8feb9535d
|
|||
|
73973aed67
|
|||
|
534a902512
|
|||
|
5dc1b33da8
|
|||
|
4624fa48d3
|
|||
|
fa0cf72ae0
|
|||
|
e10715940f
|
|||
|
a5ca5b4f63
|
|||
|
26b98e444d
|
|||
|
3796572324
|
|||
|
3382c4b165
|
|||
|
afdedc5acf
|
|||
|
ad5ade6679
|
|||
|
994ff17ceb
|
|||
|
ccc2367bc3
|
|||
|
7f98d4046f
|
|||
|
98804b3aa5
|
|||
|
53db3f3e8f
|
|||
|
86422bd68b
|
|||
|
95139d50ba
|
|||
|
15b1aded69
|
|||
|
dcac27db37
|
|||
|
a71ae05e5b
|
|||
|
9a1b00610e
|
|||
|
4f47e288ea
|
|||
|
963fcd2810
|
|||
|
9ead148f34
|
|||
|
0d8364eaf9
|
|||
|
4d42fa4dab
|
|||
|
f23adad4b0
|
|||
|
44f5c35d38
|
|||
|
25ddde6e12
|
|||
|
4a023203bd
|
|||
|
5f07ffede9
|
|||
|
6cdf85b4e3
|
|||
|
876e7f6d0e
|
|||
|
b78fb64bd3
|
|||
|
ee7854eafc
|
|||
|
ef961fcfa8
|
|||
|
6d44edc94d
|
|||
|
381d272da1
|
|||
|
38e77e8fcd
|
|||
|
2a5c2cdc58
|
|||
|
0949f9e9fa
|
|||
|
2c7bd9123f
|
|||
|
f325d61131
|
|||
|
ae13738a4d
|
|||
|
6c84428179
|
|||
|
d27f2ad490
|
|||
|
ea7033bea8
|
|||
|
a835414bd1
|
|||
|
82341d87df
|
|||
|
9e48ba0a77
|
|||
|
3518ba059f
|
|||
|
c8e869c853
|
|||
|
b1633707c2
|
|||
|
5f45954d98
|
|||
|
4fb2b70004
|
|||
|
a86116056f
|
|||
|
f43cd2c543
|
|||
|
48d0e16f6a
|
|||
|
27d66acb6e
|
|||
|
af77a986e2
|
|||
|
1dd7460ac4
|
|||
|
3badd6a046
|
|||
|
0a9e065b4d
|
|||
|
8ac60b4196
|
|||
|
7f26013d1c
|
|||
|
42cef6e0c4
|
|||
|
241c43767c
|
|||
|
4b39a3eb95
|
|||
|
1e427911ac
|
|||
|
0c15983dae
|
|||
|
68d3f5a183
|
|||
|
d9ea8d80c6
|
|||
|
eed9c143ea
|
|||
|
d06648864e
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -17,3 +17,4 @@ ansible/collections/*
|
||||
ansible/galaxy_cache/*
|
||||
ansible/galaxy_token
|
||||
**/lazy-lock.json
|
||||
**/*.target.wants/*
|
||||
|
||||
6
.gitmodules
vendored
Normal file
6
.gitmodules
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
[submodule "mail"]
|
||||
path = mail
|
||||
url = ssh://git@git.housh.dev:2222/michael/mail.git
|
||||
[submodule "env/.config/nvim"]
|
||||
path = env/.config/nvim
|
||||
url = https://github.com/m-housh/mhoush.nvim.git
|
||||
3
.markdownlint.jsonc
Normal file
3
.markdownlint.jsonc
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"MD013": { "code_blocks": false }
|
||||
}
|
||||
4
.prettierrc
Normal file
4
.prettierrc
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"proseWrap": "always"
|
||||
"printWidth": 100
|
||||
}
|
||||
35
Makefile
35
Makefile
@@ -1,35 +0,0 @@
|
||||
BREWPATH ?= /opt/homebrew/bin
|
||||
BREW = $(BREWPATH)/brew
|
||||
DOTS = $(BREWPATH)/dots
|
||||
APPDIR ?= /Applications
|
||||
|
||||
# This does not work inside of a make command.
|
||||
bootstrap-homebrew:
|
||||
xcode-select --install || true
|
||||
source "$(PWD)/scripts/install-brew.sh"
|
||||
|
||||
# Install the dots application manager.
|
||||
install-dots:
|
||||
"$(BREW)" tap m-housh/formula
|
||||
"$(BREW)" install dots
|
||||
|
||||
bootstrap-minimal: bootstrap-homebrew install-dots
|
||||
"$(DOTS)" install --minimal "$(APPDIR)"
|
||||
|
||||
bootstrap: bootstrap-homebrew install-dots
|
||||
"$(DOTS)" install --full "$(APPDIR)"
|
||||
|
||||
# make a local zsh configuration file, to extend
|
||||
# the normal .zshrc for configuration that is only
|
||||
# relevant on the local machine.
|
||||
zshrc-local:
|
||||
# check if a file already exists or not and create it if not.
|
||||
test -f "$(PWD)/zsh/config/.zshrc-local" \
|
||||
|| echo "#!/usr/bin/env zsh" > "$(PWD)/zsh/config/.zshrc-local"
|
||||
# add symlink to appropriate location if doesn't exist.
|
||||
test -L "$(HOME)/.config/zsh/.zshrc-local" \
|
||||
|| ln -sfv "$(PWD)/zsh/config/.zshrc-local" "$(HOME)/.config/zsh/"
|
||||
# open the file to edit.
|
||||
vim "$(PWD)/zsh/config/.zshrc-local"
|
||||
|
||||
default: bootstrap
|
||||
47
README.md
47
README.md
@@ -1,20 +1,16 @@
|
||||
# My Dotfiles
|
||||
|
||||
This is a repository for my dotfiles. Be warned that these may often change and
|
||||
that the installation documentation may not always be correct as things
|
||||
progress. In general the setup process is something that is only done when
|
||||
a new machine is purchased or I feel like testing in a virtual machine (which
|
||||
does not happen often). It is helpful to have an understanding of what these
|
||||
commands do on your own.
|
||||
This is a repository for my dotfiles. Be warned that these may often change and that the installation documentation may
|
||||
not always be correct as things progress. In general the setup process is something that is only done when a new machine
|
||||
is purchased or I feel like testing in a virtual machine (which does not happen often). It is helpful to have an
|
||||
understanding of what these commands do on your own.
|
||||
|
||||
In general no pull-requests or changes will be accepted, however you can
|
||||
generate an issue if you find a problem.
|
||||
In general no pull-requests or changes will be accepted, however you can generate an issue if you find a problem.
|
||||
|
||||
It currently will install homebrew and the following homebrew formula.
|
||||
|
||||
Most of the functionality is contained in the
|
||||
[dots](https://github.com/m-housh/dots) project, that is a companion to manage
|
||||
the dotfiles, which expects the dotfiles directory to be at `~/.dotfiles`.
|
||||
Most of the functionality is contained in the [dots](https://github.com/m-housh/dots) project, that is a companion to
|
||||
manage the dotfiles, which expects the dotfiles directory to be at `~/.dotfiles`.
|
||||
|
||||
```
|
||||
fd
|
||||
@@ -78,15 +74,14 @@ On a fresh system run the following command from the dotfiles root.
|
||||
make bootstrap
|
||||
```
|
||||
|
||||
This start by installing homebrew, then install the required homebrew formulas and casks. Next it will use
|
||||
`gnu-stow` to symlink configuration files to the appropriate locations. And finally, it will download
|
||||
applications from the `App Store`. When the bootstrap command is done it will open up the `~/Downloads` folder
|
||||
for the few applications that get downloaded from the internet, so that you can finish the installation of those applications.
|
||||
This start by installing homebrew, then install the required homebrew formulas and casks. Next it will use `gnu-stow` to
|
||||
symlink configuration files to the appropriate locations. And finally, it will download applications from the
|
||||
`App Store`. When the bootstrap command is done it will open up the `~/Downloads` folder for the few applications that
|
||||
get downloaded from the internet, so that you can finish the installation of those applications.
|
||||
|
||||
### Minimal Setup
|
||||
|
||||
If you would like to just setup minimal stuff, link dotfiles, and install brews.
|
||||
Then you can run the following command.
|
||||
If you would like to just setup minimal stuff, link dotfiles, and install brews. Then you can run the following command.
|
||||
|
||||
```bash
|
||||
make bootstrap-minimal
|
||||
@@ -100,14 +95,13 @@ source scripts/setup_defaults
|
||||
|
||||
## Post Installation
|
||||
|
||||
After everything has finished up, you will be able to open `iTerm2` and load
|
||||
the profile which should now be symlinked to `~/.config/macOS/iterm/profile.json`
|
||||
After everything has finished up, you will be able to open `iTerm2` and load the profile which should now be symlinked
|
||||
to `~/.config/macOS/iterm/profile.json`
|
||||
|
||||
## Make commands
|
||||
|
||||
It is also possible to not do the full bootstrapping. If you would only like
|
||||
to install homebrew (without any formula or casks) then you can run the following
|
||||
command.
|
||||
It is also possible to not do the full bootstrapping. If you would only like to install homebrew (without any formula or
|
||||
casks) then you can run the following command.
|
||||
|
||||
```
|
||||
make bootstrap-homebrew
|
||||
@@ -115,13 +109,12 @@ make bootstrap-homebrew
|
||||
|
||||
## Other Make Commands
|
||||
|
||||
If you would like to setup any specific `zsh` configuration that is only for
|
||||
the local machine then you can run the following command.
|
||||
If you would like to setup any specific `zsh` configuration that is only for the local machine then you can run the
|
||||
following command.
|
||||
|
||||
```bash
|
||||
make zshrc-local
|
||||
```
|
||||
|
||||
This will generate and symlink a file that you can use to extend the default
|
||||
`zshrc` configuration. In general, I use this to set custom location for
|
||||
homebrew casks to be installed on certain machines.
|
||||
This will generate and symlink a file that you can use to extend the default `zshrc` configuration. In general, I use
|
||||
this to set custom location for homebrew casks to be installed on certain machines.
|
||||
|
||||
62
TODO.md
62
TODO.md
@@ -1,7 +1,59 @@
|
||||
# TODO
|
||||
|
||||
- Add zsh functions to dots cli manager.
|
||||
- Add tmux plugins to dots cli manager.
|
||||
- Add tmux-powerline linking to `dots` cli manager.
|
||||
- Clean up zet commands, maybe make a gum / fzf filter script.
|
||||
- Update README to reflect ansible installation
|
||||
A list of in-progress and completed todo's.
|
||||
|
||||
## Arch Todos
|
||||
|
||||
- [ ] Update README, it's way out of date.
|
||||
- [x] Separate scripts that are used for configurations / store them somewhere aside
|
||||
from `~/.local/bin`
|
||||
- [x] Add neomutt configuration files into the repo (or probably a private repo)
|
||||
- [x] Clipse didn't work when installed on a new machine when I try to use the
|
||||
config in the dotfiles, but works if I use the default config. Need to explore
|
||||
why (current thoughts are it has to do with creating the
|
||||
clipboard_history.json file and not letting clipse do it automatically).
|
||||
- [x] Need to add the following system packages for neovim/render-markdown.nvim
|
||||
- [x] `libtexprintf`
|
||||
- [ ] Add pipewire-zeroconf to runs.
|
||||
- [ ] Setup pipewire config to allow streaming output to homepod's.
|
||||
- [See arch.wiki](https://wiki.archlinux.org/title/PipeWire)
|
||||
|
||||
### Bootstrapping a new machine
|
||||
|
||||
- [ ] Need to confirm bootstrap does things properly with git submodules. Currently the
|
||||
system run handles installing packages needed for my yubikey, probably need to automate
|
||||
installing the public key into the keyring.
|
||||
- [x] Add gpg public key import into `runs/after/system`
|
||||
- [ ] Need to ensure ssh keys are setup before private submodules are loaded / installed,
|
||||
so I need to make sure that Yubikey setup runs early and works for ssh authentication.
|
||||
- [ ] Setup a new machine / virtual machine to test, as it's hard to test the scripts once a machine is setup.
|
||||
- [ ] Need to add `repos` script when bootstrapping.
|
||||
|
||||
### Keyboard / kanata
|
||||
|
||||
- [x] Move keyboard (kanata) systemd service to be started as a '--user' service, as
|
||||
it seems to not work when used on a desktop (mac mini) vs. laptop.
|
||||
- [x] Need to update kanatactl to generate udev rules, etc. (see
|
||||
here)[https://github.com/jtroo/kanata/blob/main/docs/setup-linux.md]
|
||||
- [ ] Need to rethink symbol / number keyboard layers.
|
||||
- [ ] Move symbols to their own layer.
|
||||
- [ ] I would like to have a symbols layer that I can hold modifier keys with a symbol
|
||||
and would also like to possibly pass through underlying key / experiment so that
|
||||
I can use default keybinds in certain applications (i.e. neovim `[b`, etc.).
|
||||
- [x] Remove pkg sub-commands from kanatactl, it is available via package manager now.
|
||||
|
||||
### Runs (package installs)
|
||||
|
||||
- [x] Should runs just export / echo a list of packages, then the `run` script can handle the package
|
||||
manager options / command.
|
||||
- [x] Think about adding a `before` and an `after` directory for runs, so that they can perform setup tasks after
|
||||
the packages are installed.
|
||||
- [x] The `before` and `after` file should have the same name as the `run` file.
|
||||
- [ ] This could allow to remove / move the `system` script into the `after` directory.
|
||||
- [ ] Look into install packages with `nvim --headless`, not sure if this possible when using the new package
|
||||
manager builtin to neovim as it prompts for user input to install packages.
|
||||
- With lazy this was done with `nvim --headless "+Lazy! sync" +qa`
|
||||
|
||||
### Mail
|
||||
|
||||
- [ ] Remove outlook / office email setup, this has been moved to proton.
|
||||
|
||||
@@ -1,985 +0,0 @@
|
||||
[defaults]
|
||||
# (boolean) By default Ansible will issue a warning when received from a task action (module or action plugin)
|
||||
# These warnings can be silenced by adjusting this setting to False.
|
||||
;action_warnings=True
|
||||
|
||||
# (list) Accept list of cowsay templates that are 'safe' to use, set to empty list if you want to enable all installed templates.
|
||||
;cowsay_enabled_stencils=bud-frogs, bunny, cheese, daemon, default, dragon, elephant-in-snake, elephant, eyes, hellokitty, kitty, luke-koala, meow, milk, moofasa, moose, ren, sheep, small, stegosaurus, stimpy, supermilker, three-eyes, turkey, turtle, tux, udder, vader-koala, vader, www
|
||||
|
||||
# (string) Specify a custom cowsay path or swap in your cowsay implementation of choice
|
||||
;cowpath=
|
||||
|
||||
# (string) This allows you to chose a specific cowsay stencil for the banners or use 'random' to cycle through them.
|
||||
;cow_selection=default
|
||||
|
||||
# (boolean) This option forces color mode even when running without a TTY or the "nocolor" setting is True.
|
||||
;force_color=False
|
||||
|
||||
# (path) The default root path for Ansible config files on the controller.
|
||||
home=~/.config/ansible
|
||||
|
||||
# (boolean) This setting allows suppressing colorizing output, which is used to give a better indication of failure and status information.
|
||||
;nocolor=False
|
||||
|
||||
# (boolean) If you have cowsay installed but want to avoid the 'cows' (why????), use this.
|
||||
;nocows=False
|
||||
|
||||
# (boolean) Sets the default value for the any_errors_fatal keyword, if True, Task failures will be considered fatal errors.
|
||||
;any_errors_fatal=False
|
||||
|
||||
# (path) The password file to use for the become plugin. --become-password-file.
|
||||
# If executable, it will be run and the resulting stdout will be used as the password.
|
||||
;become_password_file=
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for Become Plugins.
|
||||
;become_plugins={{ ANSIBLE_HOME ~ "/plugins/become:/usr/share/ansible/plugins/become" }}
|
||||
|
||||
# (string) Chooses which cache plugin to use, the default 'memory' is ephemeral.
|
||||
;fact_caching=memory
|
||||
|
||||
# (string) Defines connection or path information for the cache plugin
|
||||
;fact_caching_connection=
|
||||
|
||||
# (string) Prefix to use for cache plugin files/tables
|
||||
;fact_caching_prefix=ansible_facts
|
||||
|
||||
# (integer) Expiration timeout for the cache plugin data
|
||||
;fact_caching_timeout=86400
|
||||
|
||||
# (list) List of enabled callbacks, not all callbacks need enabling, but many of those shipped with Ansible do as we don't want them activated by default.
|
||||
;callbacks_enabled=
|
||||
|
||||
# (string) When a collection is loaded that does not support the running Ansible version (with the collection metadata key `requires_ansible`).
|
||||
;collections_on_ansible_version_mismatch=warning
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for collections content. Collections must be in nested *subdirectories*, not directly in these directories. For example, if ``COLLECTIONS_PATHS`` includes ``'{{ ANSIBLE_HOME ~ "/collections" }}'``, and you want to add ``my.collection`` to that directory, it must be saved as ``'{{ ANSIBLE_HOME} ~ "/collections/ansible_collections/my/collection" }}'``.
|
||||
|
||||
;collections_path={{ ANSIBLE_HOME ~ "/collections:/usr/share/ansible/collections" }}
|
||||
|
||||
# (boolean) A boolean to enable or disable scanning the sys.path for installed collections
|
||||
;collections_scan_sys_path=True
|
||||
|
||||
# (path) The password file to use for the connection plugin. --connection-password-file.
|
||||
;connection_password_file=
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for Action Plugins.
|
||||
;action_plugins={{ ANSIBLE_HOME ~ "/plugins/action:/usr/share/ansible/plugins/action" }}
|
||||
|
||||
# (boolean) When enabled, this option allows lookup plugins (whether used in variables as ``{{lookup('foo')}}`` or as a loop as with_foo) to return data that is not marked 'unsafe'.
|
||||
# By default, such data is marked as unsafe to prevent the templating engine from evaluating any jinja2 templating language, as this could represent a security risk. This option is provided to allow for backward compatibility, however users should first consider adding allow_unsafe=True to any lookups which may be expected to contain data which may be run through the templating engine late
|
||||
;allow_unsafe_lookups=False
|
||||
|
||||
# (boolean) This controls whether an Ansible playbook should prompt for a login password. If using SSH keys for authentication, you probably do not need to change this setting.
|
||||
;ask_pass=False
|
||||
|
||||
# (boolean) This controls whether an Ansible playbook should prompt for a vault password.
|
||||
;ask_vault_pass=False
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for Cache Plugins.
|
||||
;cache_plugins={{ ANSIBLE_HOME ~ "/plugins/cache:/usr/share/ansible/plugins/cache" }}
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for Callback Plugins.
|
||||
;callback_plugins={{ ANSIBLE_HOME ~ "/plugins/callback:/usr/share/ansible/plugins/callback" }}
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for Cliconf Plugins.
|
||||
;cliconf_plugins={{ ANSIBLE_HOME ~ "/plugins/cliconf:/usr/share/ansible/plugins/cliconf" }}
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for Connection Plugins.
|
||||
;connection_plugins={{ ANSIBLE_HOME ~ "/plugins/connection:/usr/share/ansible/plugins/connection" }}
|
||||
|
||||
# (boolean) Toggles debug output in Ansible. This is *very* verbose and can hinder multiprocessing. Debug output can also include secret information despite no_log settings being enabled, which means debug mode should not be used in production.
|
||||
;debug=False
|
||||
|
||||
# (string) This indicates the command to use to spawn a shell under for Ansible's execution needs on a target. Users may need to change this in rare instances when shell usage is constrained, but in most cases it may be left as is.
|
||||
;executable=/bin/sh
|
||||
|
||||
# (string) This option allows you to globally configure a custom path for 'local_facts' for the implied :ref:`ansible_collections.ansible.builtin.setup_module` task when using fact gathering.
|
||||
# If not set, it will fallback to the default from the ``ansible.builtin.setup`` module: ``/etc/ansible/facts.d``.
|
||||
# This does **not** affect user defined tasks that use the ``ansible.builtin.setup`` module.
|
||||
# The real action being created by the implicit task is currently ``ansible.legacy.gather_facts`` module, which then calls the configured fact modules, by default this will be ``ansible.builtin.setup`` for POSIX systems but other platforms might have different defaults.
|
||||
;fact_path=
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for Jinja2 Filter Plugins.
|
||||
;filter_plugins={{ ANSIBLE_HOME ~ "/plugins/filter:/usr/share/ansible/plugins/filter" }}
|
||||
|
||||
# (boolean) This option controls if notified handlers run on a host even if a failure occurs on that host.
|
||||
# When false, the handlers will not run if a failure has occurred on a host.
|
||||
# This can also be set per play or on the command line. See Handlers and Failure for more details.
|
||||
;force_handlers=False
|
||||
|
||||
# (integer) Maximum number of forks Ansible will use to execute tasks on target hosts.
|
||||
;forks=5
|
||||
|
||||
# (string) This setting controls the default policy of fact gathering (facts discovered about remote systems).
|
||||
# This option can be useful for those wishing to save fact gathering time. Both 'smart' and 'explicit' will use the cache plugin.
|
||||
;gathering=implicit
|
||||
|
||||
# (list) Set the `gather_subset` option for the :ref:`ansible_collections.ansible.builtin.setup_module` task in the implicit fact gathering. See the module documentation for specifics.
|
||||
# It does **not** apply to user defined ``ansible.builtin.setup`` tasks.
|
||||
;gather_subset=
|
||||
|
||||
# (integer) Set the timeout in seconds for the implicit fact gathering, see the module documentation for specifics.
|
||||
# It does **not** apply to user defined :ref:`ansible_collections.ansible.builtin.setup_module` tasks.
|
||||
;gather_timeout=
|
||||
|
||||
# (string) This setting controls how duplicate definitions of dictionary variables (aka hash, map, associative array) are handled in Ansible.
|
||||
# This does not affect variables whose values are scalars (integers, strings) or arrays.
|
||||
# **WARNING**, changing this setting is not recommended as this is fragile and makes your content (plays, roles, collections) non portable, leading to continual confusion and misuse. Don't change this setting unless you think you have an absolute need for it.
|
||||
# We recommend avoiding reusing variable names and relying on the ``combine`` filter and ``vars`` and ``varnames`` lookups to create merged versions of the individual variables. In our experience this is rarely really needed and a sign that too much complexity has been introduced into the data structures and plays.
|
||||
# For some uses you can also look into custom vars_plugins to merge on input, even substituting the default ``host_group_vars`` that is in charge of parsing the ``host_vars/`` and ``group_vars/`` directories. Most users of this setting are only interested in inventory scope, but the setting itself affects all sources and makes debugging even harder.
|
||||
# All playbooks and roles in the official examples repos assume the default for this setting.
|
||||
# Changing the setting to ``merge`` applies across variable sources, but many sources will internally still overwrite the variables. For example ``include_vars`` will dedupe variables internally before updating Ansible, with 'last defined' overwriting previous definitions in same file.
|
||||
# The Ansible project recommends you **avoid ``merge`` for new projects.**
|
||||
# It is the intention of the Ansible developers to eventually deprecate and remove this setting, but it is being kept as some users do heavily rely on it. New projects should **avoid 'merge'**.
|
||||
;hash_behaviour=replace
|
||||
|
||||
# (pathlist) Comma separated list of Ansible inventory sources
|
||||
;inventory=/etc/ansible/hosts
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for HttpApi Plugins.
|
||||
;httpapi_plugins={{ ANSIBLE_HOME ~ "/plugins/httpapi:/usr/share/ansible/plugins/httpapi" }}
|
||||
|
||||
# (float) This sets the interval (in seconds) of Ansible internal processes polling each other. Lower values improve performance with large playbooks at the expense of extra CPU load. Higher values are more suitable for Ansible usage in automation scenarios, when UI responsiveness is not required but CPU usage might be a concern.
|
||||
# The default corresponds to the value hardcoded in Ansible <= 2.1
|
||||
;internal_poll_interval=0.001
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for Inventory Plugins.
|
||||
;inventory_plugins={{ ANSIBLE_HOME ~ "/plugins/inventory:/usr/share/ansible/plugins/inventory" }}
|
||||
|
||||
# (string) This is a developer-specific feature that allows enabling additional Jinja2 extensions.
|
||||
# See the Jinja2 documentation for details. If you do not know what these do, you probably don't need to change this setting :)
|
||||
;jinja2_extensions=[]
|
||||
|
||||
# (boolean) This option preserves variable types during template operations.
|
||||
;jinja2_native=False
|
||||
|
||||
# (boolean) Enables/disables the cleaning up of the temporary files Ansible used to execute the tasks on the remote.
|
||||
# If this option is enabled it will disable ``ANSIBLE_PIPELINING``.
|
||||
;keep_remote_files=False
|
||||
|
||||
# (boolean) Controls whether callback plugins are loaded when running /usr/bin/ansible. This may be used to log activity from the command line, send notifications, and so on. Callback plugins are always loaded for ``ansible-playbook``.
|
||||
;bin_ansible_callbacks=False
|
||||
|
||||
# (tmppath) Temporary directory for Ansible to use on the controller.
|
||||
local_tmp=~/.local/ansible/tmp
|
||||
|
||||
# (list) List of logger names to filter out of the log file
|
||||
;log_filter=
|
||||
|
||||
# (path) File to which Ansible will log on the controller. When empty logging is disabled.
|
||||
;log_path=
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for Lookup Plugins.
|
||||
;lookup_plugins={{ ANSIBLE_HOME ~ "/plugins/lookup:/usr/share/ansible/plugins/lookup" }}
|
||||
|
||||
# (string) Sets the macro for the 'ansible_managed' variable available for :ref:`ansible_collections.ansible.builtin.template_module` and :ref:`ansible_collections.ansible.windows.win_template_module`. This is only relevant for those two modules.
|
||||
;ansible_managed=Ansible managed
|
||||
|
||||
# (string) This sets the default arguments to pass to the ``ansible`` adhoc binary if no ``-a`` is specified.
|
||||
;module_args=
|
||||
|
||||
# (string) Compression scheme to use when transferring Python modules to the target.
|
||||
;module_compression=ZIP_DEFLATED
|
||||
|
||||
# (string) Module to use with the ``ansible`` AdHoc command, if none is specified via ``-m``.
|
||||
;module_name=command
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for Modules.
|
||||
;library={{ ANSIBLE_HOME ~ "/plugins/modules:/usr/share/ansible/plugins/modules" }}
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for Module utils files, which are shared by modules.
|
||||
;module_utils={{ ANSIBLE_HOME ~ "/plugins/module_utils:/usr/share/ansible/plugins/module_utils" }}
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for Netconf Plugins.
|
||||
;netconf_plugins={{ ANSIBLE_HOME ~ "/plugins/netconf:/usr/share/ansible/plugins/netconf" }}
|
||||
|
||||
# (boolean) Toggle Ansible's display and logging of task details, mainly used to avoid security disclosures.
|
||||
;no_log=False
|
||||
|
||||
# (boolean) Toggle Ansible logging to syslog on the target when it executes tasks. On Windows hosts this will disable a newer style PowerShell modules from writing to the event log.
|
||||
;no_target_syslog=False
|
||||
|
||||
# (raw) What templating should return as a 'null' value. When not set it will let Jinja2 decide.
|
||||
;null_representation=
|
||||
|
||||
# (integer) For asynchronous tasks in Ansible (covered in Asynchronous Actions and Polling), this is how often to check back on the status of those tasks when an explicit poll interval is not supplied. The default is a reasonably moderate 15 seconds which is a tradeoff between checking in frequently and providing a quick turnaround when something may have completed.
|
||||
;poll_interval=15
|
||||
|
||||
# (path) Option for connections using a certificate or key file to authenticate, rather than an agent or passwords, you can set the default value here to avoid re-specifying --private-key with every invocation.
|
||||
;private_key_file=
|
||||
|
||||
# (boolean) By default, imported roles publish their variables to the play and other roles, this setting can avoid that.
|
||||
# This was introduced as a way to reset role variables to default values if a role is used more than once in a playbook.
|
||||
# Included roles only make their variables public at execution, unlike imported roles which happen at playbook compile time.
|
||||
;private_role_vars=False
|
||||
|
||||
# (integer) Port to use in remote connections, when blank it will use the connection plugin default.
|
||||
;remote_port=
|
||||
|
||||
# (string) Sets the login user for the target machines
|
||||
# When blank it uses the connection plugin's default, normally the user currently executing Ansible.
|
||||
;remote_user=
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for Roles.
|
||||
roles_path={{ ANSIBLE_HOME ~ "~/.local/ansible/roles:/roles:/usr/share/ansible/roles:/etc/ansible/roles" }}
|
||||
|
||||
# (string) Set the main callback used to display Ansible output. You can only have one at a time.
|
||||
# You can have many other callbacks, but just one can be in charge of stdout.
|
||||
# See :ref:`callback_plugins` for a list of available options.
|
||||
;stdout_callback=default
|
||||
|
||||
# (string) Set the default strategy used for plays.
|
||||
;strategy=linear
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for Strategy Plugins.
|
||||
;strategy_plugins={{ ANSIBLE_HOME ~ "/plugins/strategy:/usr/share/ansible/plugins/strategy" }}
|
||||
|
||||
# (boolean) Toggle the use of "su" for tasks.
|
||||
;su=False
|
||||
|
||||
# (string) Syslog facility to use when Ansible logs to the remote target
|
||||
;syslog_facility=LOG_USER
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for Terminal Plugins.
|
||||
;terminal_plugins={{ ANSIBLE_HOME ~ "/plugins/terminal:/usr/share/ansible/plugins/terminal" }}
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for Jinja2 Test Plugins.
|
||||
;test_plugins={{ ANSIBLE_HOME ~ "/plugins/test:/usr/share/ansible/plugins/test" }}
|
||||
|
||||
# (integer) This is the default timeout for connection plugins to use.
|
||||
;timeout=10
|
||||
|
||||
# (string) Can be any connection plugin available to your ansible installation.
|
||||
# There is also a (DEPRECATED) special 'smart' option, that will toggle between 'ssh' and 'paramiko' depending on controller OS and ssh versions.
|
||||
;transport=ssh
|
||||
|
||||
# (boolean) When True, this causes ansible templating to fail steps that reference variable names that are likely typoed.
|
||||
# Otherwise, any '{{ template_expression }}' that contains undefined variables will be rendered in a template or ansible action line exactly as written.
|
||||
;error_on_undefined_vars=True
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for Vars Plugins.
|
||||
;vars_plugins={{ ANSIBLE_HOME ~ "/plugins/vars:/usr/share/ansible/plugins/vars" }}
|
||||
|
||||
# (string) The vault_id to use for encrypting by default. If multiple vault_ids are provided, this specifies which to use for encryption. The --encrypt-vault-id cli option overrides the configured value.
|
||||
;vault_encrypt_identity=
|
||||
|
||||
# (string) The label to use for the default vault id label in cases where a vault id label is not provided
|
||||
;vault_identity=default
|
||||
|
||||
# (list) A list of vault-ids to use by default. Equivalent to multiple --vault-id args. Vault-ids are tried in order.
|
||||
;vault_identity_list=
|
||||
|
||||
# (string) If true, decrypting vaults with a vault id will only try the password from the matching vault-id
|
||||
;vault_id_match=False
|
||||
|
||||
# (path) The vault password file to use. Equivalent to --vault-password-file or --vault-id
|
||||
# If executable, it will be run and the resulting stdout will be used as the password.
|
||||
vault_password_file=~/.local/ansible/.vaultpwd
|
||||
|
||||
# (integer) Sets the default verbosity, equivalent to the number of ``-v`` passed in the command line.
|
||||
;verbosity=0
|
||||
|
||||
# (boolean) Toggle to control the showing of deprecation warnings
|
||||
;deprecation_warnings=True
|
||||
|
||||
# (boolean) Toggle to control showing warnings related to running devel
|
||||
;devel_warning=True
|
||||
|
||||
# (boolean) Normally ``ansible-playbook`` will print a header for each task that is run. These headers will contain the name: field from the task if you specified one. If you didn't then ``ansible-playbook`` uses the task's action to help you tell which task is presently running. Sometimes you run many of the same action and so you want more information about the task to differentiate it from others of the same action. If you set this variable to True in the config then ``ansible-playbook`` will also include the task's arguments in the header.
|
||||
# This setting defaults to False because there is a chance that you have sensitive values in your parameters and you do not want those to be printed.
|
||||
# If you set this to True you should be sure that you have secured your environment's stdout (no one can shoulder surf your screen and you aren't saving stdout to an insecure file) or made sure that all of your playbooks explicitly added the ``no_log: True`` parameter to tasks which have sensitive values See How do I keep secret data in my playbook? for more information.
|
||||
;display_args_to_stdout=False
|
||||
|
||||
# (boolean) Toggle to control displaying skipped task/host entries in a task in the default callback
|
||||
;display_skipped_hosts=True
|
||||
|
||||
# (string) Root docsite URL used to generate docs URLs in warning/error text; must be an absolute URL with valid scheme and trailing slash.
|
||||
;docsite_root_url=https://docs.ansible.com/ansible-core/
|
||||
|
||||
# (pathspec) Colon separated paths in which Ansible will search for Documentation Fragments Plugins.
|
||||
;doc_fragment_plugins={{ ANSIBLE_HOME ~ "/plugins/doc_fragments:/usr/share/ansible/plugins/doc_fragments" }}
|
||||
|
||||
# (string) By default Ansible will issue a warning when a duplicate dict key is encountered in YAML.
|
||||
# These warnings can be silenced by adjusting this setting to False.
|
||||
;duplicate_dict_key=warn
|
||||
|
||||
# (boolean) Whether or not to enable the task debugger, this previously was done as a strategy plugin.
|
||||
# Now all strategy plugins can inherit this behavior. The debugger defaults to activating when
|
||||
# a task is failed on unreachable. Use the debugger keyword for more flexibility.
|
||||
;enable_task_debugger=False
|
||||
|
||||
# (boolean) Toggle to allow missing handlers to become a warning instead of an error when notifying.
|
||||
;error_on_missing_handler=True
|
||||
|
||||
# (list) Which modules to run during a play's fact gathering stage, using the default of 'smart' will try to figure it out based on connection type.
|
||||
# If adding your own modules but you still want to use the default Ansible facts, you will want to include 'setup' or corresponding network module to the list (if you add 'smart', Ansible will also figure it out).
|
||||
# This does not affect explicit calls to the 'setup' module, but does always affect the 'gather_facts' action (implicit or explicit).
|
||||
;facts_modules=smart
|
||||
|
||||
# (boolean) Set this to "False" if you want to avoid host key checking by the underlying tools Ansible uses to connect to the host
|
||||
;host_key_checking=True
|
||||
|
||||
# (boolean) Facts are available inside the `ansible_facts` variable, this setting also pushes them as their own vars in the main namespace.
|
||||
# Unlike inside the `ansible_facts` dictionary, these will have an `ansible_` prefix.
|
||||
;inject_facts_as_vars=True
|
||||
|
||||
# (string) Path to the Python interpreter to be used for module execution on remote targets, or an automatic discovery mode. Supported discovery modes are ``auto`` (the default), ``auto_silent``, ``auto_legacy``, and ``auto_legacy_silent``. All discovery modes employ a lookup table to use the included system Python (on distributions known to include one), falling back to a fixed ordered list of well-known Python interpreter locations if a platform-specific default is not available. The fallback behavior will issue a warning that the interpreter should be set explicitly (since interpreters installed later may change which one is used). This warning behavior can be disabled by setting ``auto_silent`` or ``auto_legacy_silent``. The value of ``auto_legacy`` provides all the same behavior, but for backwards-compatibility with older Ansible releases that always defaulted to ``/usr/bin/python``, will use that interpreter if present.
|
||||
interpreter_python=auto_silent
|
||||
|
||||
# (boolean) If 'false', invalid attributes for a task will result in warnings instead of errors
|
||||
;invalid_task_attribute_failed=True
|
||||
|
||||
# (boolean) Toggle to control showing warnings related to running a Jinja version older than required for jinja2_native
|
||||
;jinja2_native_warning=True
|
||||
|
||||
# (boolean) By default Ansible will issue a warning when there are no hosts in the inventory.
|
||||
# These warnings can be silenced by adjusting this setting to False.
|
||||
;localhost_warning=True
|
||||
|
||||
# (int) Maximum size of files to be considered for diff display
|
||||
;max_diff_size=104448
|
||||
|
||||
# (list) List of extensions to ignore when looking for modules to load
|
||||
# This is for rejecting script and binary module fallback extensions
|
||||
;module_ignore_exts={{(REJECT_EXTS + ('.yaml', '.yml', '.ini'))}}
|
||||
|
||||
# (bool) Enables whether module responses are evaluated for containing non UTF-8 data
|
||||
# Disabling this may result in unexpected behavior
|
||||
# Only ansible-core should evaluate this configuration
|
||||
;module_strict_utf8_response=True
|
||||
|
||||
# (list) TODO: write it
|
||||
;network_group_modules=eos, nxos, ios, iosxr, junos, enos, ce, vyos, sros, dellos9, dellos10, dellos6, asa, aruba, aireos, bigip, ironware, onyx, netconf, exos, voss, slxos
|
||||
|
||||
# (boolean) Previously Ansible would only clear some of the plugin loading caches when loading new roles, this led to some behaviours in which a plugin loaded in previous plays would be unexpectedly 'sticky'. This setting allows to return to that behaviour.
|
||||
;old_plugin_cache_clear=False
|
||||
|
||||
# (path) A number of non-playbook CLIs have a ``--playbook-dir`` argument; this sets the default value for it.
|
||||
;playbook_dir=
|
||||
|
||||
# (string) This sets which playbook dirs will be used as a root to process vars plugins, which includes finding host_vars/group_vars
|
||||
;playbook_vars_root=top
|
||||
|
||||
# (path) A path to configuration for filtering which plugins installed on the system are allowed to be used.
|
||||
# See :ref:`plugin_filtering_config` for details of the filter file's format.
|
||||
# The default is /etc/ansible/plugin_filters.yml
|
||||
;plugin_filters_cfg=
|
||||
|
||||
# (string) Attempts to set RLIMIT_NOFILE soft limit to the specified value when executing Python modules (can speed up subprocess usage on Python 2.x. See https://bugs.python.org/issue11284). The value will be limited by the existing hard limit. Default value of 0 does not attempt to adjust existing system-defined limits.
|
||||
;python_module_rlimit_nofile=0
|
||||
|
||||
# (bool) This controls whether a failed Ansible playbook should create a .retry file.
|
||||
;retry_files_enabled=False
|
||||
|
||||
# (path) This sets the path in which Ansible will save .retry files when a playbook fails and retry files are enabled.
|
||||
# This file will be overwritten after each run with the list of failed hosts from all plays.
|
||||
;retry_files_save_path=
|
||||
|
||||
# (str) This setting can be used to optimize vars_plugin usage depending on user's inventory size and play selection.
|
||||
;run_vars_plugins=demand
|
||||
|
||||
# (bool) This adds the custom stats set via the set_stats plugin to the default output
|
||||
;show_custom_stats=False
|
||||
|
||||
# (string) Action to take when a module parameter value is converted to a string (this does not affect variables). For string parameters, values such as '1.00', "['a', 'b',]", and 'yes', 'y', etc. will be converted by the YAML parser unless fully quoted.
|
||||
# Valid options are 'error', 'warn', and 'ignore'.
|
||||
# Since 2.8, this option defaults to 'warn' but will change to 'error' in 2.12.
|
||||
;string_conversion_action=warn
|
||||
|
||||
# (boolean) Allows disabling of warnings related to potential issues on the system running ansible itself (not on the managed hosts)
|
||||
# These may include warnings about 3rd party packages or other conditions that should be resolved if possible.
|
||||
;system_warnings=True
|
||||
|
||||
# (boolean) This option defines whether the task debugger will be invoked on a failed task when ignore_errors=True is specified.
|
||||
# True specifies that the debugger will honor ignore_errors, False will not honor ignore_errors.
|
||||
;task_debugger_ignore_errors=True
|
||||
|
||||
# (integer) Set the maximum time (in seconds) that a task can run for.
|
||||
# If set to 0 (the default) there is no timeout.
|
||||
;task_timeout=0
|
||||
|
||||
# (string) Make ansible transform invalid characters in group names supplied by inventory sources.
|
||||
;force_valid_group_names=never
|
||||
|
||||
# (boolean) Toggles the use of persistence for connections.
|
||||
;use_persistent_connections=False
|
||||
|
||||
# (bool) A toggle to disable validating a collection's 'metadata' entry for a module_defaults action group. Metadata containing unexpected fields or value types will produce a warning when this is True.
|
||||
;validate_action_group_metadata=True
|
||||
|
||||
# (list) Accept list for variable plugins that require it.
|
||||
;vars_plugins_enabled=host_group_vars
|
||||
|
||||
# (list) Allows to change the group variable precedence merge order.
|
||||
;precedence=all_inventory, groups_inventory, all_plugins_inventory, all_plugins_play, groups_plugins_inventory, groups_plugins_play
|
||||
|
||||
# (string) The salt to use for the vault encryption. If it is not provided, a random salt will be used.
|
||||
;vault_encrypt_salt=
|
||||
|
||||
# (bool) Force 'verbose' option to use stderr instead of stdout
|
||||
;verbose_to_stderr=False
|
||||
|
||||
# (integer) For asynchronous tasks in Ansible (covered in Asynchronous Actions and Polling), this is how long, in seconds, to wait for the task spawned by Ansible to connect back to the named pipe used on Windows systems. The default is 5 seconds. This can be too low on slower systems, or systems under heavy load.
|
||||
# This is not the total time an async command can run for, but is a separate timeout to wait for an async command to start. The task will only start to be timed against its async_timeout once it has connected to the pipe, so the overall maximum duration the task can take will be extended by the amount specified here.
|
||||
;win_async_startup_timeout=5
|
||||
|
||||
# (list) Check all of these extensions when looking for 'variable' files which should be YAML or JSON or vaulted versions of these.
|
||||
# This affects vars_files, include_vars, inventory and vars plugins among others.
|
||||
;yaml_valid_extensions=.yml, .yaml, .json
|
||||
|
||||
# (bool) Toggle to control displaying markers when running in check mode.
|
||||
# The markers are C(DRY RUN) at the beginning and ending of playbook execution (when calling C(ansible-playbook --check)) and C(CHECK MODE) as a suffix at every play and task that is run in check mode.
|
||||
;check_mode_markers=False
|
||||
|
||||
# (bool) Toggle to control whether failed and unreachable tasks are displayed to STDERR (vs. STDOUT)
|
||||
;display_failed_stderr=False
|
||||
|
||||
# (bool) Toggle to control displaying 'ok' task/host results in a task
|
||||
;display_ok_hosts=True
|
||||
|
||||
# (bool) Configure the result format to be more readable
|
||||
# When O(result_format) is set to V(yaml) this option defaults to V(True), and defaults to V(False) when configured to V(json).
|
||||
# Setting this option to V(True) will force V(json) and V(yaml) results to always be pretty printed regardless of verbosity.
|
||||
# When set to V(True) and used with the V(yaml) result format, this option will modify module responses in an attempt to produce a more human friendly output at the expense of correctness, and should not be relied upon to aid in writing variable manipulations or conditionals. For correctness, set this option to V(False) or set O(result_format) to V(json).
|
||||
;callback_format_pretty=
|
||||
|
||||
# (str) Define the task result format used in the callback output.
|
||||
# These formats do not cause the callback to emit valid JSON or YAML formats.
|
||||
# The output contains these formats interspersed with other non-machine parsable data.
|
||||
;callback_result_format=json
|
||||
|
||||
# (bool) This adds output that shows when a task is started to execute for each host
|
||||
;show_per_host_start=False
|
||||
|
||||
# (bool) When a task fails, display the path to the file containing the failed task and the line number. This information is displayed automatically for every task when running with C(-vv) or greater verbosity.
|
||||
;show_task_path_on_failure=False
|
||||
|
||||
# (list) list of users to be expected to have admin privileges. This is used by the controller to determine how to share temporary files between the remote user and the become user.
|
||||
;admin_users=root, toor
|
||||
|
||||
# (string) Directory in which ansible will keep async job information
|
||||
;async_dir=~/.ansible_async
|
||||
|
||||
# (string) Checked when Ansible needs to execute a module as a different user.
|
||||
# If setfacl and chown both fail and do not let the different user access the module's files, they will be chgrp'd to this group.
|
||||
# In order for this to work, the remote_user and become_user must share a common group and this setting must be set to that group.
|
||||
;common_remote_group=
|
||||
|
||||
# (string) Temporary directory to use on targets when executing tasks.
|
||||
;remote_tmp=~/.ansible/tmp
|
||||
|
||||
# (list) List of valid system temporary directories on the managed machine for Ansible to validate O(remote_tmp) against, when specific permissions are needed. These must be world readable, writable, and executable. This list should only contain directories which the system administrator has pre-created with the proper ownership and permissions otherwise security issues can arise.
|
||||
# When O(remote_tmp) is required to be a system temp dir and it does not match any in the list, the first one from the list will be used instead.
|
||||
;system_tmpdirs=/var/tmp, /tmp
|
||||
|
||||
# (boolean) This makes the temporary files created on the machine world-readable and will issue a warning instead of failing the task.
|
||||
# It is useful when becoming an unprivileged user.
|
||||
;allow_world_readable_tmpfiles=False
|
||||
|
||||
|
||||
[privilege_escalation]
|
||||
# (boolean) Display an agnostic become prompt instead of displaying a prompt containing the command line supplied become method
|
||||
;agnostic_become_prompt=True
|
||||
|
||||
# (boolean) This setting controls if become is skipped when remote user and become user are the same. I.E root sudo to root.
|
||||
# If executable, it will be run and the resulting stdout will be used as the password.
|
||||
;become_allow_same_user=False
|
||||
|
||||
# (boolean) Toggles the use of privilege escalation, allowing you to 'become' another user after login.
|
||||
;become=False
|
||||
|
||||
# (boolean) Toggle to prompt for privilege escalation password.
|
||||
;become_ask_pass=False
|
||||
|
||||
# (string) executable to use for privilege escalation, otherwise Ansible will depend on PATH
|
||||
;become_exe=
|
||||
|
||||
# (string) Flags to pass to the privilege escalation executable.
|
||||
;become_flags=
|
||||
|
||||
# (string) Privilege escalation method to use when `become` is enabled.
|
||||
;become_method=sudo
|
||||
|
||||
# (string) The user your login/remote user 'becomes' when using privilege escalation, most systems will use 'root' when no user is specified.
|
||||
;become_user=root
|
||||
|
||||
|
||||
[persistent_connection]
|
||||
# (path) Specify where to look for the ansible-connection script. This location will be checked before searching $PATH.
|
||||
# If null, ansible will start with the same directory as the ansible script.
|
||||
;ansible_connection_path=
|
||||
|
||||
# (int) This controls the amount of time to wait for response from remote device before timing out persistent connection.
|
||||
;command_timeout=30
|
||||
|
||||
# (integer) This controls the retry timeout for persistent connection to connect to the local domain socket.
|
||||
;connect_retry_timeout=15
|
||||
|
||||
# (integer) This controls how long the persistent connection will remain idle before it is destroyed.
|
||||
;connect_timeout=30
|
||||
|
||||
# (path) Path to socket to be used by the connection persistence system.
|
||||
;control_path_dir={{ ANSIBLE_HOME ~ "/pc" }}
|
||||
|
||||
|
||||
[connection]
|
||||
# (boolean) This is a global option, each connection plugin can override either by having more specific options or not supporting pipelining at all.
|
||||
# Pipelining, if supported by the connection plugin, reduces the number of network operations required to execute a module on the remote server, by executing many Ansible modules without actual file transfer.
|
||||
# It can result in a very significant performance improvement when enabled.
|
||||
# However this conflicts with privilege escalation (become). For example, when using 'sudo:' operations you must first disable 'requiretty' in /etc/sudoers on all managed hosts, which is why it is disabled by default.
|
||||
# This setting will be disabled if ``ANSIBLE_KEEP_REMOTE_FILES`` is enabled.
|
||||
;pipelining=False
|
||||
|
||||
|
||||
[colors]
|
||||
# (string) Defines the color to use on 'Changed' task status
|
||||
;changed=yellow
|
||||
|
||||
# (string) Defines the default color to use for ansible-console
|
||||
;console_prompt=white
|
||||
|
||||
# (string) Defines the color to use when emitting debug messages
|
||||
;debug=dark gray
|
||||
|
||||
# (string) Defines the color to use when emitting deprecation messages
|
||||
;deprecate=purple
|
||||
|
||||
# (string) Defines the color to use when showing added lines in diffs
|
||||
;diff_add=green
|
||||
|
||||
# (string) Defines the color to use when showing diffs
|
||||
;diff_lines=cyan
|
||||
|
||||
# (string) Defines the color to use when showing removed lines in diffs
|
||||
;diff_remove=red
|
||||
|
||||
# (string) Defines the color to use when emitting error messages
|
||||
;error=red
|
||||
|
||||
# (string) Defines the color to use for highlighting
|
||||
;highlight=white
|
||||
|
||||
# (string) Defines the color to use when showing 'OK' task status
|
||||
;ok=green
|
||||
|
||||
# (string) Defines the color to use when showing 'Skipped' task status
|
||||
;skip=cyan
|
||||
|
||||
# (string) Defines the color to use on 'Unreachable' status
|
||||
;unreachable=bright red
|
||||
|
||||
# (string) Defines the color to use when emitting verbose messages. i.e those that show with '-v's.
|
||||
;verbose=blue
|
||||
|
||||
# (string) Defines the color to use when emitting warning messages
|
||||
;warn=bright purple
|
||||
|
||||
|
||||
[selinux]
|
||||
# (boolean) This setting causes libvirt to connect to lxc containers by passing --noseclabel to virsh. This is necessary when running on systems which do not have SELinux.
|
||||
;libvirt_lxc_noseclabel=False
|
||||
|
||||
# (list) Some filesystems do not support safe operations and/or return inconsistent errors, this setting makes Ansible 'tolerate' those in the list w/o causing fatal errors.
|
||||
# Data corruption may occur and writes are not always verified when a filesystem is in the list.
|
||||
;special_context_filesystems=fuse, nfs, vboxsf, ramfs, 9p, vfat
|
||||
|
||||
|
||||
[diff]
|
||||
# (bool) Configuration toggle to tell modules to show differences when in 'changed' status, equivalent to ``--diff``.
|
||||
;always=False
|
||||
|
||||
# (integer) How many lines of context to show when displaying the differences between files.
|
||||
;context=3
|
||||
|
||||
|
||||
[galaxy]
|
||||
# (path) The directory that stores cached responses from a Galaxy server.
|
||||
# This is only used by the ``ansible-galaxy collection install`` and ``download`` commands.
|
||||
# Cache files inside this dir will be ignored if they are world writable.
|
||||
cache_dir=~/.cache/ansible
|
||||
|
||||
# (bool) whether ``ansible-galaxy collection install`` should warn about ``--collections-path`` missing from configured :ref:`collections_paths`
|
||||
;collections_path_warning=True
|
||||
|
||||
# (path) Collection skeleton directory to use as a template for the ``init`` action in ``ansible-galaxy collection``, same as ``--collection-skeleton``.
|
||||
;collection_skeleton=
|
||||
|
||||
# (list) patterns of files to ignore inside a Galaxy collection skeleton directory
|
||||
;collection_skeleton_ignore=^.git$, ^.*/.git_keep$
|
||||
|
||||
# (bool) Disable GPG signature verification during collection installation.
|
||||
;disable_gpg_verify=False
|
||||
|
||||
# (bool) Some steps in ``ansible-galaxy`` display a progress wheel which can cause issues on certain displays or when outputting the stdout to a file.
|
||||
# This config option controls whether the display wheel is shown or not.
|
||||
# The default is to show the display wheel if stdout has a tty.
|
||||
;display_progress=
|
||||
|
||||
# (path) Configure the keyring used for GPG signature verification during collection installation and verification.
|
||||
;gpg_keyring=
|
||||
|
||||
# (boolean) If set to yes, ansible-galaxy will not validate TLS certificates. This can be useful for testing against a server with a self-signed certificate.
|
||||
;ignore_certs=
|
||||
|
||||
# (list) A list of GPG status codes to ignore during GPG signature verification. See L(https://github.com/gpg/gnupg/blob/master/doc/DETAILS#general-status-codes) for status code descriptions.
|
||||
# If fewer signatures successfully verify the collection than `GALAXY_REQUIRED_VALID_SIGNATURE_COUNT`, signature verification will fail even if all error codes are ignored.
|
||||
;ignore_signature_status_codes=
|
||||
|
||||
# (str) The number of signatures that must be successful during GPG signature verification while installing or verifying collections.
|
||||
# This should be a positive integer or all to indicate all signatures must successfully validate the collection.
|
||||
# Prepend + to the value to fail if no valid signatures are found for the collection.
|
||||
;required_valid_signature_count=1
|
||||
|
||||
# (path) Role skeleton directory to use as a template for the ``init`` action in ``ansible-galaxy``/``ansible-galaxy role``, same as ``--role-skeleton``.
|
||||
;role_skeleton=
|
||||
|
||||
# (list) patterns of files to ignore inside a Galaxy role or collection skeleton directory
|
||||
;role_skeleton_ignore=^.git$, ^.*/.git_keep$
|
||||
|
||||
# (string) URL to prepend when roles don't specify the full URI, assume they are referencing this server as the source.
|
||||
;server=https://galaxy.ansible.com
|
||||
|
||||
# (list) A list of Galaxy servers to use when installing a collection.
|
||||
# The value corresponds to the config ini header ``[galaxy_server.{{item}}]`` which defines the server details.
|
||||
# See :ref:`galaxy_server_config` for more details on how to define a Galaxy server.
|
||||
# The order of servers in this list is used to as the order in which a collection is resolved.
|
||||
# Setting this config option will ignore the :ref:`galaxy_server` config option.
|
||||
;server_list=
|
||||
|
||||
# (int) The default timeout for Galaxy API calls. Galaxy servers that don't configure a specific timeout will fall back to this value.
|
||||
;server_timeout=60
|
||||
|
||||
# (path) Local path to galaxy access token file
|
||||
;token_path={{ ANSIBLE_HOME ~ "/galaxy_token" }}
|
||||
|
||||
|
||||
[inventory]
|
||||
# (string) This setting changes the behaviour of mismatched host patterns, it allows you to force a fatal error, a warning or just ignore it
|
||||
;host_pattern_mismatch=warning
|
||||
|
||||
# (boolean) If 'true', it is a fatal error when any given inventory source cannot be successfully parsed by any available inventory plugin; otherwise, this situation only attracts a warning.
|
||||
|
||||
;any_unparsed_is_failed=False
|
||||
|
||||
# (bool) Toggle to turn on inventory caching.
|
||||
# This setting has been moved to the individual inventory plugins as a plugin option :ref:`inventory_plugins`.
|
||||
# The existing configuration settings are still accepted with the inventory plugin adding additional options from inventory configuration.
|
||||
# This message will be removed in 2.16.
|
||||
;cache=False
|
||||
|
||||
# (string) The plugin for caching inventory.
|
||||
# This setting has been moved to the individual inventory plugins as a plugin option :ref:`inventory_plugins`.
|
||||
# The existing configuration settings are still accepted with the inventory plugin adding additional options from inventory and fact cache configuration.
|
||||
# This message will be removed in 2.16.
|
||||
;cache_plugin=
|
||||
|
||||
# (string) The inventory cache connection.
|
||||
# This setting has been moved to the individual inventory plugins as a plugin option :ref:`inventory_plugins`.
|
||||
# The existing configuration settings are still accepted with the inventory plugin adding additional options from inventory and fact cache configuration.
|
||||
# This message will be removed in 2.16.
|
||||
;cache_connection=
|
||||
|
||||
# (string) The table prefix for the cache plugin.
|
||||
# This setting has been moved to the individual inventory plugins as a plugin option :ref:`inventory_plugins`.
|
||||
# The existing configuration settings are still accepted with the inventory plugin adding additional options from inventory and fact cache configuration.
|
||||
# This message will be removed in 2.16.
|
||||
;cache_prefix=ansible_inventory_
|
||||
|
||||
# (string) Expiration timeout for the inventory cache plugin data.
|
||||
# This setting has been moved to the individual inventory plugins as a plugin option :ref:`inventory_plugins`.
|
||||
# The existing configuration settings are still accepted with the inventory plugin adding additional options from inventory and fact cache configuration.
|
||||
# This message will be removed in 2.16.
|
||||
;cache_timeout=3600
|
||||
|
||||
# (list) List of enabled inventory plugins, it also determines the order in which they are used.
|
||||
;enable_plugins=host_list, script, auto, yaml, ini, toml
|
||||
|
||||
# (bool) Controls if ansible-inventory will accurately reflect Ansible's view into inventory or its optimized for exporting.
|
||||
;export=False
|
||||
|
||||
# (list) List of extensions to ignore when using a directory as an inventory source
|
||||
;ignore_extensions={{(REJECT_EXTS + ('.orig', '.ini', '.cfg', '.retry'))}}
|
||||
|
||||
# (list) List of patterns to ignore when using a directory as an inventory source
|
||||
;ignore_patterns=
|
||||
|
||||
# (bool) If 'true' it is a fatal error if every single potential inventory source fails to parse, otherwise this situation will only attract a warning.
|
||||
|
||||
;unparsed_is_failed=False
|
||||
|
||||
# (boolean) By default Ansible will issue a warning when no inventory was loaded and notes that it will use an implicit localhost-only inventory.
|
||||
# These warnings can be silenced by adjusting this setting to False.
|
||||
;inventory_unparsed_warning=True
|
||||
|
||||
|
||||
[netconf_connection]
|
||||
# (string) This variable is used to enable bastion/jump host with netconf connection. If set to True the bastion/jump host ssh settings should be present in ~/.ssh/config file, alternatively it can be set to custom ssh configuration file path to read the bastion/jump host settings.
|
||||
;ssh_config=
|
||||
|
||||
|
||||
[paramiko_connection]
|
||||
# (boolean) TODO: write it
|
||||
;host_key_auto_add=False
|
||||
|
||||
# (boolean) TODO: write it
|
||||
;look_for_keys=True
|
||||
|
||||
# (float) Configures, in seconds, the amount of time to wait for the SSH banner to be presented. This option is supported by paramiko version 1.15.0 or newer.
|
||||
;banner_timeout=30
|
||||
|
||||
# (boolean) Set this to "False" if you want to avoid host key checking by the underlying tools Ansible uses to connect to the host
|
||||
;host_key_checking=True
|
||||
|
||||
# (int) Remote port to connect to.
|
||||
;remote_port=22
|
||||
|
||||
# (string) Path to private key file to use for authentication.
|
||||
;private_key_file=
|
||||
|
||||
# (string) Proxy information for running the connection via a jumphost
|
||||
# Also this plugin will scan 'ssh_args', 'ssh_extra_args' and 'ssh_common_args' from the 'ssh' plugin settings for proxy information if set.
|
||||
;proxy_command=
|
||||
|
||||
# (boolean) SUDO usually requires a PTY, True to give a PTY and False to not give a PTY.
|
||||
;pty=True
|
||||
|
||||
# (boolean) Save the host keys to a file
|
||||
;record_host_keys=True
|
||||
|
||||
# (string) User to login/authenticate as
|
||||
# Can be set from the CLI via the C(--user) or C(-u) options.
|
||||
;remote_user=
|
||||
|
||||
# (int) Number of seconds until the plugin gives up on failing to establish a TCP connection.
|
||||
;timeout=10
|
||||
|
||||
# (boolean) Whether or not to enable RSA SHA2 algorithms for pubkeys and hostkeys
|
||||
# On paramiko versions older than 2.9, this only affects hostkeys
|
||||
# For behavior matching paramiko<2.9 set this to V(False)
|
||||
;use_rsa_sha2_algorithms=True
|
||||
|
||||
|
||||
[jinja2]
|
||||
# (list) This list of filters avoids 'type conversion' when templating variables
|
||||
# Useful when you want to avoid conversion into lists or dictionaries for JSON strings, for example.
|
||||
;dont_type_filters=string, to_json, to_nice_json, to_yaml, to_nice_yaml, ppretty, json
|
||||
|
||||
|
||||
[tags]
|
||||
# (list) default list of tags to run in your plays, Skip Tags has precedence.
|
||||
;run=
|
||||
|
||||
# (list) default list of tags to skip in your plays, has precedence over Run Tags
|
||||
;skip=
|
||||
|
||||
|
||||
[runas_become_plugin]
|
||||
# (string) Options to pass to runas, a space delimited list of k=v pairs
|
||||
;flags=
|
||||
|
||||
# (string) password
|
||||
;password=
|
||||
|
||||
# (string) User you 'become' to execute the task
|
||||
;user=
|
||||
|
||||
|
||||
[su_become_plugin]
|
||||
# (string) Su executable
|
||||
;executable=su
|
||||
|
||||
# (string) Options to pass to su
|
||||
;flags=
|
||||
|
||||
# (string) Password to pass to su
|
||||
;password=
|
||||
|
||||
# (string) User you 'become' to execute the task
|
||||
;user=root
|
||||
|
||||
# (list) List of localized strings to match for prompt detection
|
||||
# If empty we'll use the built in one
|
||||
# Do NOT add a colon (:) to your custom entries. Ansible adds a colon at the end of each prompt; if you add another one in your string, your prompt will fail with a "Timeout" error.
|
||||
;localized_prompts=
|
||||
|
||||
|
||||
[sudo_become_plugin]
|
||||
# (string) Sudo executable
|
||||
;executable=sudo
|
||||
|
||||
# (string) Options to pass to sudo
|
||||
;flags=-H -S -n
|
||||
|
||||
# (string) Password to pass to sudo
|
||||
;password=
|
||||
|
||||
# (string) User you 'become' to execute the task
|
||||
;user=root
|
||||
|
||||
|
||||
[callback_tree]
|
||||
# (path) directory that will contain the per host JSON files. Also set by the C(--tree) option when using adhoc.
|
||||
;directory=~/.ansible/tree
|
||||
|
||||
|
||||
[ssh_connection]
|
||||
# (string) Only used in parsing ProxyCommand for use in this plugin.
|
||||
;ssh_args=
|
||||
|
||||
# (string) Only used in parsing ProxyCommand for use in this plugin.
|
||||
;ssh_common_args=
|
||||
|
||||
# (string) Only used in parsing ProxyCommand for use in this plugin.
|
||||
;ssh_extra_args=
|
||||
|
||||
# (string) This is the location to save SSH's ControlPath sockets, it uses SSH's variable substitution.
|
||||
# Since 2.3, if null (default), ansible will generate a unique hash. Use ``%(directory)s`` to indicate where to use the control dir path setting.
|
||||
# Before 2.3 it defaulted to ``control_path=%(directory)s/ansible-ssh-%%h-%%p-%%r``.
|
||||
# Be aware that this setting is ignored if C(-o ControlPath) is set in ssh args.
|
||||
;control_path=
|
||||
|
||||
# (string) This sets the directory to use for ssh control path if the control path setting is null.
|
||||
# Also, provides the ``%(directory)s`` variable for the control path setting.
|
||||
;control_path_dir=~/.ansible/cp
|
||||
|
||||
# (boolean) Determines if SSH should check host keys.
|
||||
;host_key_checking=True
|
||||
|
||||
# (boolean) Pipelining reduces the number of connection operations required to execute a module on the remote server, by executing many Ansible modules without actual file transfers.
|
||||
# This can result in a very significant performance improvement when enabled.
|
||||
# However this can conflict with privilege escalation (become). For example, when using sudo operations you must first disable 'requiretty' in the sudoers file for the target hosts, which is why this feature is disabled by default.
|
||||
;pipelining=False
|
||||
|
||||
# (string) PKCS11 SmartCard provider such as opensc, example: /usr/local/lib/opensc-pkcs11.so
|
||||
# Requires sshpass version 1.06+, sshpass must support the -P option.
|
||||
;pkcs11_provider=
|
||||
|
||||
# (integer) Number of attempts to connect.
|
||||
# Ansible retries connections only if it gets an SSH error with a return code of 255.
|
||||
# Any errors with return codes other than 255 indicate an issue with program execution.
|
||||
;retries=0
|
||||
|
||||
# (string) This defines the location of the scp binary. It defaults to V(scp) which will use the first binary available in $PATH.
|
||||
;scp_executable=scp
|
||||
|
||||
# (string) Extra exclusive to the C(scp) CLI
|
||||
;scp_extra_args=
|
||||
|
||||
# (string) Preferred method to use when transferring files over SSH.
|
||||
# When set to V(smart), Ansible will try them until one succeeds or they all fail.
|
||||
# If set to V(True), it will force 'scp', if V(False) it will use 'sftp'.
|
||||
# For OpenSSH >=9.0 you must add an additional option to enable scp (C(scp_extra_args="-O"))
|
||||
# This setting will overridden by O(ssh_transfer_method) if set.
|
||||
;scp_if_ssh=smart
|
||||
|
||||
# (bool) TODO: write it
|
||||
;sftp_batch_mode=True
|
||||
|
||||
# (string) This defines the location of the sftp binary. It defaults to V(sftp) which will use the first binary available in $PATH.
|
||||
;sftp_executable=sftp
|
||||
|
||||
# (string) Extra exclusive to the C(sftp) CLI
|
||||
;sftp_extra_args=
|
||||
|
||||
# (string) This defines the location of the SSH binary. It defaults to V(ssh) which will use the first SSH binary available in $PATH.
|
||||
# This option is usually not required, it might be useful when access to system SSH is restricted, or when using SSH wrappers to connect to remote hosts.
|
||||
;ssh_executable=ssh
|
||||
|
||||
# (string) Preferred method to use when transferring files over ssh
|
||||
# Setting to 'smart' (default) will try them in order, until one succeeds or they all fail
|
||||
# For OpenSSH >=9.0 you must add an additional option to enable scp (scp_extra_args="-O")
|
||||
# Using 'piped' creates an ssh pipe with C(dd) on either side to copy the data
|
||||
;transfer_method=
|
||||
|
||||
# (string) Password prompt that sshpass should search for. Supported by sshpass 1.06 and up.
|
||||
# Defaults to C(Enter PIN for) when pkcs11_provider is set.
|
||||
;sshpass_prompt=
|
||||
|
||||
# (integer) This is the default amount of time we will wait while establishing an SSH connection.
|
||||
# It also controls how long we can wait to access reading the connection once established (select on the socket).
|
||||
;timeout=10
|
||||
|
||||
# (bool) add -tt to ssh commands to force tty allocation.
|
||||
;usetty=True
|
||||
|
||||
|
||||
[winrm]
|
||||
# (list) A list of environment variables to pass through to C(kinit) when getting the Kerberos authentication ticket.
|
||||
# By default no environment variables are passed through and C(kinit) is run with a blank slate.
|
||||
# The environment variable C(KRB5CCNAME) cannot be specified here as it's used to store the temp Kerberos ticket used by WinRM.
|
||||
;kinit_env_vars=
|
||||
|
||||
|
||||
[inventory_plugins]
|
||||
# (bool) Merge extra vars into the available variables for composition (highest precedence).
|
||||
;use_extra_vars=False
|
||||
|
||||
|
||||
[inventory_plugin_script]
|
||||
# (boolean) Toggle display of stderr even when script was successful
|
||||
;always_show_stderr=True
|
||||
|
||||
|
||||
[inventory_plugin_yaml]
|
||||
# (list) list of 'valid' extensions for files containing YAML
|
||||
;yaml_valid_extensions=.yaml, .yml, .json
|
||||
|
||||
|
||||
[url_lookup]
|
||||
# (string) String of file system path to CA cert bundle to use
|
||||
;ca_path=
|
||||
|
||||
# (list) SSL/TLS Ciphers to use for the request
|
||||
# When a list is provided, all ciphers are joined in order with C(:)
|
||||
# See the L(OpenSSL Cipher List Format,https://www.openssl.org/docs/manmaster/man1/openssl-ciphers.html#CIPHER-LIST-FORMAT) for more details.
|
||||
# The available ciphers is dependent on the Python and OpenSSL/LibreSSL versions
|
||||
;ciphers=
|
||||
|
||||
# (string) String of urllib2, all/yes, safe, none to determine how redirects are followed, see RedirectHandlerFactory for more information
|
||||
;follow_redirects=urllib2
|
||||
|
||||
# (boolean) Whether or not to set "cache-control" header with value "no-cache"
|
||||
;force=False
|
||||
|
||||
# (boolean) Force basic authentication
|
||||
;force_basic_auth=False
|
||||
|
||||
# (string) User-Agent to use in the request. The default was changed in 2.11 to V(ansible-httpget).
|
||||
;agent=ansible-httpget
|
||||
|
||||
# (float) How long to wait for the server to send data before giving up
|
||||
;timeout=10
|
||||
|
||||
# (string) String of file system path to unix socket file to use when establishing connection to the provided url
|
||||
;unix_socket=
|
||||
|
||||
# (list) A list of headers to not attach on a redirected request
|
||||
;unredirected_headers=
|
||||
|
||||
# (boolean) Use GSSAPI handler of requests
|
||||
# As of Ansible 2.11, GSSAPI credentials can be specified with O(username) and O(password).
|
||||
;use_gssapi=False
|
||||
|
||||
# (boolean) Determining whether to use credentials from ``~/.netrc`` file
|
||||
# By default .netrc is used with Basic authentication headers
|
||||
# When set to False, .netrc credentials are ignored
|
||||
;use_netrc=True
|
||||
|
||||
|
||||
[powershell]
|
||||
# (string) Directory in which ansible will keep async job information.
|
||||
# Before Ansible 2.8, this was set to C(remote_tmp + "\.ansible_async").
|
||||
;async_dir=%USERPROFILE%\.ansible_async
|
||||
|
||||
# (string) Temporary directory to use on targets when copying files to the host.
|
||||
;remote_tmp=%TEMP%
|
||||
|
||||
|
||||
[vars_host_group_vars]
|
||||
# (str) Control when this vars plugin may be executed.
|
||||
# Setting this option to V(all) will run the vars plugin after importing inventory and whenever it is demanded by a task.
|
||||
# Setting this option to V(task) will only run the vars plugin whenever it is demanded by a task.
|
||||
# Setting this option to V(inventory) will only run the vars plugin after parsing inventory.
|
||||
# If this option is omitted, the global C(RUN_VARS_PLUGINS) configuration is used to determine when to execute the vars plugin.
|
||||
;stage=
|
||||
|
||||
30
bootstrap
Executable file
30
bootstrap
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Bootstraps a new machine, installing configuration, packages, and webapps.
|
||||
#
|
||||
|
||||
if [ -z "$DEV_ENV" ]; then
|
||||
echo "env var DEV_ENV needs to be present"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# if i just did DEV_ENV=$(pwd) ./run then this is needed for the rest of the
|
||||
# scripts
|
||||
export DEV_ENV="$DEV_ENV"
|
||||
|
||||
args=""
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
if [[ "$1" =~ dry ]]; then
|
||||
args="--dry-run"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Args to bootstrap scripts: $args"
|
||||
echo "Installing packages may require your password multiple times."
|
||||
|
||||
echo "Installing configuration" && $DEV_ENV/dev-env "$args"
|
||||
# TODO: Need to run system run early, then once ssh keys are setup pull
|
||||
# git submodules, then run config install again.
|
||||
echo "Running packages" && $DEV_ENV/run "$args"
|
||||
echo "Installing webapps" && $DEV_ENV/webapp "$args"
|
||||
176
dev-env
Executable file
176
dev-env
Executable file
@@ -0,0 +1,176 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Adapted from https://github.com/ThePrimeagen/dev/blob/master/dev-env
|
||||
#
|
||||
# Copies configuration files to their appropriate places.
|
||||
|
||||
dry_run="0"
|
||||
|
||||
if [ -z "$XDG_CONFIG_HOME" ]; then
|
||||
echo "no xdg config home"
|
||||
echo "using ~/.config"
|
||||
XDG_CONFIG_HOME=$HOME/.config
|
||||
fi
|
||||
|
||||
if [ -z "$XDG_DATA_HOME" ]; then
|
||||
echo "no xdg data home"
|
||||
echo "using ~/.local/share"
|
||||
XDG_DATA_HOME=$HOME/.local/share
|
||||
fi
|
||||
|
||||
if [ -z "$DEV_ENV" ]; then
|
||||
echo "env var DEV_ENV needs to be present"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $1 =~ ^--dry ]]; then
|
||||
dry_run="1"
|
||||
fi
|
||||
|
||||
log() {
|
||||
if [[ $dry_run == "1" ]]; then
|
||||
echo "[DRY_RUN]: $1"
|
||||
else
|
||||
echo "$1"
|
||||
fi
|
||||
}
|
||||
|
||||
log "env: $DEV_ENV"
|
||||
|
||||
# Removes a destination directory and copies all files to the destination.
|
||||
update_dirs() {
|
||||
log "copying over files from: $1"
|
||||
pushd $1 &>/dev/null
|
||||
(
|
||||
# Copy everything except systemd, share, and zsh folders, they need treated differently.
|
||||
configs=$(
|
||||
find . -mindepth 1 -maxdepth 1 -type d \
|
||||
\( -name "systemd" -o -name "zsh" -o -name "share" -o -name "scripts" -o -name "kanata" \) \
|
||||
-prune -o -type d -print
|
||||
)
|
||||
for c in $configs; do
|
||||
directory=${2%/}/${c#./}
|
||||
log " removing: rm -rf $directory"
|
||||
|
||||
if [[ $dry_run == "0" ]]; then
|
||||
rm -rf $directory
|
||||
fi
|
||||
|
||||
log " copying env: cp $c $2"
|
||||
if [[ $dry_run == "0" ]]; then
|
||||
cp -r ./$c $2
|
||||
fi
|
||||
done
|
||||
|
||||
)
|
||||
popd &>/dev/null
|
||||
}
|
||||
|
||||
# Removes a destination file and copies a single file to the destination.
|
||||
copy() {
|
||||
log "removing: $2"
|
||||
if [[ $dry_run == "0" ]]; then
|
||||
rm $2 &>/dev/null
|
||||
fi
|
||||
log "copying: $1 to $2"
|
||||
if [[ $dry_run == "0" ]]; then
|
||||
cp $1 $2
|
||||
fi
|
||||
}
|
||||
|
||||
# Copy all files from a directory into another directory.
|
||||
copy_files() {
|
||||
log "copying over files from: $1"
|
||||
pushd "$1" &>/dev/null || exit 1
|
||||
(
|
||||
for f in $(find . -mindepth 1 -maxdepth 1 -type f); do
|
||||
|
||||
declare dest
|
||||
dest="$2/$(basename "$f")"
|
||||
|
||||
if [[ $dry_run == "0" ]]; then
|
||||
rm -rf $dest >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
log " copying env: cp $f $dest"
|
||||
if [[ $dry_run == "0" ]]; then
|
||||
cp $f $dest
|
||||
fi
|
||||
done
|
||||
)
|
||||
popd &>/dev/null || exit 1
|
||||
}
|
||||
|
||||
email() {
|
||||
if command -v mailctl; then
|
||||
log "Updating using mailctl..."
|
||||
[[ $dry_run == "0" ]] && mailctl update && mailctl config
|
||||
else
|
||||
log "Installing mailctl..."
|
||||
[[ $dry_run == "0" ]] && . "$DEV_ENV/mail/install"
|
||||
fi
|
||||
}
|
||||
|
||||
############################## MAIN ##############################
|
||||
|
||||
# CONFIG
|
||||
update_dirs $DEV_ENV/env/.config $XDG_CONFIG_HOME
|
||||
update_dirs $DEV_ENV/env/.local $HOME/.local
|
||||
|
||||
# SCRIPTS
|
||||
mkdir -p ~/.local/scripts/{hypr,utils} >/dev/null 2>&1
|
||||
mkdir -p ~/.local/scripts/utils/{kanatactl,hpa,shorten-url} >/dev/null 2>&1
|
||||
update_dirs $DEV_ENV/env/.local/scripts/hypr $HOME/.local/scripts/hypr
|
||||
copy_files $DEV_ENV/env/.local/scripts/hypr $HOME/.local/scripts/hypr
|
||||
copy_files "$DEV_ENV/env/.local/scripts/utils/kanatactl" "$HOME/.local/scripts/utils/kanatactl"
|
||||
copy_files "$DEV_ENV/env/.local/scripts/utils/hpa" "$HOME/.local/scripts/utils/hpa"
|
||||
copy_files "$DEV_ENV/env/.local/scripts/utils/shorten-url" "$HOME/.local/scripts/utils/shorten-url"
|
||||
copy_files $DEV_ENV/env/.local/scripts $HOME/.local/scripts
|
||||
|
||||
# SYSTEMD
|
||||
mkdir -p $XDG_CONFIG_HOME/systemd/user >/dev/null 2>&1
|
||||
copy_files $DEV_ENV/env/.config/systemd/user $XDG_CONFIG_HOME/systemd/user
|
||||
|
||||
# ZSH
|
||||
# NOTE: This keeps from clobbering zsh history and plugins vs. wiping the entire directory and
|
||||
# copying configuration.
|
||||
copy $DEV_ENV/env/.zshenv $HOME/.zshenv
|
||||
mkdir -p $XDG_CONFIG_HOME/zsh >/dev/null 2>&1
|
||||
update_dirs $DEV_ENV/env/.config/zsh $XDG_CONFIG_HOME/zsh # copies sup-directories.
|
||||
copy_files $DEV_ENV/env/.config/zsh $XDG_CONFIG_HOME/zsh # copies files in the root directory.
|
||||
|
||||
# TMUX
|
||||
copy $DEV_ENV/env/.tmux.conf $HOME/.tmux.conf
|
||||
|
||||
# GPG
|
||||
mkdir $HOME/.gnupg >/dev/null 2>&1
|
||||
copy_files $DEV_ENV/env/.gnupg $HOME/.gnupg
|
||||
|
||||
# Wallpapers
|
||||
mkdir $HOME/wallpapers >/dev/null 2>&1
|
||||
copy_files $DEV_ENV/env/wallpapers $HOME/wallpapers
|
||||
|
||||
# MISC
|
||||
mkdir $HOME/Pictures >/dev/null 2>&1
|
||||
mkdir -p $XDG_DATA_HOME/clipse/tmp_files
|
||||
copy $DEV_ENV/dev-env $HOME/.local/scripts/dev-env
|
||||
copy $DEV_ENV/env/.markdownlint.jsonc $HOME/.markdownlint.jsonc
|
||||
copy $DEV_ENV/env/.prettierrc $HOME/.prettierrc
|
||||
|
||||
mkdir -p $XDG_DATA_HOME/applications/icons
|
||||
copy_files $DEV_ENV/env/.local/share/applications $XDG_DATA_HOME/applications
|
||||
copy_files $DEV_ENV/env/.local/share/applications/icons $XDG_DATA_HOME/applications/icons
|
||||
|
||||
# Custom package builds.
|
||||
mkdir $HOME/pkgbuilds
|
||||
update_dirs $DEV_ENV/env/pkgbuilds $HOME/pkgbuilds
|
||||
|
||||
# Email.
|
||||
email
|
||||
|
||||
if [[ $dry_run == "0" ]]; then
|
||||
systemctl --user daemon-reload
|
||||
hyprctl reload
|
||||
espanso service restart
|
||||
exec zsh -l
|
||||
fi
|
||||
76
devcontainer-env
Executable file
76
devcontainer-env
Executable file
@@ -0,0 +1,76 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
# Intsalls appropriate dotfiles inside a devcontainer context.
|
||||
|
||||
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-"$HOME/.config"}
|
||||
DEV_ENV=${DEV_ENV:-$(dirname "${BASH_SOURCE[0]}")}
|
||||
|
||||
if [ ! -d "$DEV_ENV" ]; then
|
||||
echo "[ERROR]: DEV_ENV variable does not exist."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
log() {
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
copy_dir() {
|
||||
local dir=${1:-""}
|
||||
local path="${DEV_ENV}/${dir}"
|
||||
|
||||
if [ -z "$dir" ] || [ ! -d "$path" ]; then
|
||||
log "[ERROR]: Directory does not exist: $dir"
|
||||
exit 1
|
||||
else
|
||||
log "Copying dir: $dir"
|
||||
cp -R "$path" "$XDG_CONFIG_HOME"
|
||||
fi
|
||||
}
|
||||
|
||||
copy_file() {
|
||||
local file=${1:-""}
|
||||
|
||||
if [[ -z "$file" ]] || [[ ! -f "$file" ]]; then
|
||||
log "[ERROR]: file does not exist: $file"
|
||||
exit 1
|
||||
else
|
||||
log "Copying file: $file"
|
||||
cp "$DEV_ENV/$file" "$HOME"
|
||||
fi
|
||||
}
|
||||
|
||||
# MAIN
|
||||
dirs=(
|
||||
env/.config/eza
|
||||
env/.config/git
|
||||
env/.config/ripgrep
|
||||
env/.config/starship
|
||||
env/.config/yazi
|
||||
env/.config/zsh
|
||||
)
|
||||
|
||||
files=(
|
||||
env/.markdownlint.jsonc
|
||||
env/.prettierrc
|
||||
env/.tmux.conf
|
||||
env/.zshenv
|
||||
)
|
||||
|
||||
for dir in "${dirs[@]}"; do
|
||||
copy_dir "$dir"
|
||||
done
|
||||
|
||||
for file in "${files[@]}"; do
|
||||
copy_file "$file"
|
||||
done
|
||||
|
||||
# Install neovim config
|
||||
git submodule update --init --remote env/.config/nvim
|
||||
source env/.config/nvim/install.sh
|
||||
|
||||
# Install my scripts
|
||||
cp -R env/.local/scripts "$HOME/.local"
|
||||
75
env/.config/aap/config.toml
vendored
Normal file
75
env/.config/aap/config.toml
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
# This config is setup for running inside the docker container.
|
||||
#
|
||||
# NOTE:
|
||||
# Configuration settings for the `hpa` command line tool.
|
||||
# You can delete settings that are not applicable to your use case.
|
||||
|
||||
# Default arguments / options that get passed into `ansible-playbook` commands.
|
||||
# WARNING: Do not put arguments / options that contain spaces in the same string,
|
||||
# they should be separate strings, for example do not do something like
|
||||
# ['--tags debug'], instead use ['--tags', 'debug'].
|
||||
#
|
||||
args = ['--tags', 'debug']
|
||||
|
||||
# Set to true if you want to pass the vault args to `ansible-playbook` commands.
|
||||
useVaultArgs = true
|
||||
|
||||
# NOTE:
|
||||
# Configuration for running the generate command(s). This allows custimizations
|
||||
# to the files that get used to generate the final output (generally a pdf).
|
||||
# See `pandoc --help`. Below are the defaults that get used, which only need
|
||||
# adjusted if your template does not follow the default template design or if
|
||||
# you add extra files to your template that need to be included in the final
|
||||
# output. Also be aware that any of the files specified in the `files` or
|
||||
# `includeInHeader` options, need to be inside the `buildDirectory` when generating
|
||||
# the final output file.
|
||||
|
||||
# [generate]
|
||||
# this relative to the project directory.
|
||||
# buildDirectory = '.build'
|
||||
# pdfEngine = 'xelatex'
|
||||
# includeInHeader = [
|
||||
# 'head.tex',
|
||||
# 'footer.tex'
|
||||
# ]
|
||||
# files = [
|
||||
# 'Report.md',
|
||||
# 'Definitions.md'
|
||||
# ]
|
||||
# outputFileName = 'Report'
|
||||
|
||||
# NOTE:
|
||||
# These are more for local development of the ansible playbook and should not be needed
|
||||
# in most cases. Uncomment the lines if you want to customize the playbook and use it
|
||||
# instead of the provided / default playbook.
|
||||
|
||||
[playbook]
|
||||
directory = '/root/.local/share/hpa/playbook'
|
||||
inventory = '/root/.local/share/hpa/playbook/inventory.ini'
|
||||
version = 'main'
|
||||
|
||||
# NOTE:
|
||||
# These are to declare where your template files are either on your local system or
|
||||
# a remote git repository.
|
||||
[template]
|
||||
# The directory path on your local system to the template files.
|
||||
directory = '/root/.local/share/hpa/airflow-assessment-template'
|
||||
vars = 'repo_vars'
|
||||
|
||||
# The url to a git repository that contains your template files.
|
||||
# url = 'https://git.example.com/consult-template.git'
|
||||
|
||||
# The version, tag, branch, or sha of the template files to clone from the remote
|
||||
# template repository. In general it is best practice to use a version instead of a
|
||||
# branch.
|
||||
# version = '1.0.0'
|
||||
|
||||
# NOTE:
|
||||
# Holds settings for `ansible-vault` commands.
|
||||
[vault]
|
||||
# Arguments to pass to commands that use `ansible-vault`, such as encrypting or decrypting
|
||||
# files.
|
||||
args = ['--vault-password-file=/run/secrets/vault-pass']
|
||||
|
||||
# An id to use when encrypting `ansible-vault` files.
|
||||
#encryptId = 'myId'
|
||||
35
env/.config/clipse/config.json
vendored
Normal file
35
env/.config/clipse/config.json
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"allowDuplicates": false,
|
||||
"historyFile": "$XDG_DATA_HOME/clipse/clipboard_history.json",
|
||||
"maxHistory": 50,
|
||||
"logFile": "$XDG_DATA_HOME/clipse/clipse.log",
|
||||
"themeFile": "custom_theme.json",
|
||||
"tempDir": "$XDG_DATA_HOME/clipse/tmp_files",
|
||||
"keyBindings": {
|
||||
"choose": "enter",
|
||||
"clearSelected": "S",
|
||||
"down": "down",
|
||||
"end": "end",
|
||||
"filter": "/",
|
||||
"home": "home",
|
||||
"more": "?",
|
||||
"nextPage": "right",
|
||||
"prevPage": "left",
|
||||
"preview": " ",
|
||||
"quit": "q",
|
||||
"remove": "x",
|
||||
"selectDown": "ctrl+down",
|
||||
"selectSingle": "s",
|
||||
"selectUp": "ctrl+up",
|
||||
"togglePin": "p",
|
||||
"togglePinned": "tab",
|
||||
"up": "up",
|
||||
"yankFilter": "ctrl+s"
|
||||
},
|
||||
"imageDisplay": {
|
||||
"type": "basic",
|
||||
"scaleX": 9,
|
||||
"scaleY": 9,
|
||||
"heightCut": 2
|
||||
}
|
||||
}
|
||||
29
env/.config/clipse/custom_theme.json
vendored
Normal file
29
env/.config/clipse/custom_theme.json
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"useCustomTheme": true,
|
||||
"TitleFore": "#6F4CBC",
|
||||
"TitleBack": "#1e1e2e",
|
||||
"TitleInfo": "#3498db",
|
||||
"NormalTitle": "#ffffff",
|
||||
"DimmedTitle": "#808080",
|
||||
"SelectedTitle": "#FF69B4",
|
||||
"NormalDesc": "#808080",
|
||||
"DimmedDesc": "#808080",
|
||||
"SelectedDesc": "#FF69B4",
|
||||
"StatusMsg": "#2ecc71",
|
||||
"PinIndicatorColor": "#FFD700",
|
||||
"SelectedBorder": "#3498db",
|
||||
"SelectedDescBorder": "#3498db",
|
||||
"FilteredMatch": "#ffffff",
|
||||
"FilterPrompt": "#2ecc71",
|
||||
"FilterInfo": "#3498db",
|
||||
"FilterText": "#ffffff",
|
||||
"FilterCursor": "#FFD700",
|
||||
"HelpKey": "#999999",
|
||||
"HelpDesc": "#808080",
|
||||
"PageActiveDot": "#3498db",
|
||||
"PageInactiveDot": "#808080",
|
||||
"DividerDot": "#3498db",
|
||||
"PreviewedText": "#ffffff",
|
||||
"PreviewBorder": "#3498db"
|
||||
}
|
||||
|
||||
@@ -29,12 +29,12 @@
|
||||
# --- Auto-restart
|
||||
|
||||
# Enable/disable the config auto-reload after a file change is detected.
|
||||
# auto_restart: false
|
||||
|
||||
auto_restart: true
|
||||
# --- Clipboard threshold
|
||||
|
||||
# Because injecting long texts char-by-char is a slow operation, espanso automatically
|
||||
# uses the clipboard if the text is longer than 'clipboard_threshold' characters.
|
||||
# clipboard_threshold: 100
|
||||
|
||||
#
|
||||
show_notifications: false
|
||||
# For a list of all the available options, visit the official docs at: https://espanso.org/docs/
|
||||
@@ -4,8 +4,11 @@ matches:
|
||||
# Email Addresses
|
||||
- trigger: ":@hhe"
|
||||
replace: "mhoush@houshhomeenergy.com"
|
||||
- trigger: ":@service"
|
||||
- trigger: ":@w"
|
||||
replace: "mhoush@houshhomeenergy.com"
|
||||
- trigger: ":@ser"
|
||||
replace: "service@houshhomeenergy.com"
|
||||
- trigger: ":@me"
|
||||
replace: "michael@mhoush.com"
|
||||
|
||||
- trigger: ":@p"
|
||||
replace: "michael@mhoush.com"
|
||||
104
env/.config/eza/theme.yml
vendored
Normal file
104
env/.config/eza/theme.yml
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
# see https://github.com/eza-community/eza-themes/blob/main/themes/catppuccin.yml
|
||||
|
||||
colourful: true
|
||||
|
||||
filekinds:
|
||||
normal: { foreground: "#BAC2DE" }
|
||||
directory: { foreground: "#89B4FA" }
|
||||
symlink: { foreground: "#89DCEB" }
|
||||
pipe: { foreground: "#7F849C" }
|
||||
block_device: { foreground: "#EBA0AC" }
|
||||
char_device: { foreground: "#EBA0AC" }
|
||||
socket: { foreground: "#585B70" }
|
||||
special: { foreground: "#CBA6F7" }
|
||||
executable: { foreground: "#A6E3A1" }
|
||||
mount_point: { foreground: "#74C7EC" }
|
||||
|
||||
perms:
|
||||
user_read: { foreground: "#CDD6F4" }
|
||||
user_write: { foreground: "#F9E2AF" }
|
||||
user_execute_file: { foreground: "#A6E3A1" }
|
||||
user_execute_other: { foreground: "#A6E3A1" }
|
||||
group_read: { foreground: "#BAC2DE" }
|
||||
group_write: { foreground: "#F9E2AF" }
|
||||
group_execute: { foreground: "#A6E3A1" }
|
||||
other_read: { foreground: "#A6ADC8" }
|
||||
other_write: { foreground: "#F9E2AF" }
|
||||
other_execute: { foreground: "#A6E3A1" }
|
||||
special_user_file: { foreground: "#CBA6F7" }
|
||||
special_other: { foreground: "#585B70" }
|
||||
attribute: { foreground: "#A6ADC8" }
|
||||
|
||||
size:
|
||||
major: { foreground: "#A6ADC8" }
|
||||
minor: { foreground: "#89DCEB" }
|
||||
number_byte: { foreground: "#CDD6F4" }
|
||||
number_kilo: { foreground: "#BAC2DE" }
|
||||
number_mega: { foreground: "#89B4FA" }
|
||||
number_giga: { foreground: "#CBA6F7" }
|
||||
number_huge: { foreground: "#CBA6F7" }
|
||||
unit_byte: { foreground: "#A6ADC8" }
|
||||
unit_kilo: { foreground: "#89B4FA" }
|
||||
unit_mega: { foreground: "#CBA6F7" }
|
||||
unit_giga: { foreground: "#CBA6F7" }
|
||||
unit_huge: { foreground: "#74C7EC" }
|
||||
|
||||
users:
|
||||
user_you: { foreground: "#CDD6F4" }
|
||||
user_root: { foreground: "#F38BA8" }
|
||||
user_other: { foreground: "#CBA6F7" }
|
||||
group_yours: { foreground: "#BAC2DE" }
|
||||
group_other: { foreground: "#7F849C" }
|
||||
group_root: { foreground: "#F38BA8" }
|
||||
|
||||
links:
|
||||
normal: { foreground: "#89DCEB" }
|
||||
multi_link_file: { foreground: "#74C7EC" }
|
||||
|
||||
git:
|
||||
new: { foreground: "#A6E3A1" }
|
||||
modified: { foreground: "#F9E2AF" }
|
||||
deleted: { foreground: "#F38BA8" }
|
||||
renamed: { foreground: "#94E2D5" }
|
||||
typechange: { foreground: "#F5C2E7" }
|
||||
ignored: { foreground: "#7F849C" }
|
||||
conflicted: { foreground: "#EBA0AC" }
|
||||
|
||||
git_repo:
|
||||
branch_main: { foreground: "#CDD6F4" }
|
||||
branch_other: { foreground: "#CBA6F7" }
|
||||
git_clean: { foreground: "#A6E3A1" }
|
||||
git_dirty: { foreground: "#F38BA8" }
|
||||
|
||||
security_context:
|
||||
colon: { foreground: "#7F849C" }
|
||||
user: { foreground: "#BAC2DE" }
|
||||
role: { foreground: "#CBA6F7" }
|
||||
typ: { foreground: "#585B70" }
|
||||
range: { foreground: "#CBA6F7" }
|
||||
|
||||
file_type:
|
||||
image: { foreground: "#F9E2AF" }
|
||||
video: { foreground: "#F38BA8" }
|
||||
music: { foreground: "#A6E3A1" }
|
||||
lossless: { foreground: "#94E2D5" }
|
||||
crypto: { foreground: "#585B70" }
|
||||
document: { foreground: "#CDD6F4" }
|
||||
compressed: { foreground: "#F5C2E7" }
|
||||
temp: { foreground: "#EBA0AC" }
|
||||
compiled: { foreground: "#74C7EC" }
|
||||
build: { foreground: "#585B70" }
|
||||
source: { foreground: "#89B4FA" }
|
||||
|
||||
punctuation: { foreground: "#7F849C" }
|
||||
date: { foreground: "#F9E2AF" }
|
||||
inode: { foreground: "#A6ADC8" }
|
||||
blocks: { foreground: "#9399B2" }
|
||||
header: { foreground: "#CDD6F4" }
|
||||
octal: { foreground: "#94E2D5" }
|
||||
flags: { foreground: "#CBA6F7" }
|
||||
|
||||
symlink_path: { foreground: "#89DCEB" }
|
||||
control_char: { foreground: "#74C7EC" }
|
||||
broken_symlink: { foreground: "#F38BA8" }
|
||||
broken_path_overlay: { foreground: "#585B70" }
|
||||
34
env/.config/ghostty/config
vendored
Normal file
34
env/.config/ghostty/config
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
theme = Catppuccin Mocha
|
||||
|
||||
confirm-close-surface = false
|
||||
|
||||
font-family = "Fira Code"
|
||||
font-size = 18
|
||||
font-thicken = false
|
||||
|
||||
window-save-state = always
|
||||
|
||||
# NOTE: This setting removes tabs, rounded borders, and window controls.
|
||||
# Also makes some of the below macos-titlebar-* things not matter, but
|
||||
# will take affect if this is set to true.
|
||||
window-decoration = true
|
||||
|
||||
copy-on-select = true
|
||||
quit-after-last-window-closed = true
|
||||
quit-after-last-window-closed-delay = 5m
|
||||
|
||||
# macos-auto-secure-input = true
|
||||
# macos-non-native-fullscreen = visible-menu
|
||||
# macos-titlebar-style = transparent
|
||||
# macos-titlebar-proxy-icon = hidden
|
||||
# macos-icon = custom-style
|
||||
|
||||
keybind = ctrl+shift+t=toggle_quick_terminal
|
||||
|
||||
# Splits
|
||||
keybind = super+j=goto_split:down
|
||||
keybind = super+h=goto_split:left
|
||||
keybind = super+k=goto_split:up
|
||||
keybind = super+l=goto_split:right
|
||||
keybind = super+shift+j=goto_split:previous
|
||||
keybind = super+shift+k=goto_split:next
|
||||
71
env/.config/git/config
vendored
Normal file
71
env/.config/git/config
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
[core]
|
||||
excludesfile = ~/.config/git/gitignore
|
||||
ignorecasse = false
|
||||
|
||||
[init]
|
||||
defaultBranch = main
|
||||
|
||||
[user]
|
||||
name = Michael Housh
|
||||
email = michael@mhoush.com
|
||||
signingkey = 0x90D3EB6274D5B7CF
|
||||
|
||||
[commit]
|
||||
gpgsign = true
|
||||
|
||||
[tag]
|
||||
gpgSign = true
|
||||
sort = version:refname
|
||||
|
||||
[color]
|
||||
ui = true
|
||||
|
||||
[credential]
|
||||
helper = gopass
|
||||
|
||||
[credential "https://git.housh.dev"]
|
||||
username = michael
|
||||
|
||||
[push]
|
||||
default = simple
|
||||
autoSetupRemote = true
|
||||
followTags = true
|
||||
recurseSubmodules = on-demand
|
||||
|
||||
[fetch]
|
||||
prune = true
|
||||
#pruneTags = true
|
||||
#all = true
|
||||
|
||||
[pull]
|
||||
rebase = true
|
||||
|
||||
[filter "lfs"]
|
||||
process = git-lfs filter-process
|
||||
required = true
|
||||
clean = git-lfs clean -- %f
|
||||
smudge = git-lfs smudge -- %f
|
||||
|
||||
[column]
|
||||
ui = auto
|
||||
|
||||
[branch]
|
||||
sort = committerdate
|
||||
|
||||
[diff]
|
||||
algorithm = histogram
|
||||
colorMoved = plain
|
||||
mnemonicPrefix = true
|
||||
renames = true
|
||||
|
||||
[rerere]
|
||||
enabled = true
|
||||
autoupdate = true
|
||||
|
||||
[rebase]
|
||||
autoSquash = true
|
||||
autoStash = true
|
||||
updateRefs = true
|
||||
|
||||
[submodule]
|
||||
recurse = true
|
||||
75
env/.config/hpa/config.toml
vendored
Normal file
75
env/.config/hpa/config.toml
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
# This config is setup for running inside the docker container.
|
||||
#
|
||||
# NOTE:
|
||||
# Configuration settings for the `hpa` command line tool.
|
||||
# You can delete settings that are not applicable to your use case.
|
||||
|
||||
# Default arguments / options that get passed into `ansible-playbook` commands.
|
||||
# WARNING: Do not put arguments / options that contain spaces in the same string,
|
||||
# they should be separate strings, for example do not do something like
|
||||
# ['--tags debug'], instead use ['--tags', 'debug'].
|
||||
#
|
||||
args = ['--tags', 'debug']
|
||||
|
||||
# Set to true if you want to pass the vault args to `ansible-playbook` commands.
|
||||
useVaultArgs = true
|
||||
|
||||
# NOTE:
|
||||
# Configuration for running the generate command(s). This allows custimizations
|
||||
# to the files that get used to generate the final output (generally a pdf).
|
||||
# See `pandoc --help`. Below are the defaults that get used, which only need
|
||||
# adjusted if your template does not follow the default template design or if
|
||||
# you add extra files to your template that need to be included in the final
|
||||
# output. Also be aware that any of the files specified in the `files` or
|
||||
# `includeInHeader` options, need to be inside the `buildDirectory` when generating
|
||||
# the final output file.
|
||||
|
||||
# [generate]
|
||||
# this relative to the project directory.
|
||||
# buildDirectory = '.build'
|
||||
# pdfEngine = 'xelatex'
|
||||
# includeInHeader = [
|
||||
# 'head.tex',
|
||||
# 'footer.tex'
|
||||
# ]
|
||||
# files = [
|
||||
# 'Report.md',
|
||||
# 'Definitions.md'
|
||||
# ]
|
||||
# outputFileName = 'Report'
|
||||
|
||||
# NOTE:
|
||||
# These are more for local development of the ansible playbook and should not be needed
|
||||
# in most cases. Uncomment the lines if you want to customize the playbook and use it
|
||||
# instead of the provided / default playbook.
|
||||
|
||||
[playbook]
|
||||
directory = '/root/.local/share/hpa/playbook'
|
||||
inventory = '/root/.local/share/hpa/playbook/inventory.ini'
|
||||
version = 'main'
|
||||
|
||||
# NOTE:
|
||||
# These are to declare where your template files are either on your local system or
|
||||
# a remote git repository.
|
||||
[template]
|
||||
# The directory path on your local system to the template files.
|
||||
directory = '/root/.local/share/hpa/template'
|
||||
vars = 'repo_vars'
|
||||
|
||||
# The url to a git repository that contains your template files.
|
||||
# url = 'https://git.example.com/consult-template.git'
|
||||
|
||||
# The version, tag, branch, or sha of the template files to clone from the remote
|
||||
# template repository. In general it is best practice to use a version instead of a
|
||||
# branch.
|
||||
# version = '1.0.0'
|
||||
|
||||
# NOTE:
|
||||
# Holds settings for `ansible-vault` commands.
|
||||
[vault]
|
||||
# Arguments to pass to commands that use `ansible-vault`, such as encrypting or decrypting
|
||||
# files.
|
||||
args = ['--vault-password-file=/run/secrets/vault-pass']
|
||||
|
||||
# An id to use when encrypting `ansible-vault` files.
|
||||
#encryptId = 'myId'
|
||||
15
env/.config/hypr/hyprautostart.conf
vendored
Normal file
15
env/.config/hypr/hyprautostart.conf
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
#################
|
||||
### AUTOSTART ###
|
||||
#################
|
||||
|
||||
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
||||
# Or execute your favorite apps at launch like this:
|
||||
|
||||
exec-once = uwsm app -- hyprpaper
|
||||
exec-once = pidof hypridle | uwsm app -- hypridle
|
||||
exec-once = pidof hyprlauncher | uwsm app -- hyprlauncher -d
|
||||
exec-once = pidof swaync | uwsm app -- swaync
|
||||
exec-once = pidof waybar | uwsm app -- waybar
|
||||
exec-once = uwsm app -- clipse -listen
|
||||
|
||||
37
env/.config/hypr/hyprenv.conf
vendored
Normal file
37
env/.config/hypr/hyprenv.conf
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
#############################
|
||||
### ENVIRONMENT VARIABLES ###
|
||||
#############################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Environment-variables/
|
||||
|
||||
# Cursor size
|
||||
env = XCURSOR_SIZE,24
|
||||
env = HYPRCURSOR_SIZE,24
|
||||
|
||||
# Force all apps to use Wayland
|
||||
env = GDK_BACKEND,wayland,x11,*
|
||||
env = QT_QPA_PLATFORM,wayland;xcb
|
||||
env = QT_STYLE_OVERRIDE,kvantum
|
||||
env = SDL_VIDEODRIVER,wayland
|
||||
env = MOZ_ENABLE_WAYLAND,1
|
||||
env = ELECTRON_OZONE_PLATFORM_HINT,wayland
|
||||
env = OZONE_PLATFORM,wayland
|
||||
env = XDG_SESSION_TYPE,wayland
|
||||
|
||||
env = GDK_SCALE,2
|
||||
|
||||
# Allow better support for screen sharing (Google Meet, Discord, etc)
|
||||
env = XDG_CURRENT_DESKTOP,Hyprland
|
||||
env = XDG_SESSION_DESKTOP,Hyprland
|
||||
|
||||
xwayland {
|
||||
force_zero_scaling = true
|
||||
}
|
||||
|
||||
# Use XCompose file
|
||||
env = XCOMPOSEFILE,~/.XCompose
|
||||
|
||||
# Don't show update on first launch
|
||||
ecosystem {
|
||||
no_update_news = true
|
||||
}
|
||||
34
env/.config/hypr/hypridle.conf
vendored
Normal file
34
env/.config/hypr/hypridle.conf
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
general {
|
||||
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
|
||||
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
||||
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 150 # 2.5min.
|
||||
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
|
||||
on-resume = brightnessctl -r # monitor backlight restore.
|
||||
}
|
||||
|
||||
# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
|
||||
listener {
|
||||
timeout = 150 # 2.5min.
|
||||
on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight.
|
||||
on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight.
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 300 # 5min
|
||||
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 330 # 5.5min
|
||||
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
|
||||
on-resume = hyprctl dispatch dpms on && brightnessctl -r # screen on when activity is detected after timeout has fired.
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 1800 # 30min
|
||||
on-timeout = systemctl suspend # suspend pc
|
||||
}
|
||||
36
env/.config/hypr/hyprinput.conf
vendored
Normal file
36
env/.config/hypr/hyprinput.conf
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
#############
|
||||
### INPUT ###
|
||||
#############
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#input
|
||||
input {
|
||||
kb_layout = us
|
||||
kb_variant =
|
||||
kb_model =
|
||||
kb_options = ctrl:nocaps
|
||||
kb_rules =
|
||||
|
||||
repeat_rate = 50
|
||||
repeat_delay = 200
|
||||
|
||||
follow_mouse = 2
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
|
||||
touchpad {
|
||||
natural_scroll = true
|
||||
tap-to-click = false
|
||||
}
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
||||
# gestures {
|
||||
# workspace_swipe = false
|
||||
# }
|
||||
|
||||
# Example per-device config
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
|
||||
device {
|
||||
name = epic-mouse-v1
|
||||
sensitivity = -0.5
|
||||
}
|
||||
197
env/.config/hypr/hyprkeybinds.conf
vendored
Normal file
197
env/.config/hypr/hyprkeybinds.conf
vendored
Normal file
@@ -0,0 +1,197 @@
|
||||
##############################
|
||||
### HYPRLAND - KEYBINDINGS ###
|
||||
##############################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/
|
||||
$mainMod = SUPER # "Command/Windows" key as main modifier
|
||||
$windowMod = ALT # Option for window controls.
|
||||
$MEH = ALT SHIFT CTRL
|
||||
$HYPER = ALT SHIFT SUPER CTRL
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/
|
||||
|
||||
$terminal = uwsm app -- ghostty
|
||||
$browser = uwsm app -- brave
|
||||
$fileManager = $terminal -e yazi
|
||||
$fileBrowser = uwsm app -- nautilus
|
||||
$menu = hyprlauncher
|
||||
$scripts = ~/.local/scripts/hypr
|
||||
$pwa = $scripts/webapp launch
|
||||
$tmuxSessionator = ~/.local/scripts/tmux-sessionator
|
||||
$clipboardHistory = com.ghostty.clipse $terminal --class=com.ghostty.clipse -e clipse
|
||||
$uninstallDesktop = $terminal --class=com.ghostty.float -e $scripts/uninstall-desktop-app
|
||||
$utilsLauncher = com.ghostty.utils-launcher $scripts/utils-launcher --launch
|
||||
$housecallPro = https://pro.housecallpro.com/app/calendar_new
|
||||
|
||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
|
||||
##############################################################################################
|
||||
# Apps / hyprland controls
|
||||
#
|
||||
# These should in general use the $mainMod prefix
|
||||
##############################################################################################
|
||||
# MOD # KEY # DESC # Action #
|
||||
##############################################################################################
|
||||
|
||||
bindd = $mainMod, SPACE, Application launcher, exec, $menu
|
||||
bindd = $mainMod, RETURN, New terminal, exec, $terminal
|
||||
bindd = $mainMod SHIFT, RETURN, New floating terminal, exec, $terminal --class=com.ghostty.float
|
||||
bindd = $mainMod, TAB, Focus previous workspace, exec, $scripts/workspacectl switch --to previous
|
||||
bindd = $mainMod, A, [A]i - launch / focus, exec, $pwa --or-focus "https://ollama.housh.dev"
|
||||
bindd = $mainMod SHIFT, A, [A]i - new window, exec, $pwa "https://ollama.housh.dev"
|
||||
bindd = $mainMod, B, New [b]rowser, exec, $browser
|
||||
bindd = $mainMod SHIFT, B, New private [b]rowser, exec, $browser --incognito
|
||||
bindd = $mainMod, C, [C]alendar, togglespecialworkspace, calendar
|
||||
bindd = $mainMod SHIFT, C, [C]onfig folder in tmux session, exec, $terminal -e $tmuxSessionator ~/.config
|
||||
bindd = $mainMod, D, [D]ispatch app - special workspace, togglespecialworkspace, dispatch
|
||||
bindd = $mainMod SHIFT, D, [D]ispatch app - new window, exec, $pwa --new $housecallPro
|
||||
bindd = $mainMod, E, [E]mail - personal, exec, $pwa --or-focus "https://mail.proton.me"
|
||||
bindd = $mainMod SHIFT, E, [E]mail - work, exec, $scripts/launch --or-focus thunderbird uwsm app -- thunderbird
|
||||
bindd = $mainMod, F, [F]ile manager - terminal, exec, $fileManager
|
||||
bindd = $mainMod SHIFT, F, [F]ile manager - application, exec, $fileBrowser
|
||||
bindd = $mainMod, G, [G]itea, exec, $pwa --or-focus "https://git.housh.dev"
|
||||
bindd = $mainMod SHIFT, G, [G]ithub, exec, $pwa --or-focus "https://github.com"
|
||||
bindd = $mainMod, H, Focus window - left, movefocus, l # move window focus using vim keys
|
||||
bindd = $mainMod SHIFT, H, Workspace - back, workspace, -1
|
||||
bindd = $mainMod, I, Localsend, exec, $scripts/launch --or-close localsend uwsm app -- localsend
|
||||
bindd = $mainMod, J, Focus window - down, movefocus, d # move window focus using vim keys
|
||||
bindd = $mainMod, K, Focus window - up, movefocus, u # move window focus using vim keys
|
||||
bindd = $mainMod, L, Focus window - right, movefocus, r # move window focus using vim keys
|
||||
bindd = $mainMod SHIFT, L, Workspace - forward, workspace, +1
|
||||
bindd = $mainMod, M, [M]usic - jellyfin-tui, togglespecialworkspace, music
|
||||
bindd = $mainMod SHIFT, M, [M]enu bar - toggle visible, exec, $scripts/waybarctl --toggle
|
||||
bindd = $mainMod, O, Purchase [o]rders, exec, $pwa --special dispatch "https://po.housh.dev"
|
||||
bindd = $mainMod, P, [P]assword manager, togglespecialworkspace, pass
|
||||
bindd = $mainMod SHIFT, P, [P]hotos, exec, $pwa --or-focus "https://photos.housh.dev"
|
||||
bindd = $mainMod SHIFT, R, [R]estart menu bar, exec, $scripts/waybarctl --restart
|
||||
bindd = $mainMod, S, Toggle [s]pecial workspace, togglespecialworkspace, magic # use $windowMod S to send window to the special workspace
|
||||
bindd = $mainMod, Y, [Y]ouTube, exec, $pwa --or-focus "https://youtube.com"
|
||||
bindd = $mainMod, U, [U]nifi, exec, $pwa "https://unifi.ui.com"
|
||||
bindd = $mainMod SHIFT, U, [U]tility launcher, exec, $scripts/launch --or-close $utilsLauncher
|
||||
bindd = $mainMod, V, Clipboard history, exec, $scripts/launch --or-close $clipboardHistory
|
||||
bindd = $mainMod, W, Close current window, killactive,
|
||||
bindd = $mainMod SHIFT, W, Close all windows in active workspace, exec, $scripts/windowctl close --active-workspace
|
||||
|
||||
# Switch to workspaces with mainMod + [0-9]
|
||||
bindd = $mainMod, 1, Switch to workspace [1], exec, $scripts/workspacectl switch --to 1
|
||||
bindd = $mainMod, 2, Switch to workspace [2], exec, $scripts/workspacectl switch --to 2
|
||||
bindd = $mainMod, 3, Switch to workspace [3], exec, $scripts/workspacectl switch --to 3
|
||||
bindd = $mainMod, 4, Switch to workspace [4], exec, $scripts/workspacectl switch --to 4
|
||||
bindd = $mainMod, 5, Switch to workspace [5], exec, $scripts/workspacectl switch --to 5
|
||||
bindd = $mainMod, 6, Switch to workspace [6], exec, $scripts/workspacectl switch --to 6
|
||||
bindd = $mainMod, 7, Switch to workspace [7], exec, $scripts/workspacectl switch --to 7
|
||||
bindd = $mainMod, 8, Switch to workspace [8], exec, $scripts/workspacectl switch --to 8
|
||||
bindd = $mainMod, 9, Switch to workspace [9], exec, $scripts/workspacectl switch --to 9
|
||||
bindd = $mainMod, 0, Switch to workspace 1[0], exec, $scripts/workspacectl switch --to 10
|
||||
|
||||
# Move all workspaces to a monitor
|
||||
bindd = $mainMod SHIFT, 1, Switch all workspaces to monitor [1], exec, $scripts/mv-all-workspaces-to-monitor 1
|
||||
bindd = $mainMod SHIFT, 0, Switch all workspaces to monitor [0], exec, $scripts/mv-all-workspaces-to-monitor 0
|
||||
|
||||
# Screen Shots
|
||||
bindd = $mainMod SHIFT, 3, Screenshot a monitor, exec, hyprshot --mode output --output-folder ~/Pictures
|
||||
bindd = $mainMod SHIFT, 4, Screenshot a selection, exec, hyprshot --mode region --output-folder ~/Pictures
|
||||
bindd = $mainMod SHIFT, 5, Screenshot a window, exec, hyprshot --mode window --output-folder ~/Pictures
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
bindm = $mainMod SHIFT, mouse_down, resizewindow
|
||||
|
||||
#######################################################################################
|
||||
# Window controls
|
||||
#
|
||||
# These should in general use the $windowMod prefix
|
||||
##########################################################################################
|
||||
# MOD # KEY # DESC # Action #
|
||||
##########################################################################################
|
||||
# TODO: Decide which is prefered to switch to fullscreen.
|
||||
bindd = CTRL, F, Toggle [f]ullscreen, fullscreen,
|
||||
bindd = $windowMod, F, Toggle [f]loating, exec, $scripts/windowctl toggle-floating --active --width 80% --height 80%
|
||||
bindd = $windowMod SHIFT, F, Toggle [f]loating, exec, $scripts/windowctl toggle-floating --active
|
||||
bindd = $windowMod, H, Move window - left, movewindow, l # move windows with windowMod + vim keys
|
||||
bindd = $windowMod, J, Move window - down, movewindow, d # move windows with windowMod + vim keys
|
||||
bindd = $windowMod, K, Move window - up, movewindow, u # move windows with windowMod + vim keys
|
||||
bindd = $windowMod, L, Move window - right , movewindow, r # move windows with windowMod + vim keys
|
||||
bindd = $windowMod, M, Move window to [m]usic workspace, movetoworkspace, special:music
|
||||
bindd = $windowMod SHIFT, P, Toggle [p]seudo window mode, pseudo, # dwindle
|
||||
bindd = $windowMod, S, Move window to [s]pecial workspace, movetoworkspacesilent, special:magic
|
||||
bindd = $windowMod, W, [W]indow actions, exec, $scripts/windowctl launch action --active
|
||||
# FIX: Changes size of window, this works a different depending on if
|
||||
# the window is on the right or left of the screen.
|
||||
#
|
||||
# Resize horizontally
|
||||
bindd = $windowMod, EQUAL, Increase window size - horizontal, resizeactive, 20 0
|
||||
bindd = $windowMod, MINUS, Decrease window size - horizontal, resizeactive, -20 0
|
||||
# Resize vertically
|
||||
bindd = $windowMod SHIFT, EQUAL, Increase window size - vertical, resizeactive, 0 20
|
||||
bindd = $windowMod SHIFT, MINUS, Decrease window size - vertical, resizeactive, 0 -20
|
||||
|
||||
# Move active window to a workspace with windowMod + [0-9]
|
||||
bindd = $windowMod, 1, Move window to workspace [1], movetoworkspace, 1
|
||||
bindd = $windowMod, 2, Move window to workspace [2], movetoworkspace, 2
|
||||
bindd = $windowMod, 3, Move window to workspace [3], movetoworkspace, 3
|
||||
bindd = $windowMod, 4, Move window to workspace [4], movetoworkspace, 4
|
||||
bindd = $windowMod, 5, Move window to workspace [5], movetoworkspace, 5
|
||||
bindd = $windowMod, 6, Move window to workspace [6], movetoworkspace, 6
|
||||
bindd = $windowMod, 7, Move window to workspace [7], movetoworkspace, 7
|
||||
bindd = $windowMod, 8, Move window to workspace [8], movetoworkspace, 8
|
||||
bindd = $windowMod, 9, Move window to workspace [9], movetoworkspace, 9
|
||||
bindd = $windowMod, 0, Move window to workspace 1[0], movetoworkspace, 10
|
||||
|
||||
#######################################################################################
|
||||
# HYPER (Alt + Shift + Super + Ctrl) controls
|
||||
#
|
||||
# These should in general use the $HYPER prefix
|
||||
#######################################################################################
|
||||
# MOD # KEY # DESC # Action #
|
||||
#######################################################################################
|
||||
|
||||
bindd = $HYPER, H, [H]ide / show windows, exec, $scripts/workspacectl toggle
|
||||
bindd = $HYPER, J, Toggle split orientation, togglesplit # dwindle
|
||||
bindd = $HYPER, L, [L]ock computer, exec, hyprlock
|
||||
bindd = $HYPER, W, Close all windows, exec, $scripts/windowctl close --all
|
||||
|
||||
# Move active window to a workspace silently with HYPER + [0-9]
|
||||
bindd = $HYPER, 1, Move window to workspace silent [1], movetoworkspacesilent, 1
|
||||
bindd = $HYPER, 2, Move window to workspace silent [2], movetoworkspacesilent, 2
|
||||
bindd = $HYPER, 3, Move window to workspace silent [3], movetoworkspacesilent, 3
|
||||
bindd = $HYPER, 4, Move window to workspace silent [4], movetoworkspacesilent, 4
|
||||
bindd = $HYPER, 5, Move window to workspace silent [5], movetoworkspacesilent, 5
|
||||
bindd = $HYPER, 6, Move window to workspace silent [6], movetoworkspacesilent, 6
|
||||
bindd = $HYPER, 7, Move window to workspace silent [7], movetoworkspacesilent, 7
|
||||
bindd = $HYPER, 8, Move window to workspace silent [8], movetoworkspacesilent, 8
|
||||
bindd = $HYPER, 9, Move window to workspace silent [9], movetoworkspacesilent, 9
|
||||
bindd = $HYPER, 0, Move window to workspace silent 1[0], movetoworkspacesilent, 10
|
||||
|
||||
|
||||
#######################################################################################
|
||||
# MEH (Alt + Shift + Ctrl) controls
|
||||
#
|
||||
# These should in general use the $MEH prefix
|
||||
#######################################################################################
|
||||
# MOD # KEY # DESC # Action #
|
||||
#######################################################################################
|
||||
bindd = $MEH, L, [L]ogs picker / viewer, exec, $terminal --class=com.ghostty.float -e $scripts/utils/logs/logs-picker
|
||||
|
||||
##################################################
|
||||
# Multi-media keys
|
||||
##################################################
|
||||
# Laptop multimedia keys for volume and LCD brightness
|
||||
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
|
||||
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
||||
bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+
|
||||
bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%-
|
||||
|
||||
# Requires playerctl
|
||||
bindl = , XF86AudioNext, exec, playerctl next
|
||||
bindl = , XF86AudioPause, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||
|
||||
122
env/.config/hypr/hyprland.conf
vendored
Normal file
122
env/.config/hypr/hyprland.conf
vendored
Normal file
@@ -0,0 +1,122 @@
|
||||
|
||||
# #######################################################################################
|
||||
# HYPRLAND - GENERAL CONFIG
|
||||
# #######################################################################################
|
||||
|
||||
# Refer to the wiki for more information.
|
||||
# https://wiki.hyprland.org/Configuring/
|
||||
|
||||
source = ~/.config/hypr/hyprenv.conf
|
||||
source = ~/.config/hypr/hyprmonitors.conf
|
||||
source = ~/.config/hypr/hyprwindows.conf
|
||||
source = ~/.config/hypr/hyprworkspaces.conf
|
||||
source = ~/.config/hypr/hyprkeybinds.conf
|
||||
source = ~/.config/hypr/hyprinput.conf
|
||||
source = ~/.config/hypr/hyprautostart.conf
|
||||
|
||||
#####################
|
||||
### LOOK AND FEEL ###
|
||||
#####################
|
||||
|
||||
# Refer to https://wiki.hyprland.org/Configuring/Variables/
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#general
|
||||
general {
|
||||
gaps_in = 3
|
||||
gaps_out = 0, 5, 5, 5
|
||||
|
||||
border_size = 2
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
|
||||
col.active_border = rgb(89b4fa) rgb(f2cdcd) 45deg
|
||||
col.inactive_border = rgba(595959aa)
|
||||
|
||||
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
||||
resize_on_border = true
|
||||
|
||||
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
||||
allow_tearing = false
|
||||
|
||||
layout = dwindle # dwindle or master
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
||||
decoration {
|
||||
rounding = 5
|
||||
rounding_power = 2
|
||||
|
||||
# Change transparency of focused and unfocused windows
|
||||
active_opacity = 1.0
|
||||
inactive_opacity = 1.0
|
||||
|
||||
shadow {
|
||||
enabled = true
|
||||
range = 4
|
||||
render_power = 3
|
||||
color = rgba(1a1a1aee)
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#blur
|
||||
blur {
|
||||
enabled = true
|
||||
size = 3
|
||||
passes = 1
|
||||
|
||||
vibrancy = 0.1696
|
||||
}
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#animations
|
||||
animations {
|
||||
enabled = no, please :)
|
||||
|
||||
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
|
||||
bezier = easeOutQuint,0.23,1,0.32,1
|
||||
bezier = easeInOutCubic,0.65,0.05,0.36,1
|
||||
bezier = linear,0,0,1,1
|
||||
bezier = almostLinear,0.5,0.5,0.75,1.0
|
||||
bezier = quick,0.15,0,0.1,1
|
||||
|
||||
animation = global, 1, 10, default
|
||||
animation = border, 1, 5.39, easeOutQuint
|
||||
animation = windows, 1, 4.79, easeOutQuint
|
||||
animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
|
||||
animation = windowsOut, 1, 1.49, linear, popin 87%
|
||||
animation = fadeIn, 1, 1.73, almostLinear
|
||||
animation = fadeOut, 1, 1.46, almostLinear
|
||||
animation = fade, 1, 3.03, quick
|
||||
animation = layers, 1, 3.81, easeOutQuint
|
||||
animation = layersIn, 1, 4, easeOutQuint, fade
|
||||
animation = layersOut, 1, 1.5, linear, fade
|
||||
animation = fadeLayersIn, 1, 1.79, almostLinear
|
||||
animation = fadeLayersOut, 1, 1.39, almostLinear
|
||||
animation = workspaces, 1, 1.94, almostLinear, fade
|
||||
animation = workspacesIn, 1, 1.21, almostLinear, fade
|
||||
animation = workspacesOut, 1, 1.94, almostLinear, fade
|
||||
}
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
dwindle {
|
||||
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + SHIFT + P in the keybinds section below
|
||||
preserve_split = true # You probably want this
|
||||
force_split = 2 # always split to the right or bottom
|
||||
#split_width_multiplier = 1.25
|
||||
use_active_for_splits = false
|
||||
#default_split_ratio = 1.25
|
||||
split_bias = 0
|
||||
}
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
master {
|
||||
new_status = slave
|
||||
mfact = 0.50 # Set master window to be 50%
|
||||
orientation = left # set master to be on the right.
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
||||
misc {
|
||||
force_default_wallpaper = 1 # Set to 0 or 1 to disable the anime mascot wallpapers
|
||||
focus_on_activate = true
|
||||
disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
|
||||
}
|
||||
2
env/.config/hypr/hyprlauncher.conf
vendored
Normal file
2
env/.config/hypr/hyprlauncher.conf
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
desktop_launch_prefix = uwsm app --
|
||||
109
env/.config/hypr/hyprlock.conf
vendored
Normal file
109
env/.config/hypr/hyprlock.conf
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
# sample hyprlock.conf
|
||||
# for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock
|
||||
#
|
||||
# rendered text in all widgets supports pango markup (e.g. <b> or <i> tags)
|
||||
# ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#general-remarks
|
||||
#
|
||||
# shortcuts to clear password buffer: ESC, Ctrl+U, Ctrl+Backspace
|
||||
#
|
||||
# you can get started by copying this config to ~/.config/hypr/hyprlock.conf
|
||||
#
|
||||
|
||||
$font = Monospace
|
||||
|
||||
general {
|
||||
hide_cursor = false
|
||||
}
|
||||
|
||||
# uncomment to enable fingerprint authentication
|
||||
# auth {
|
||||
# fingerprint {
|
||||
# enabled = true
|
||||
# ready_message = Scan fingerprint to unlock
|
||||
# present_message = Scanning...
|
||||
# retry_delay = 250 # in milliseconds
|
||||
# }
|
||||
# }
|
||||
|
||||
# NOTE: Currently enabling animations and background 'path = screenshot' causes hyprlock
|
||||
# to not work, so they are disabled.
|
||||
animations {
|
||||
enabled = false
|
||||
bezier = linear, 1, 1, 0, 0
|
||||
animation = fadeIn, 1, 5, linear
|
||||
animation = fadeOut, 1, 5, linear
|
||||
animaution = inputFieldDots, 1, 2, linear
|
||||
}
|
||||
|
||||
background {
|
||||
monitor =
|
||||
#path = screenshot
|
||||
path = ~/wallpapers/wall1.png
|
||||
blur_passes = 3
|
||||
}
|
||||
|
||||
input-field {
|
||||
monitor =
|
||||
size = 20%, 5%
|
||||
outline_thickness = 3
|
||||
inner_color = rgba(0, 0, 0, 0.0) # no fill
|
||||
|
||||
outer_color = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||
check_color = rgba(00ff99ee) rgba(ff6633ee) 120deg
|
||||
fail_color = rgba(ff6633ee) rgba(ff0066ee) 40deg
|
||||
|
||||
font_color = rgb(143, 143, 143)
|
||||
fade_on_empty = false
|
||||
rounding = 15
|
||||
|
||||
font_family = $font
|
||||
placeholder_text = Input password...
|
||||
fail_text = $PAMFAIL
|
||||
|
||||
# uncomment to use a letter instead of a dot to indicate the typed password
|
||||
# dots_text_format = *
|
||||
# dots_size = 0.4
|
||||
dots_spacing = 0.3
|
||||
|
||||
# uncomment to use an input indicator that does not show the password length (similar to swaylock's input indicator)
|
||||
# hide_input = true
|
||||
|
||||
position = 0, -20
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
|
||||
# TIME
|
||||
label {
|
||||
monitor =
|
||||
text = $TIME # ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#variable-substitution
|
||||
font_size = 90
|
||||
font_family = $font
|
||||
|
||||
position = -30, 0
|
||||
halign = right
|
||||
valign = top
|
||||
}
|
||||
|
||||
# DATE
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:60000] date +"%A, %d %B %Y" # update every 60 seconds
|
||||
font_size = 25
|
||||
font_family = $font
|
||||
|
||||
position = -30, -150
|
||||
halign = right
|
||||
valign = top
|
||||
}
|
||||
|
||||
label {
|
||||
monitor =
|
||||
text = $LAYOUT[en,ru]
|
||||
font_size = 24
|
||||
onclick = hyprctl switchxkblayout all next
|
||||
|
||||
position = 250, -20
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
8
env/.config/hypr/hyprmonitors.conf
vendored
Normal file
8
env/.config/hypr/hyprmonitors.conf
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
################
|
||||
### MONITORS ###
|
||||
################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
monitor= ,preferred,auto,auto
|
||||
|
||||
|
||||
6
env/.config/hypr/hyprpaper.conf
vendored
Normal file
6
env/.config/hypr/hyprpaper.conf
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
wallpaper {
|
||||
monitor =
|
||||
path = /home/michael/wallpapers/wall1.png
|
||||
fit_mode = cover
|
||||
}
|
||||
|
||||
8
env/.config/hypr/hyprtoolkit.conf
vendored
Normal file
8
env/.config/hypr/hyprtoolkit.conf
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
background = rgb(1e1e2e)
|
||||
base = rgb(b4befe)
|
||||
alternate_base = rgb(cdd6f4)
|
||||
text = rgb(cdd6f4)
|
||||
bright_text = rgb(89b4fa)
|
||||
accent = rgb(b4befe)
|
||||
accent_secondary = rgb(cba6f7)
|
||||
|
||||
47
env/.config/hypr/hyprwindows.conf
vendored
Normal file
47
env/.config/hypr/hyprwindows.conf
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
###############
|
||||
### WINDOWS ###
|
||||
###############
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||
|
||||
# windowrule = float, tag:floating-window
|
||||
# windowrule = center, tag:floating-window
|
||||
# windowrule = size 60% 60%, tag:floating-window
|
||||
#
|
||||
# # Weather tui
|
||||
# windowrule = float, class:^(com.ghostty.weather)$
|
||||
# windowrule = center, class:^(com.ghostty.weather)$
|
||||
# windowrule = size 90% 80%, class:^(com.ghostty.weather)$
|
||||
#
|
||||
# # Force windows to be a floating window
|
||||
# windowrule = tag +floating-window, class:^(blueberry.py|org.gnome.Nautilus|com.ghostty.float)$
|
||||
# windowrule = tag +floating-window, class:^(com.ghostty.windowctl)$
|
||||
# windowrule = tag +floating-window, class:^(com.ghostty.utils-launcher)$
|
||||
# windowrule = tag +floating-window, class:^(com.ghostty.homelab-launcher)$
|
||||
#
|
||||
# # Force to stay focused when visible.
|
||||
# windowrule = stayfocused, class:(blueberry.py)
|
||||
# windowrule = stayfocused, class:Pinentry.gtk
|
||||
# windowrule = stayfocused, class:com.ghostty.float
|
||||
# windowrule = stayfocused, class:com.ghostty.windowctl
|
||||
# windowrule = stayfocused, class:^(com.ghostty.utils-launcher)$
|
||||
#
|
||||
# # Clipboard history tui in floating window.
|
||||
# windowrule = tag +floating-window, class:.*clipse.*
|
||||
# windowrule = stayfocused, class:.*clipse.*
|
||||
#
|
||||
# # Ignore maximize requests from apps. You'll probably like this.
|
||||
# windowrule = suppressevent maximize, class:.*
|
||||
#
|
||||
# # Just a dash of opacity by default.
|
||||
# windowrule = opacity 0.97 0.92, class:.*
|
||||
# # No opacity on youtube.
|
||||
# windowrule = opacity 1.0, class:.*youtube.com.*
|
||||
#
|
||||
# # Fix some dragging issues with XWayland
|
||||
# windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
||||
#
|
||||
# # To get more information about a window’s class, title, XWayland status or its size, you can use `hyprctl clients`. (From Hyprland Wiki)
|
||||
# windowrulev2 = float,class:^(one.alynx.showmethekey)$
|
||||
# windowrulev2 = float,class:^(showmethekey-gtk)$ # make window floating
|
||||
# windowrulev2 = pin,class:^(showmethekey-gtk)$ # pin window
|
||||
15
env/.config/hypr/hyprworkspaces.conf
vendored
Normal file
15
env/.config/hypr/hyprworkspaces.conf
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
##################
|
||||
### WORKSPACES ###
|
||||
##################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
|
||||
|
||||
$scripts = ~/.local/scripts/hypr
|
||||
$pwa = $scripts/webapp launch
|
||||
$housecallPro = $pwa "https://pro.housecallpro.com/app/calendar_new"
|
||||
|
||||
workspace = special:hidden, invisible
|
||||
workspace = special:pass,on-created-empty: $pwa "https://pass.proton.me"
|
||||
workspace = special:dispatch,on-created-empty: $housecallPro && $housecallPro
|
||||
workspace = special:music,on-created-empty: ghostty --class=com.ghostty.music -e jellyfin-tui
|
||||
workspace = special:calendar,on-created-empty: uwsm app -- gnome-calendar
|
||||
151
env/.config/kanata/macbook.kbd
vendored
Normal file
151
env/.config/kanata/macbook.kbd
vendored
Normal file
@@ -0,0 +1,151 @@
|
||||
;; Macbook-Pro configuration file.
|
||||
;;
|
||||
|
||||
;; Adapted from https://github.com/linkarzu/dotfiles-latest/blob/main/kanata/configs/macbook-subl.kbd
|
||||
;; Video related to this file
|
||||
;; https://youtu.be/jvJ3f4HHiMY
|
||||
|
||||
;; Kanata docs
|
||||
;; https://github.com/jtroo/kanata/blob/main/docs/config.adoc
|
||||
|
||||
;; OS key code mappings
|
||||
;; https://github.com/jtroo/kanata/blob/main/parser/src/keys/mod.rs
|
||||
|
||||
(defcfg
|
||||
process-unmapped-keys yes
|
||||
log-layer-changes no
|
||||
danger-enable-cmd yes
|
||||
concurrent-tap-hold yes
|
||||
rapid-event-delay 10
|
||||
allow-hardware-repeat false
|
||||
|
||||
;; When any non-chord activation happens, this timeout begins. Until this timeout expires
|
||||
;; all inputs will immediately skip chords processing and be processed by the active layer.
|
||||
;; chords-v2-min-idle 250
|
||||
)
|
||||
|
||||
;; Variables
|
||||
(defvar
|
||||
tap-higher 400
|
||||
tap-time 200
|
||||
tap-time-plus 300
|
||||
hold-time-plus 300
|
||||
hold-time 200
|
||||
chord-time 60
|
||||
subl-time 200
|
||||
tmux-delay 40
|
||||
)
|
||||
|
||||
;; Only one defsrc is allowed.
|
||||
;;
|
||||
;; defsrc defines the keys that will be intercepted by kanata. The order of the
|
||||
;; keys matches with deflayer declarations and all deflayer declarations must
|
||||
;; have the same number of keys as defsrc. Any keys not listed in defsrc will
|
||||
;; be passed straight to the operating system.
|
||||
(defsrc
|
||||
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
|
||||
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
|
||||
tab q w e r t y u i o p [ ] \
|
||||
caps a s d f g h j k l ; ' ret
|
||||
lsft z x c v b n m , . / ▲ rsft
|
||||
lctl lalt lmet spc rmet ralt ◀ ▼ ▶
|
||||
)
|
||||
|
||||
(defalias
|
||||
;; Modifier keys - Left
|
||||
mlctl (tap-hold $tap-time $hold-time a lctl)
|
||||
mlalt (tap-hold $tap-time $hold-time s lalt)
|
||||
mlmet (tap-hold $tap-time $hold-time d lmet)
|
||||
mlsft (tap-hold $tap-time $hold-time f lsft)
|
||||
|
||||
;; Modifier keys - Right
|
||||
mrsft (tap-hold $tap-time $hold-time j rsft)
|
||||
mrmet (tap-hold $tap-time $hold-time k rmet)
|
||||
mralt (tap-hold $tap-time $hold-time l ralt)
|
||||
mrctl (tap-hold $tap-time $hold-time ; rctl)
|
||||
|
||||
mretu (tap-hold $tap-time $hold-time tab ret)
|
||||
|
||||
;; number and symbols layer trigger keys.
|
||||
mlnums (tap-hold-press $tap-time-plus $hold-time-plus lmet (layer-while-held nums_and_symbols))
|
||||
mrnums (tap-hold-press $tap-time-plus $hold-time-plus rmet (layer-while-held nums_and_symbols))
|
||||
|
||||
;; mouse layer trigger keys.
|
||||
mlms (tap-hold-press $tap-time $hold-time esc (layer-while-held mouse))
|
||||
mrms (tap-hold-press $tap-time $hold-time ret (layer-while-held mouse))
|
||||
|
||||
;; Multi
|
||||
mhypr (tap-hold $tap-time $hold-time spc (multi lsft lctl lalt lmet)) ;; Hyper key
|
||||
|
||||
;; Sublayers
|
||||
;; I implemented sublayers thanks to the help in this discussion
|
||||
;; https://github.com/jtroo/kanata/discussions/1765
|
||||
;; DO NOT USE THE SUBLAYERS IN A FREQUENTLY PRESSED KEY LIKE SPACEBAR
|
||||
;; It made typing spaces a pain in the ass, enter is not pressed to often, so it works way better
|
||||
;; msubl (tap-hold-press $subl-time $subl-time ret (layer-while-held sublayers))
|
||||
|
||||
;; Execute script
|
||||
;; maltt (cmd open "btt://execute_assigned_actions_for_trigger/?uuid=F35EF770-FAA5-448A-957D-70BB449DEB0F")
|
||||
|
||||
;; key and script at the same time
|
||||
;; maltt (tap-hold $tap-time $hold-time lsft (cmd open "btt://execute_assigned_actions_for_trigger/?uuid=F35EF770-FAA5-448A-957D-70BB449DEB0F"))
|
||||
)
|
||||
|
||||
;; Blank layer
|
||||
;; (deflayer {{NAME}}
|
||||
;; esc XX XX XX XX XX XX XX XX XX XX XX XX ;; function row
|
||||
;; grv XX XX XX XX XX XX XX XX XX XX XX XX bspc ;; number row
|
||||
;; tab XX XX XX XX XX XX XX XX XX XX XX XX XX ;; top letter row
|
||||
;; caps XX XX XX XX XX XX XX XX XX XX XX ret ;; home row
|
||||
;; lsft XX XX XX XX XX XX XX XX XX XX XX rsft ;; bottom letter row
|
||||
;; lctl lalt lmet spc rmet ralt ◀ ▼ ▶ ;; control row
|
||||
;; )
|
||||
|
||||
;; Main layer
|
||||
;;
|
||||
;; Disable most function keys, and add homerow mods.
|
||||
;;
|
||||
(deflayer main
|
||||
esc brdn bru XX XX XX XX XX XX XX mute vold volu
|
||||
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
|
||||
tab q w e r t y u i o p [ ] \
|
||||
@mlms @mlctl @mlalt @mlmet @mlsft g h @mrsft @mrmet @mralt @mrctl ' @mrms
|
||||
lsft z x c v b n m , . / ▲ rsft
|
||||
lctl lalt @mlnums spc @mrnums ralt ◀ ▼ ▶
|
||||
)
|
||||
|
||||
;; Number and Symbols layer
|
||||
(deflayer nums_and_symbols
|
||||
esc XX XX XX XX XX XX XX XX XX XX XX XX
|
||||
S-grv XX XX XX XX XX XX XX XX XX XX - = bspc
|
||||
grv S-1 S-9 S-0 S-2 XX XX 1 2 3 \ XX XX XX
|
||||
XX [ ] S-[ S-] XX XX 4 5 6 . XX ret
|
||||
lsft S-7 S-8 S-4 S-3 XX XX 7 8 9 / XX rsft
|
||||
lctl lalt lmet 0 rmet ralt ◀ ▼ ▶
|
||||
)
|
||||
|
||||
(defalias
|
||||
mwu (mwheel-up 50 120)
|
||||
mwd (mwheel-down 50 120)
|
||||
mwl (mwheel-left 50 120)
|
||||
mwr (mwheel-right 50 120)
|
||||
|
||||
ma↑ (movemouse-accel-up 5 1000 1 3)
|
||||
ma← (movemouse-accel-left 5 1000 1 3)
|
||||
ma↓ (movemouse-accel-down 5 1000 1 3)
|
||||
ma→ (movemouse-accel-right 5 1000 1 3)
|
||||
|
||||
sm (setmouse 32228 32228)
|
||||
|
||||
fst (movemouse-speed 200)
|
||||
)
|
||||
|
||||
;; Mouse and arrow layer
|
||||
(deflayer mouse
|
||||
esc XX XX XX XX XX XX XX XX XX XX XX XX ;; function row
|
||||
grv XX XX XX XX XX XX XX XX XX XX XX XX bspc ;; number row
|
||||
tab XX XX ▲ XX XX @mwl @mwd @mwu @mwr XX XX XX XX ;; top letter row
|
||||
caps XX ◀ ▼ ▶ XX @ma← @ma↓ @ma↑ @ma→ XX XX mrtp ;; home row
|
||||
lsft XX XX XX XX XX XX XX XX XX XX XX rsft ;; bottom letter row
|
||||
lctl lalt lmet mltp rmet ralt XX XX XX ;; control row
|
||||
)
|
||||
156
env/.config/kanata/voyager.kbd
vendored
Normal file
156
env/.config/kanata/voyager.kbd
vendored
Normal file
@@ -0,0 +1,156 @@
|
||||
;; ZSA Voyager configuration file.
|
||||
;;
|
||||
|
||||
;; Adapted from https://github.com/linkarzu/dotfiles-latest/blob/main/kanata/configs/macbook-subl.kbd
|
||||
;; Video related to this file
|
||||
;; https://youtu.be/jvJ3f4HHiMY
|
||||
|
||||
;; Kanata docs
|
||||
;; https://github.com/jtroo/kanata/blob/main/docs/config.adoc
|
||||
|
||||
;; OS key code mappings
|
||||
;; https://github.com/jtroo/kanata/blob/main/parser/src/keys/mod.rs
|
||||
|
||||
(defcfg
|
||||
process-unmapped-keys yes
|
||||
log-layer-changes no
|
||||
danger-enable-cmd yes
|
||||
concurrent-tap-hold yes
|
||||
rapid-event-delay 3
|
||||
allow-hardware-repeat false
|
||||
|
||||
;; When any non-chord activation happens, this timeout begins. Until this timeout expires
|
||||
;; all inputs will immediately skip chords processing and be processed by the active layer.
|
||||
;; chords-v2-min-idle 250
|
||||
)
|
||||
|
||||
;; Variables
|
||||
(defvar
|
||||
tap-higher 400
|
||||
tap-time 150
|
||||
tap-time-plus 300
|
||||
hold-time-plus 300
|
||||
hold-time 200
|
||||
chord-time 60
|
||||
subl-time 200
|
||||
tmux-delay 40
|
||||
)
|
||||
|
||||
;; Only one defsrc is allowed.
|
||||
;;
|
||||
;; defsrc defines the keys that will be intercepted by kanata. The order of the
|
||||
;; keys matches with deflayer declarations and all deflayer declarations must
|
||||
;; have the same number of keys as defsrc. Any keys not listed in defsrc will
|
||||
;; be passed straight to the operating system.
|
||||
(defsrc
|
||||
;;----------------LEFT-------------------;------------------RIGHT-------------------;;
|
||||
= 1 2 3 4 5 6 7 8 9 0 -
|
||||
grv q w e r t y u i o p \
|
||||
esc a s d f g h j k l ; '
|
||||
lsft z x c v b n m , . / rsft
|
||||
ret tab bspc spc
|
||||
)
|
||||
|
||||
(defalias
|
||||
;; Modifier keys - Left
|
||||
mlctl (tap-hold $tap-time $hold-time a lctl)
|
||||
mlalt (tap-hold $tap-time $hold-time s lalt)
|
||||
mlmet (tap-hold $tap-time $hold-time d lmet)
|
||||
mlsft (tap-hold $tap-time $hold-time f lsft)
|
||||
|
||||
;; Modifier keys - Right
|
||||
mrsft (tap-hold $tap-time $hold-time j rsft)
|
||||
mrmet (tap-hold $tap-time $hold-time k rmet)
|
||||
mralt (tap-hold $tap-time $hold-time l ralt)
|
||||
mrctl (tap-hold $tap-time $hold-time ; rctl)
|
||||
|
||||
mretu (tap-hold $tap-time $hold-time tab ret)
|
||||
|
||||
;; number and symbols layer trigger keys.
|
||||
mlnums (tap-hold-press $tap-time-plus $hold-time-plus ret (layer-while-held nums_and_symbols))
|
||||
mrnums (tap-hold-press $tap-time-plus $hold-time-plus spc (layer-while-held nums_and_symbols))
|
||||
|
||||
;; mouse layer trigger keys.
|
||||
mlms (tap-hold-press $tap-time $hold-time esc (layer-while-held mouse))
|
||||
mrms (tap-hold-press $tap-time $hold-time ' (layer-while-held mouse))
|
||||
|
||||
;; Multi
|
||||
mhypr (tap-hold $tap-time $hold-time bspc (multi lsft lctl lalt lmet)) ;; Hyper key
|
||||
|
||||
;; Sublayers
|
||||
;; I implemented sublayers thanks to the help in this discussion
|
||||
;; https://github.com/jtroo/kanata/discussions/1765
|
||||
;; DO NOT USE THE SUBLAYERS IN A FREQUENTLY PRESSED KEY LIKE SPACEBAR
|
||||
;; It made typing spaces a pain in the ass, enter is not pressed to often, so it works way better
|
||||
;; msubl (tap-hold-press $subl-time $subl-time ret (layer-while-held sublayers))
|
||||
|
||||
;; Execute script
|
||||
;; maltt (cmd open "btt://execute_assigned_actions_for_trigger/?uuid=F35EF770-FAA5-448A-957D-70BB449DEB0F")
|
||||
|
||||
;; key and script at the same time
|
||||
;; maltt (tap-hold $tap-time $hold-time lsft (cmd open "btt://execute_assigned_actions_for_trigger/?uuid=F35EF770-FAA5-448A-957D-70BB449DEB0F"))
|
||||
)
|
||||
|
||||
;; BLANK LAYER
|
||||
;; (deflayer {{NAME}}
|
||||
;;;;----------------LEFT-------------------;------------------RIGHT-------------------;;
|
||||
;; = 1 2 3 4 5 6 7 8 9 0 -
|
||||
;; grv q w e r t y u i o p \
|
||||
;; esc a s d f g h j k l ; '
|
||||
;; lsft z x c v b n m , . / rsft
|
||||
;; ret tab bspc spc
|
||||
;; )
|
||||
|
||||
;; Main layer
|
||||
(deflayer main
|
||||
;;----------------LEFT----------------------------;-------------------------RIGHT---------------------------;;
|
||||
= 1 2 3 4 5 6 7 8 9 0 -
|
||||
grv q w e r t y u i o p \
|
||||
@mlms @mlctl @mlalt @mlmet @mlsft g h @mrsft @mrmet @mralt @mrctl @mrms
|
||||
lsft z x c v b n m , . / rsft
|
||||
@mlnums tab @mhypr @mrnums
|
||||
)
|
||||
|
||||
(defalias
|
||||
;; Number layer modifier keys - Left
|
||||
nlctl (tap-hold $tap-time $hold-time [ lctl)
|
||||
nlalt (tap-hold $tap-time $hold-time ] lalt)
|
||||
nlmet (tap-hold $tap-time $hold-time S-[ lmet)
|
||||
nlsft (tap-hold $tap-time $hold-time S-] lsft)
|
||||
)
|
||||
|
||||
;; Number and Symbols layer
|
||||
(deflayer nums_and_symbols
|
||||
;;----------------LEFT---------------------------------;-------------------RIGHT-------------------;;
|
||||
= XX XX XX XX XX XX XX XX XX XX -
|
||||
S-grv S-1 S-9 S-0 S-2 XX - 1 2 3 \ \
|
||||
XX @nlctl @nlalt @nlmet @nlsft XX S-= 4 5 6 . '
|
||||
lsft S-7 S-8 S-3 S-4 XX S-8 7 8 9 / rsft
|
||||
@mlnums tab @mhypr 0
|
||||
)
|
||||
|
||||
(defalias
|
||||
mwu (mwheel-up 50 120)
|
||||
mwd (mwheel-down 50 120)
|
||||
mwl (mwheel-left 50 120)
|
||||
mwr (mwheel-right 50 120)
|
||||
|
||||
ma↑ (movemouse-accel-up 5 1000 1 3)
|
||||
ma← (movemouse-accel-left 5 1000 1 3)
|
||||
ma↓ (movemouse-accel-down 5 1000 1 3)
|
||||
ma→ (movemouse-accel-right 5 1000 1 3)
|
||||
|
||||
sm (setmouse 32228 32228)
|
||||
|
||||
fst (movemouse-speed 200)
|
||||
)
|
||||
|
||||
;; Mouse and arrow layer
|
||||
(deflayer mouse
|
||||
;;----------------LEFT-------------------;------------------RIGHT-------------------;;
|
||||
XX brdn bru XX XX XX XX XX mute vold volu XX
|
||||
XX XX XX ▲ XX XX @mwl @mwd @mwu @mwr XX XX
|
||||
XX XX ◀ ▼ ▶ XX @ma← @ma↓ @ma↑ @ma→ XX XX
|
||||
XX XX XX XX XX XX XX XX XX XX XX XX
|
||||
ret tab mltp mrtp
|
||||
)
|
||||
0
npm/npmrc → env/.config/npm/npmrc
vendored
0
npm/npmrc → env/.config/npm/npmrc
vendored
1
env/.config/nvim
vendored
Submodule
1
env/.config/nvim
vendored
Submodule
Submodule env/.config/nvim added at da24092050
7
env/.config/ripgrep/ripgreprc
vendored
Normal file
7
env/.config/ripgrep/ripgreprc
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
# Show hidden files
|
||||
--hidden
|
||||
# Ignore '.git' directory
|
||||
--glob=!.git/*
|
||||
--no-follow
|
||||
--color=never
|
||||
|
||||
115
env/.config/starship/starship.toml
vendored
Normal file
115
env/.config/starship/starship.toml
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
"$schema" = 'https://starship.rs/config-schema.json'
|
||||
|
||||
command_timeout = 1000
|
||||
|
||||
format = """
|
||||
[](color_orange)\
|
||||
$os\
|
||||
$username\
|
||||
$hostname\
|
||||
[](bg:color_lavender fg:color_orange)\
|
||||
${custom.devpod}\
|
||||
[](bg:color_pink fg:color_lavender)\
|
||||
$directory\
|
||||
[](fg:color_pink bg:color_bg1)\
|
||||
$git_branch\
|
||||
$git_status\
|
||||
$line_break$character"""
|
||||
|
||||
palette = 'catppuccin_mocha'
|
||||
|
||||
[palettes.catppuccin_mocha]
|
||||
color_fg0 = '#cad3f5'
|
||||
color_bg1 = '#1e2030'
|
||||
color_bg3 = '#24273a'
|
||||
color_blue = '#8aadf4'
|
||||
color_aqua = '#94e2d5'
|
||||
color_green = '#a6e3a1'
|
||||
color_orange = '#f5a97f'
|
||||
color_purple = '#c6a0f6'
|
||||
color_lavender = '#b4befe'
|
||||
color_red = '#ed8796'
|
||||
color_yellow = '#eed49f'
|
||||
color_grey = '#585b70'
|
||||
color_maroon = '#eba0ac'
|
||||
color_pink = '#f5c2e7'
|
||||
color_text = '#585b70'
|
||||
|
||||
[custom.devpod]
|
||||
description = "Displays the active Devpod workspace"
|
||||
command = "echo $(echo $DEVPOD_WORKSPACE_ID | sed 's/.*://')"
|
||||
when = "[[ -n $DEVPOD_WORKSPACE_ID ]]"
|
||||
style = "bold bg:color_lavender fg:color_text"
|
||||
format = "[ 📦 $output ]($style)"
|
||||
disabled = false
|
||||
|
||||
[os]
|
||||
disabled = false
|
||||
style = "bold bg:color_orange fg:color_fg0"
|
||||
|
||||
[os.symbols]
|
||||
Windows = ""
|
||||
Ubuntu = ""
|
||||
SUSE = ""
|
||||
Raspbian = ""
|
||||
Mint = ""
|
||||
Macos = ""
|
||||
Manjaro = ""
|
||||
Linux = ""
|
||||
Gentoo = ""
|
||||
Fedora = ""
|
||||
Alpine = ""
|
||||
Amazon = ""
|
||||
Android = ""
|
||||
Arch = ""
|
||||
Artix = ""
|
||||
CentOS = ""
|
||||
Debian = ""
|
||||
Redhat = ""
|
||||
RedHatEnterprise = ""
|
||||
|
||||
[username]
|
||||
show_always = true
|
||||
style_user = "bold bg:color_orange fg:color_text"
|
||||
style_root = "bold bg:color_orange fg:color_text"
|
||||
format = '[ $user ]($style)'
|
||||
|
||||
[hostname]
|
||||
ssh_only = true
|
||||
format = '[$ssh_symbol : $hostname](bold bg:color_orange fg:color_text)'
|
||||
disabled = false
|
||||
|
||||
[directory]
|
||||
style = "bold fg:color_text bg:color_pink"
|
||||
format = "[ $path ]($style)"
|
||||
truncation_length = 3
|
||||
truncation_symbol = "…/"
|
||||
truncate_to_repo = true
|
||||
|
||||
[directory.substitutions]
|
||||
"Documents" = " "
|
||||
"Downloads" = " "
|
||||
"Music" = " "
|
||||
"Pictures" = " "
|
||||
"Developer" = " "
|
||||
|
||||
[git_branch]
|
||||
symbol = ""
|
||||
style = "bg:color_bg1"
|
||||
format = '[[ $symbol $branch ](bold fg:color_green bg:color_bg1)]($style)'
|
||||
|
||||
[git_status]
|
||||
style = "bold bg:color_bg1"
|
||||
format = '[[($all_status$ahead_behind )](bold fg:color_green bg:color_bg1)]($style)'
|
||||
|
||||
[line_break]
|
||||
disabled = false
|
||||
|
||||
[character]
|
||||
disabled = false
|
||||
success_symbol = '[❯](bold fg:color_green)'
|
||||
error_symbol = '[❯](bold fg:color_red)'
|
||||
vimcmd_symbol = '[❮](bold fg:color_green)'
|
||||
vimcmd_replace_one_symbol = '[❮](bold fg:color_purple)'
|
||||
vimcmd_replace_symbol = '[❮](bold fg:color_purple)'
|
||||
vimcmd_visual_symbol = '[❮](bold fg:color_yellow)'
|
||||
8
env/.config/systemd/user/battery-monitor.service
vendored
Normal file
8
env/.config/systemd/user/battery-monitor.service
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Battery Monitor Service
|
||||
After=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=%h/.local/scripts/hypr/battery-monitor
|
||||
Environment=DISPLAY=:0
|
||||
11
env/.config/systemd/user/battery-monitor.timer
vendored
Normal file
11
env/.config/systemd/user/battery-monitor.timer
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Battery Monitor Timer
|
||||
Requires=battery-monitor.service
|
||||
|
||||
[Timer]
|
||||
OnBootSec=1min
|
||||
OnUnitActiveSec=30sec
|
||||
AccuracySec=10sec
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
11
env/.config/systemd/user/logout-task.service
vendored
Normal file
11
env/.config/systemd/user/logout-task.service
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Clear clipboard history at logout
|
||||
DefaultDependencies=no
|
||||
Before=exit.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=%h/.local/scripts/hypr/clear-clipboard-history
|
||||
|
||||
[Install]
|
||||
WantedBy=exit.target
|
||||
7
env/.config/systemd/user/tmux-kill-sessions.service
vendored
Normal file
7
env/.config/systemd/user/tmux-kill-sessions.service
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Tmux kill sessions service
|
||||
After=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=%h/.local/scripts/tmux-kill-old-sessions
|
||||
11
env/.config/systemd/user/tmux-kill-sessions.timer
vendored
Normal file
11
env/.config/systemd/user/tmux-kill-sessions.timer
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Tmux kill sessions timer
|
||||
Requires=tmux-kill-sessions.service
|
||||
|
||||
[Timer]
|
||||
OnBootSec=2h
|
||||
OnUnitActiveSec=2h
|
||||
AccuracySec=10sec
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
68
env/.config/tree-sitter/config.json
vendored
Normal file
68
env/.config/tree-sitter/config.json
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"parser-directories": [
|
||||
"/home/michael/github",
|
||||
"/home/michael/src",
|
||||
"/home/michael/source",
|
||||
"/home/michael/projects",
|
||||
"/home/michael/dev",
|
||||
"/home/michael/git"
|
||||
],
|
||||
"theme": {
|
||||
"attribute": {
|
||||
"color": 124,
|
||||
"italic": true
|
||||
},
|
||||
"comment": {
|
||||
"color": 245,
|
||||
"italic": true
|
||||
},
|
||||
"constant": 94,
|
||||
"constant.builtin": {
|
||||
"bold": true,
|
||||
"color": 94
|
||||
},
|
||||
"constructor": 136,
|
||||
"embedded": null,
|
||||
"function": 26,
|
||||
"function.builtin": {
|
||||
"bold": true,
|
||||
"color": 26
|
||||
},
|
||||
"keyword": 56,
|
||||
"module": 136,
|
||||
"number": {
|
||||
"bold": true,
|
||||
"color": 94
|
||||
},
|
||||
"operator": {
|
||||
"bold": true,
|
||||
"color": 239
|
||||
},
|
||||
"property": 124,
|
||||
"property.builtin": {
|
||||
"bold": true,
|
||||
"color": 124
|
||||
},
|
||||
"punctuation": 239,
|
||||
"punctuation.bracket": 239,
|
||||
"punctuation.delimiter": 239,
|
||||
"punctuation.special": 239,
|
||||
"string": 28,
|
||||
"string.special": 30,
|
||||
"tag": 18,
|
||||
"type": 23,
|
||||
"type.builtin": {
|
||||
"bold": true,
|
||||
"color": 23
|
||||
},
|
||||
"variable": 252,
|
||||
"variable.builtin": {
|
||||
"bold": true,
|
||||
"color": 252
|
||||
},
|
||||
"variable.parameter": {
|
||||
"color": 252,
|
||||
"underline": true
|
||||
}
|
||||
}
|
||||
}
|
||||
57
env/.config/utils-launcher/config.json
vendored
Normal file
57
env/.config/utils-launcher/config.json
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
[
|
||||
{
|
||||
"name": "App - install web app",
|
||||
"description": "Install a new website as a desktop application that can be launched by an application launcher.",
|
||||
"exec": "$SCRIPTS/hypr/install-webapp"
|
||||
},
|
||||
{
|
||||
"name": "App - uninstall desktop app",
|
||||
"description": "Uninstalls desktop applications and their icon, generally used for web\napplications.\n\nIf the app was installed through a package manager, then you should\nuse the package manager to uninstall the applciation.",
|
||||
"exec": "$SCRIPTS/hypr/uninstall-desktop-app"
|
||||
},
|
||||
{
|
||||
"name": "Clipboard - clear history",
|
||||
"description": "Clear the clipboard history file.",
|
||||
"exec": "$SCRIPTS/hypr/clear-clipboard-history --notify-complete"
|
||||
},
|
||||
{
|
||||
"name": "Logs - view logs",
|
||||
"description": "View logs generated by our custom commands.",
|
||||
"exec": "$SCRIPTS/hypr/utils/logs/logs-picker"
|
||||
},
|
||||
{
|
||||
"name": "Monitors - stats / picker",
|
||||
"description": "View information from hyprctl about currently connected monitors.",
|
||||
"exec": "$SCRIPTS/hypr/monitorctl picker"
|
||||
},
|
||||
{
|
||||
"name": "Waybar - restart",
|
||||
"description": "Restart the menu bar application, useful when making changes to the configuration.",
|
||||
"exec": "$SCRIPTS/hypr/waybarctl --restart"
|
||||
},
|
||||
{
|
||||
"name": "Waybar - toggle",
|
||||
"description": "Toggle the visibility of the menu bar.",
|
||||
"exec": "$SCRIPTS/hypr/waybarctl --toggle"
|
||||
},
|
||||
{
|
||||
"name": "Windows - window stats / picker",
|
||||
"description": "View information from hyprctl about all the current windows.\n\nAllows you to choose an action you would like to perform on the selected window.",
|
||||
"exec": "$SCRIPTS/hypr/windowctl picker"
|
||||
},
|
||||
{
|
||||
"name": "Windows - close in active workspace",
|
||||
"description": "Close all windows in the currently active workspace.",
|
||||
"exec": "$SCRIPTS/hypr/windowctl close --active-workspace"
|
||||
},
|
||||
{
|
||||
"name": "Windows - close ALL",
|
||||
"description": "Close all windows in all workspaces.",
|
||||
"exec": "$SCRIPTS/hypr/windowctl close --all"
|
||||
},
|
||||
{
|
||||
"name": "Workspaces - stats / picker",
|
||||
"description": "View information from hyprctl about currently available workspaces",
|
||||
"exec": "$SCRIPTS/hypr/workspacectl picker"
|
||||
}
|
||||
]
|
||||
88
env/.config/waybar/config.jsonc
vendored
Normal file
88
env/.config/waybar/config.jsonc
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
// -*- mode: jsonc -*-
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"modules-left": ["hyprland/workspaces"],
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": [
|
||||
"pulseaudio",
|
||||
"idle_inhibitor",
|
||||
"tray",
|
||||
"cpu",
|
||||
"memory",
|
||||
"battery",
|
||||
"network",
|
||||
"custom/lock",
|
||||
],
|
||||
"hyprland/workspaces": {
|
||||
"format": "{name}: {icon}",
|
||||
"format-icons": {
|
||||
"active": "",
|
||||
"default": "",
|
||||
},
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 21,
|
||||
"spacing": 10,
|
||||
},
|
||||
"clock": {
|
||||
"timezone": "America/New_York",
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format": "{:%d - %H:%M}",
|
||||
},
|
||||
"network": {
|
||||
"format-wifi": " ",
|
||||
"format-ethernet": " ",
|
||||
"format-disconnected": " ",
|
||||
"interval": 5,
|
||||
"tooltip": false,
|
||||
},
|
||||
"cpu": {
|
||||
"interval": 1,
|
||||
"format": " {icon0}{icon1}{icon2}{icon3} {usage:>2}%",
|
||||
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
|
||||
},
|
||||
"memory": {
|
||||
"interval": 30,
|
||||
"format": " {used:0.1f}G/{total:0.1f}G",
|
||||
},
|
||||
"pulseaudio": {
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": "",
|
||||
"format-icons": {
|
||||
"default": ["", "", " "],
|
||||
},
|
||||
"on-click": "pavucontrol",
|
||||
},
|
||||
"custom/lock": {
|
||||
"tooltip": false,
|
||||
"on-click": "sh -c '(sleep 0.5s; hyprlock)' & disown",
|
||||
"format": "",
|
||||
},
|
||||
"later": {
|
||||
"format": "<span class='icon'>{icon}</span> <span class='text'>{text}</span>",
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15,
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-full": "{capacity}% {icon}",
|
||||
"format-charging": "{capacity}% ",
|
||||
"format-plugged": "{capacity}% ",
|
||||
"format-alt": "{time} {icon}",
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": ["", "", "", "", ""],
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
139
env/.config/waybar/style.css
vendored
Normal file
139
env/.config/waybar/style.css
vendored
Normal file
@@ -0,0 +1,139 @@
|
||||
@define-color foreground #cdd6f4;
|
||||
@define-color background rgba(24, 24, 37, 0.7);
|
||||
@define-color skyblue #89dceb;
|
||||
@define-color blue #89b4fa;
|
||||
@define-color red #f38ba8;
|
||||
@define-color yellow #f9e2af;
|
||||
@define-color peach #fab387;
|
||||
@define-color maroon #eba0ac;
|
||||
@define-color green #a6e3a1;
|
||||
|
||||
* {
|
||||
font-family: JetbrainsMono Nerd Font;
|
||||
font-size: 15px;
|
||||
min-height: 0;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
#waybar {
|
||||
background: transparent;
|
||||
color: @foreground;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
background: @background;
|
||||
border-radius: 10px;
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
margin-left: 0.4rem;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
color: @foreground;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: @skyblue;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
color: #85c1dc;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#custom-music,
|
||||
#tray,
|
||||
#backlight,
|
||||
#clock,
|
||||
#battery,
|
||||
#pulseaudio,
|
||||
#network,
|
||||
#cpu,
|
||||
#memory,
|
||||
#custom-lock,
|
||||
#custom-power,
|
||||
#idle_inhibitor {
|
||||
background-color: @background;
|
||||
padding: 0.5rem 1rem;
|
||||
margin: 5px 0;
|
||||
color: @foreground;
|
||||
/* border-radius: 0px 5px 5px 0px; */
|
||||
}
|
||||
|
||||
#clock {
|
||||
color: @foreground;
|
||||
border-radius: 5px;
|
||||
margin-right: 1rem;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
|
||||
#pulseaudio {
|
||||
color: @red;
|
||||
border-radius: 10px 0px 0px 10px;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
border-radius: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
#tray {
|
||||
color: @blue;
|
||||
border-radius: 0px 10px 10px 0px;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
color: @lavender;
|
||||
border-radius: 10px 0px 0px 10px;
|
||||
}
|
||||
|
||||
#memory {
|
||||
color: @peach;
|
||||
margin-right: 1rem;
|
||||
border-radius: 0px 10px 10px 0px;
|
||||
}
|
||||
|
||||
#battery {
|
||||
border-radius: 10px 0px 0px 10px;
|
||||
color: @green;
|
||||
}
|
||||
|
||||
#battery.warning:not(.charging) {
|
||||
color: @yellow;
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
color: @red;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
color: #e5c890;
|
||||
}
|
||||
|
||||
#custom-music {
|
||||
color: #ca9ee6;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#network {
|
||||
margin-right: 1rem;
|
||||
border-radius: 0px 10px 10px 0px;
|
||||
}
|
||||
|
||||
#custom-lock {
|
||||
border-radius: 10px;
|
||||
color: @yellow;
|
||||
margin-right: 0.4rem;
|
||||
}
|
||||
|
||||
#custom-power {
|
||||
margin-right: 1rem;
|
||||
border-radius: 0px 5px 5px 0px;
|
||||
color: #e78284;
|
||||
}
|
||||
193
env/.config/yazi/theme.toml
vendored
Normal file
193
env/.config/yazi/theme.toml
vendored
Normal file
@@ -0,0 +1,193 @@
|
||||
# https://github.com/yazi-rs/flavors.git
|
||||
# Catpuccin - Mocha
|
||||
# : Manager {{{
|
||||
|
||||
[mgr]
|
||||
cwd = { fg = "#94e2d5" }
|
||||
|
||||
# Hovered
|
||||
hovered = { reversed = true }
|
||||
preview_hovered = { underline = true }
|
||||
|
||||
# Find
|
||||
find_keyword = { fg = "#f9e2af", bold = true, italic = true, underline = true }
|
||||
find_position = { fg = "#f5c2e7", bg = "reset", bold = true, italic = true }
|
||||
|
||||
# Marker
|
||||
marker_copied = { fg = "#a6e3a1", bg = "#a6e3a1" }
|
||||
marker_cut = { fg = "#f38ba8", bg = "#f38ba8" }
|
||||
marker_marked = { fg = "#94e2d5", bg = "#94e2d5" }
|
||||
marker_selected = { fg = "#f9e2af", bg = "#f9e2af" }
|
||||
|
||||
# Tab
|
||||
tab_active = { reversed = true }
|
||||
tab_inactive = {}
|
||||
tab_width = 1
|
||||
|
||||
# Count
|
||||
count_copied = { fg = "#1e1e2e", bg = "#a6e3a1" }
|
||||
count_cut = { fg = "#1e1e2e", bg = "#f38ba8" }
|
||||
count_selected = { fg = "#1e1e2e", bg = "#f9e2af" }
|
||||
|
||||
# Border
|
||||
border_symbol = "│"
|
||||
border_style = { fg = "#7f849c" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Mode {{{
|
||||
|
||||
[mode]
|
||||
|
||||
normal_main = { fg = "#1e1e2e", bg = "#89b4fa", bold = true }
|
||||
normal_alt = { fg = "#89b4fa", bg = "#313244" }
|
||||
|
||||
# Select mode
|
||||
select_main = { fg = "#1e1e2e", bg = "#a6e3a1", bold = true }
|
||||
select_alt = { fg = "#a6e3a1", bg = "#313244" }
|
||||
|
||||
# Unset mode
|
||||
unset_main = { fg = "#1e1e2e", bg = "#f2cdcd", bold = true }
|
||||
unset_alt = { fg = "#f2cdcd", bg = "#313244" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Status bar {{{
|
||||
|
||||
[status]
|
||||
separator_open = ""
|
||||
separator_close = ""
|
||||
|
||||
# Progress
|
||||
progress_label = { fg = "#ffffff", bold = true }
|
||||
progress_normal = { fg = "#89b4fa", bg = "#45475a" }
|
||||
progress_error = { fg = "#f38ba8", bg = "#45475a" }
|
||||
|
||||
# Permissions
|
||||
perm_sep = { fg = "#7f849c" }
|
||||
perm_type = { fg = "#89b4fa" }
|
||||
perm_read = { fg = "#f9e2af" }
|
||||
perm_write = { fg = "#f38ba8" }
|
||||
perm_exec = { fg = "#a6e3a1" }
|
||||
|
||||
# TODO: -- remove these once Yazi 0.4 gets released
|
||||
separator_style = { fg = "#313244", bg = "#313244" }
|
||||
mode_normal = { fg = "#1e1e2e", bg = "#89b4fa", bold = true }
|
||||
mode_select = { fg = "#1e1e2e", bg = "#a6e3a1", bold = true }
|
||||
mode_unset = { fg = "#1e1e2e", bg = "#f2cdcd", bold = true }
|
||||
permissions_t = { fg = "#89b4fa" }
|
||||
permissions_r = { fg = "#f9e2af" }
|
||||
permissions_w = { fg = "#f38ba8" }
|
||||
permissions_x = { fg = "#a6e3a1" }
|
||||
permissions_s = { fg = "#7f849c" }
|
||||
# TODO: remove these once Yazi 0.4 gets released --
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Pick {{{
|
||||
|
||||
[pick]
|
||||
border = { fg = "#89b4fa" }
|
||||
active = { fg = "#f5c2e7", bold = true }
|
||||
inactive = {}
|
||||
|
||||
# TODO: -- remove these once Yazi 0.4 gets released
|
||||
[select]
|
||||
border = { fg = "#89b4fa" }
|
||||
active = { fg = "#f5c2e7", bold = true }
|
||||
inactive = {}
|
||||
# TODO: remove these once Yazi 0.4 gets released --
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Input {{{
|
||||
|
||||
[input]
|
||||
border = { fg = "#89b4fa" }
|
||||
title = {}
|
||||
value = {}
|
||||
selected = { reversed = true }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Completion {{{
|
||||
|
||||
[completion]
|
||||
border = { fg = "#89b4fa" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Tasks {{{
|
||||
|
||||
[tasks]
|
||||
border = { fg = "#89b4fa" }
|
||||
title = {}
|
||||
hovered = { fg = "#f5c2e7", underline = true }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Which {{{
|
||||
|
||||
[which]
|
||||
mask = { bg = "#313244" }
|
||||
cand = { fg = "#94e2d5" }
|
||||
rest = { fg = "#9399b2" }
|
||||
desc = { fg = "#f5c2e7" }
|
||||
separator = " "
|
||||
separator_style = { fg = "#585b70" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Help {{{
|
||||
|
||||
[help]
|
||||
on = { fg = "#94e2d5" }
|
||||
run = { fg = "#f5c2e7" }
|
||||
hovered = { reversed = true, bold = true }
|
||||
footer = { fg = "#313244", bg = "#cdd6f4" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Notify {{{
|
||||
|
||||
[notify]
|
||||
title_info = { fg = "#a6e3a1" }
|
||||
title_warn = { fg = "#f9e2af" }
|
||||
title_error = { fg = "#f38ba8" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : File-specific styles {{{
|
||||
|
||||
[filetype]
|
||||
|
||||
rules = [
|
||||
# Images
|
||||
{ mime = "image/*", fg = "#94e2d5" },
|
||||
|
||||
# Media
|
||||
{ mime = "{audio,video}/*", fg = "#f9e2af" },
|
||||
|
||||
# Archives
|
||||
{ mime = "application/*zip", fg = "#f5c2e7" },
|
||||
{ mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", fg = "#f5c2e7" },
|
||||
|
||||
# Documents
|
||||
{ mime = "application/{pdf,doc,rtf,vnd.*}", fg = "#a6e3a1" },
|
||||
|
||||
# Fallback
|
||||
{ name = "*", fg = "#cdd6f4" },
|
||||
{ name = "*/", fg = "#89b4fa" }
|
||||
]
|
||||
|
||||
# : }}}
|
||||
193
env/.config/yazi/theme.toml-1748966637471042
vendored
Normal file
193
env/.config/yazi/theme.toml-1748966637471042
vendored
Normal file
@@ -0,0 +1,193 @@
|
||||
# https://github.com/yazi-rs/flavors.git
|
||||
# Catpuccin - Mocha
|
||||
# : Manager {{{
|
||||
|
||||
[manager]
|
||||
cwd = { fg = "#94e2d5" }
|
||||
|
||||
# Hovered
|
||||
hovered = { reversed = true }
|
||||
preview_hovered = { underline = true }
|
||||
|
||||
# Find
|
||||
find_keyword = { fg = "#f9e2af", bold = true, italic = true, underline = true }
|
||||
find_position = { fg = "#f5c2e7", bg = "reset", bold = true, italic = true }
|
||||
|
||||
# Marker
|
||||
marker_copied = { fg = "#a6e3a1", bg = "#a6e3a1" }
|
||||
marker_cut = { fg = "#f38ba8", bg = "#f38ba8" }
|
||||
marker_marked = { fg = "#94e2d5", bg = "#94e2d5" }
|
||||
marker_selected = { fg = "#f9e2af", bg = "#f9e2af" }
|
||||
|
||||
# Tab
|
||||
tab_active = { reversed = true }
|
||||
tab_inactive = {}
|
||||
tab_width = 1
|
||||
|
||||
# Count
|
||||
count_copied = { fg = "#1e1e2e", bg = "#a6e3a1" }
|
||||
count_cut = { fg = "#1e1e2e", bg = "#f38ba8" }
|
||||
count_selected = { fg = "#1e1e2e", bg = "#f9e2af" }
|
||||
|
||||
# Border
|
||||
border_symbol = "│"
|
||||
border_style = { fg = "#7f849c" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Mode {{{
|
||||
|
||||
[mode]
|
||||
|
||||
normal_main = { fg = "#1e1e2e", bg = "#89b4fa", bold = true }
|
||||
normal_alt = { fg = "#89b4fa", bg = "#313244" }
|
||||
|
||||
# Select mode
|
||||
select_main = { fg = "#1e1e2e", bg = "#a6e3a1", bold = true }
|
||||
select_alt = { fg = "#a6e3a1", bg = "#313244" }
|
||||
|
||||
# Unset mode
|
||||
unset_main = { fg = "#1e1e2e", bg = "#f2cdcd", bold = true }
|
||||
unset_alt = { fg = "#f2cdcd", bg = "#313244" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Status bar {{{
|
||||
|
||||
[status]
|
||||
separator_open = ""
|
||||
separator_close = ""
|
||||
|
||||
# Progress
|
||||
progress_label = { fg = "#ffffff", bold = true }
|
||||
progress_normal = { fg = "#89b4fa", bg = "#45475a" }
|
||||
progress_error = { fg = "#f38ba8", bg = "#45475a" }
|
||||
|
||||
# Permissions
|
||||
perm_sep = { fg = "#7f849c" }
|
||||
perm_type = { fg = "#89b4fa" }
|
||||
perm_read = { fg = "#f9e2af" }
|
||||
perm_write = { fg = "#f38ba8" }
|
||||
perm_exec = { fg = "#a6e3a1" }
|
||||
|
||||
# TODO: -- remove these once Yazi 0.4 gets released
|
||||
separator_style = { fg = "#313244", bg = "#313244" }
|
||||
mode_normal = { fg = "#1e1e2e", bg = "#89b4fa", bold = true }
|
||||
mode_select = { fg = "#1e1e2e", bg = "#a6e3a1", bold = true }
|
||||
mode_unset = { fg = "#1e1e2e", bg = "#f2cdcd", bold = true }
|
||||
permissions_t = { fg = "#89b4fa" }
|
||||
permissions_r = { fg = "#f9e2af" }
|
||||
permissions_w = { fg = "#f38ba8" }
|
||||
permissions_x = { fg = "#a6e3a1" }
|
||||
permissions_s = { fg = "#7f849c" }
|
||||
# TODO: remove these once Yazi 0.4 gets released --
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Pick {{{
|
||||
|
||||
[pick]
|
||||
border = { fg = "#89b4fa" }
|
||||
active = { fg = "#f5c2e7", bold = true }
|
||||
inactive = {}
|
||||
|
||||
# TODO: -- remove these once Yazi 0.4 gets released
|
||||
[select]
|
||||
border = { fg = "#89b4fa" }
|
||||
active = { fg = "#f5c2e7", bold = true }
|
||||
inactive = {}
|
||||
# TODO: remove these once Yazi 0.4 gets released --
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Input {{{
|
||||
|
||||
[input]
|
||||
border = { fg = "#89b4fa" }
|
||||
title = {}
|
||||
value = {}
|
||||
selected = { reversed = true }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Completion {{{
|
||||
|
||||
[completion]
|
||||
border = { fg = "#89b4fa" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Tasks {{{
|
||||
|
||||
[tasks]
|
||||
border = { fg = "#89b4fa" }
|
||||
title = {}
|
||||
hovered = { fg = "#f5c2e7", underline = true }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Which {{{
|
||||
|
||||
[which]
|
||||
mask = { bg = "#313244" }
|
||||
cand = { fg = "#94e2d5" }
|
||||
rest = { fg = "#9399b2" }
|
||||
desc = { fg = "#f5c2e7" }
|
||||
separator = " "
|
||||
separator_style = { fg = "#585b70" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Help {{{
|
||||
|
||||
[help]
|
||||
on = { fg = "#94e2d5" }
|
||||
run = { fg = "#f5c2e7" }
|
||||
hovered = { reversed = true, bold = true }
|
||||
footer = { fg = "#313244", bg = "#cdd6f4" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : Notify {{{
|
||||
|
||||
[notify]
|
||||
title_info = { fg = "#a6e3a1" }
|
||||
title_warn = { fg = "#f9e2af" }
|
||||
title_error = { fg = "#f38ba8" }
|
||||
|
||||
# : }}}
|
||||
|
||||
|
||||
# : File-specific styles {{{
|
||||
|
||||
[filetype]
|
||||
|
||||
rules = [
|
||||
# Images
|
||||
{ mime = "image/*", fg = "#94e2d5" },
|
||||
|
||||
# Media
|
||||
{ mime = "{audio,video}/*", fg = "#f9e2af" },
|
||||
|
||||
# Archives
|
||||
{ mime = "application/*zip", fg = "#f5c2e7" },
|
||||
{ mime = "application/x-{tar,bzip*,7z-compressed,xz,rar}", fg = "#f5c2e7" },
|
||||
|
||||
# Documents
|
||||
{ mime = "application/{pdf,doc,rtf,vnd.*}", fg = "#a6e3a1" },
|
||||
|
||||
# Fallback
|
||||
{ name = "*", fg = "#cdd6f4" },
|
||||
{ name = "*/", fg = "#89b4fa" }
|
||||
]
|
||||
|
||||
# : }}}
|
||||
3
env/.config/yazi/yazi.toml
vendored
Normal file
3
env/.config/yazi/yazi.toml
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[mgr]
|
||||
show_hidden = true
|
||||
show_symlink = true
|
||||
3
env/.config/yazi/yazi.toml-1748966636821415
vendored
Normal file
3
env/.config/yazi/yazi.toml-1748966636821415
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[manager]
|
||||
show_hidden = true
|
||||
show_symlink = true
|
||||
118
zsh/config/.zshrc → env/.config/zsh/.zshrc
vendored
118
zsh/config/.zshrc → env/.config/zsh/.zshrc
vendored
@@ -16,20 +16,9 @@ autoload -U up-line-or-beginning-search
|
||||
autoload -U down-line-or-beginning-search
|
||||
zle -N up-line-or-beginning-search
|
||||
zle -N down-line-or-beginning-search
|
||||
|
||||
# Colors
|
||||
autoload -Uz colors && colors
|
||||
|
||||
#------------------------------ pager ------------------------------
|
||||
export LESS_TERMCAP_mb="[35m" # magenta
|
||||
export LESS_TERMCAP_md="[33m" # yellow
|
||||
export LESS_TERMCAP_me=""
|
||||
export LESS_TERMCAP_se=""
|
||||
export LESS_TERMCAP_so="[34m" # blue
|
||||
export LESS_TERMCAP_ue=""
|
||||
export LESS_TERMCAP_so="[4m" # underline
|
||||
export LESSHISTFILE="-"
|
||||
|
||||
#------------------------------ path ------------------------------
|
||||
|
||||
# Helper function to prepend to the $PATH
|
||||
@@ -59,21 +48,25 @@ fpath_prepend() {
|
||||
# last arg will be first in $PATH
|
||||
path_prepend \
|
||||
"/usr/local/bin" \
|
||||
"/opt/homebrew/bin" \
|
||||
"/opt/homebrew/sbin" \
|
||||
"$HOME/.local/share/gem/bin" \
|
||||
"$GOROOT/bin" \
|
||||
"$GOPATH/bin" \
|
||||
"$XDG_DATA_HOME/bin" \
|
||||
"$XDG_DATA_HOME/npm/bin" \
|
||||
"$HOME/.local/bin" \
|
||||
"$SCRIPTS"
|
||||
"$SCRIPTS" \
|
||||
"$SCRIPTS/hypr" \
|
||||
"$SCRIPTS/mail" \
|
||||
"$HOME/.local/pnpm" \
|
||||
"$CARGO_HOME/bin" \
|
||||
"$HOME/.local/bin" \
|
||||
"$XDG_DATA_HOME/bob/nvim-bin"
|
||||
|
||||
# last arg will be first in $FPATH
|
||||
fpath_prepend \
|
||||
"$(brew --prefix)/share/zsh/site-functions" \
|
||||
"$(brew --prefix)/share/zsh-completions" \
|
||||
"$ZDOTDIR/completions" \
|
||||
"$HOME/.local/completions" \
|
||||
"$HOME/.local/share/zsh/completions" \
|
||||
"$HOME/.zsh/completions" \
|
||||
"$ZDOTDIR/functions"
|
||||
|
||||
autoload -Uz $fpath[1]/*(.:t)
|
||||
@@ -89,16 +82,15 @@ setopt hist_reduce_blanks # do not store blank lines.
|
||||
setopt histignorespace # do not store commands that start with a space in history
|
||||
|
||||
export HISTSIZE=5000
|
||||
export HISTFILESIZE=10000
|
||||
export HISTFILE=$ZDOTDIR/history
|
||||
|
||||
#set -o vi
|
||||
export HISTFILESIZE=5000
|
||||
export SAVEHIST=5000
|
||||
export HISTFILE="$XDG_CONFIG_HOME/zsh/history"
|
||||
|
||||
#------------------------------ cdpath ------------------------------
|
||||
setopt autocd
|
||||
|
||||
# NOTE: This may be overriden in local env overrides (typically located in $XDG_DATA_HOME/zsh/env.zsh
|
||||
export CDPATH=".:$GHREPOS:$GHREPOS/ansible:$REPOS/github.com:$DOTFILES:$LOCAL_REPOS:$HOME"
|
||||
export CDPATH=".:$REPOS:$REPOS/ansible:$DOTFILES:$LOCAL_REPOS:$BUCKET:$HOME"
|
||||
|
||||
#------------------------------ options ------------------------------
|
||||
# (see `man zshoptions`)
|
||||
@@ -112,6 +104,7 @@ setopt aliases
|
||||
setopt auto_pushd # Push the current directory on the stack.
|
||||
setopt pushd_ignore_dups # Ignore duplicates in stack
|
||||
setopt pushd_silent # Do not print stack after pushd or popd.
|
||||
setopt CORRECT # Offers corrections on misspelled commands.
|
||||
|
||||
bindkey -v # Enable vi mode
|
||||
export KEYTIMEOUT=1 # Switch between vim mode quicker.
|
||||
@@ -124,12 +117,9 @@ zsh_add_plugin "zsh-users/zsh-autosuggestions"
|
||||
zsh_add_plugin "zsh-users/zsh-syntax-highlighting"
|
||||
zsh_add_plugin "Aloxaf/fzf-tab"
|
||||
|
||||
# Use fzf in history / search contexts.
|
||||
eval "$(fzf --zsh)"
|
||||
|
||||
#------------------------------ completions ------------------------------
|
||||
# case insensitive path-completion
|
||||
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*'
|
||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
|
||||
|
||||
# partial completion suggestions
|
||||
zstyle ':completion:*' list-suffixes
|
||||
@@ -150,10 +140,8 @@ _source_if "$ZDOTDIR/plugins/fzf-tab/fzf-tab.plugin.zsh"
|
||||
|
||||
#------------------------------ prompt ------------------------------
|
||||
|
||||
# Prompt / managed by brew. (`brew install starship`)
|
||||
autoload -Uz promptinit; promptinit
|
||||
eval "$(starship init zsh)"
|
||||
#prompt pure
|
||||
|
||||
#------------------------------ aliases ------------------------------
|
||||
|
||||
@@ -166,40 +154,50 @@ alias d='docker' # run docker commands quickly
|
||||
alias dc='docker compose' # run docker-compose commands quickly
|
||||
alias dv='dirs -v' # list directory info
|
||||
alias essh='edit-ssh-config' # edit ssh config quickly
|
||||
alias email='tmux-sessionator --email' # Open email tmux session.
|
||||
alias fl='find-latest' # Find the last modified file in a directory.
|
||||
alias g='git' # access git commands quickly
|
||||
alias ga='git add' # add files to git quickly
|
||||
alias gcb='git checkout -b' # checkout a new git branch, creating if needed.
|
||||
alias gco='git checkout' # checkout an already existing git branch
|
||||
alias gcm='git commit -a -m' # commit files to git quickly
|
||||
alias gen='just --justfile "$ANSIBLE_GEN_DIR/justfile"' # generate template files / directories
|
||||
alias gp='git push' # push repo to git
|
||||
alias gs='git status' # git status quickly
|
||||
alias hn='hugo new' # generate a hugo site
|
||||
alias hnc='hugo new content' # generate new hugo site content quickly
|
||||
alias j='just' # run justfile's quickly.
|
||||
alias l='ls -lahH --color=auto' # better ls command.
|
||||
alias kb='kanatactl' # Keyboard / kanata commands.
|
||||
alias l='eza --long --git --group --links --icons --all' # better ls command.
|
||||
alias lfs='ls -lahH --color=auto "$ZDOTDIR/functions"' # List functions.
|
||||
alias ls='ls --color'
|
||||
alias pass='gopass'
|
||||
alias p='gopass' # run the pass command quickly.
|
||||
alias pf='pass fzf' # fuzzy find a password quickly and copy selection to clipboard.
|
||||
alias pg='gopass show' # get an attribute of a password file quickly.
|
||||
alias pgc='gopass show --clip' # get an attribute of a password file and copy to the clipboard.
|
||||
alias ls='eza --long --git --group --links --icons --all'
|
||||
alias lt='eza --long --git --group --links --icons --tree'
|
||||
alias pass='PASSWORD_STORE_DIR=/home/michael/.local/share/gopass/stores/root gopass'
|
||||
alias pc='gopass show --clip' # get an attribute of a password file and copy to the clipboard.
|
||||
alias reload='exec zsh -l' # reload the shell, useful when making changes.
|
||||
alias s='swift' # shorthand to access swift commands
|
||||
alias st='swift test' # swift test
|
||||
alias ste='swift test --enable-code-coverage' # swift test with code coverage enabled.
|
||||
alias sb='swift build' # swift build
|
||||
alias syu='yay -Syu' # Update packages.
|
||||
alias t='tmux' # access tmux quickly
|
||||
alias tka='tmux kill-server' # kill tmux server and all sessions.
|
||||
alias ts='$SCRIPTS/tmux-sessionator' # create new tmux session, fuzzy finding common locations.
|
||||
alias ts='$SCRIPTS/tmux-sessionator' # create new tmux session, fuzzy finding common locations.
|
||||
alias tss='$SCRIPTS/tmux-sessionator --choose' # attach to an existing tmux session.
|
||||
alias tls='tmux list-sessions' # list tmux sessions
|
||||
alias tks='tmux kill-session -t' # kill tmux session
|
||||
alias temp='cd $(mktemp -d)' # create a temporary directory and move into it.
|
||||
alias vi='nvim' # set vi to open neovim
|
||||
alias newf='"$SCRIPTS"/newx --function' # generate a new shell function
|
||||
alias nlnv='nvim "$LOCAL_ENV"' # open local environment overrides file in neovime
|
||||
alias nvim='unset VIMINIT && unset MYVIMRC && nvim' # alias nvim to unset vimrc, useful when using both vim & neovim
|
||||
alias nvim-mhoush='NVIM_APPNAME=m-housh && nvim' # set neovim to use my config.
|
||||
alias nvim-kickstart='NVIM_APPNAME=kickstart nvim' # set neovim to use kickstart config.
|
||||
alias nvim-lazy='NVIM_APPNAME=lazy nvim' # set neovim to use lazy config.
|
||||
alias n='nvim'
|
||||
alias wget="wget --hsts-file=$XDG_DATA_HOME/wget-hsts" # set wget history location.
|
||||
# GPG Yubikey restart relearn when switching keys and stubbed.
|
||||
alias yubikeyrestart='gpg-connect-agent killagent /bye && gpg-connect-agent "scd serialno" "learn --force" /bye && gpg --card-status'
|
||||
alias z='zoxide'
|
||||
|
||||
# NOTE: This needs to stay near the bottom, or it doesn't work properly.
|
||||
# Use fzf in history / search contexts.
|
||||
source <(fzf --zsh)
|
||||
#source <(kubectl completion zsh)
|
||||
|
||||
#------------------------------ local configs ------------------------------
|
||||
|
||||
@@ -209,3 +207,39 @@ alias wget="wget --hsts-file=$XDG_DATA_HOME/wget-hsts" # set wget history locat
|
||||
# I tried sourcing them in the the `.zshenv` files, but did not work.
|
||||
_source_if "$ZDOTDIR/.zshrc-local"
|
||||
_source_if "$LOCAL_ENV"
|
||||
_source_if "$SCRIPTS/catppuccin-colors"
|
||||
_source_if "$XDG_DATA_HOME/swiftly/env.sh"
|
||||
|
||||
# pnpm
|
||||
export PNPM_HOME="$XDG_DATA_HOME/pnpm"
|
||||
case ":$PATH:" in
|
||||
*":$PNPM_HOME:"*) ;;
|
||||
*) export PATH="$PNPM_HOME:$PATH" ;;
|
||||
esac
|
||||
# pnpm end
|
||||
|
||||
# The following lines have been added by Docker Desktop to enable Docker CLI completions.
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
|
||||
########################################
|
||||
# Set things up for using gpg-agent
|
||||
|
||||
export GPG_TTY=$(tty)
|
||||
|
||||
function use-gpg-agent-for-ssh {
|
||||
SOCK="$( gpgconf --list-dirs agent-ssh-socket )"
|
||||
if [[ -n "${SOCK:-}" ]]
|
||||
then
|
||||
unset SSH_AGENT_PID
|
||||
export SSH_AUTH_SOCK="$SOCK"
|
||||
fi
|
||||
}
|
||||
use-gpg-agent-for-ssh
|
||||
|
||||
command -v direnv >/dev/null 2>&1 && eval "$(direnv hook zsh)"
|
||||
command -v zoxide >/dev/null 2>&1 && eval "$(zoxide init --cmd cd zsh)"
|
||||
|
||||
if [[ -n "$DEVPOD_WORKSPACE_ID" ]]; then
|
||||
export TERM=xterm-256color
|
||||
fi
|
||||
5
env/.config/zsh/functions/brew-update
vendored
Executable file
5
env/.config/zsh/functions/brew-update
vendored
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
function brew-update() {
|
||||
brew update && brew upgrade --greedy && brew cleanup
|
||||
}
|
||||
12
env/.config/zsh/functions/dp
vendored
Executable file
12
env/.config/zsh/functions/dp
vendored
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/zsh
|
||||
|
||||
function dp() {
|
||||
[ -z "$1" ] && echo "Must supply temperature" && return 1
|
||||
[ -z "$2" ] && echo "Must supply relative humidity" && return 1
|
||||
|
||||
local temperature=$1
|
||||
local humidity=$2
|
||||
|
||||
psychrometrics dew-point --dry-bulb "$temperature" --relative-humidity "$humidity"
|
||||
|
||||
}
|
||||
7
env/.config/zsh/functions/find-latest
vendored
Executable file
7
env/.config/zsh/functions/find-latest
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/zsh
|
||||
|
||||
# Find the last modified file in a directory.
|
||||
function find-latest() {
|
||||
local dir=$1
|
||||
echo "$(find $dir -maxdepth 1 -mindepth 1 -type f | sort -nr | head -1)"
|
||||
}
|
||||
5
env/.config/zsh/functions/gpgreset
vendored
Executable file
5
env/.config/zsh/functions/gpgreset
vendored
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/zsh
|
||||
|
||||
function gpgreset() {
|
||||
gpgconf --kill all && gpgconf --launch all
|
||||
}
|
||||
13
env/.config/zsh/functions/new-proposal
vendored
Executable file
13
env/.config/zsh/functions/new-proposal
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/zsh
|
||||
|
||||
prefix=$(date '+%y.%m.%d')
|
||||
name=$(gum input --placeholder="Enter customer name...")
|
||||
|
||||
if [ -z "$name" ]; then
|
||||
echo "Name should not be blank." && exit 1
|
||||
fi
|
||||
|
||||
cleanedName="${name%% *}${name##* }"
|
||||
directory="$PROPOSALS/$prefix.$cleanedName"
|
||||
mkdir "$directory"
|
||||
echo "$directory"
|
||||
17
env/.config/zsh/functions/tns
vendored
Executable file
17
env/.config/zsh/functions/tns
vendored
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
# Create a tmux session.
|
||||
#
|
||||
# This accepts a path argument that is used to create the tmux session
|
||||
# in, using it's basename for the session name.
|
||||
#
|
||||
# If an argument is not supplied, then we will create a tmux session in
|
||||
# the current working directory.
|
||||
|
||||
function tns() {
|
||||
local directory=$1
|
||||
if [ -n "$directory" ]; then
|
||||
directory=${PWD}
|
||||
fi
|
||||
tmux-sessionator --directory "$directory"
|
||||
}
|
||||
6
env/.gnupg/gpg-agent.conf
vendored
Normal file
6
env/.gnupg/gpg-agent.conf
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
# https://github.com/drduh/config/blob/main/gpg-agent.conf
|
||||
# https://www.gnupg.org/documentation/manuals/gnupg/Agent-Options.html
|
||||
enable-ssh-support
|
||||
ttyname $GPG_TTY
|
||||
default-cache-ttl 120
|
||||
max-cache-ttl 120
|
||||
70
env/.gnupg/gpg.conf
vendored
Normal file
70
env/.gnupg/gpg.conf
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
# https://github.com/drduh/config/blob/main/gpg.conf
|
||||
# https://www.gnupg.org/documentation/manuals/gnupg/GPG-Options.html
|
||||
# 'gpg --version' to get capabilities
|
||||
# Use AES256, 192, or 128 as cipher
|
||||
personal-cipher-preferences AES256 AES192 AES
|
||||
# Use SHA512, 384, or 256 as digest
|
||||
personal-digest-preferences SHA512 SHA384 SHA256
|
||||
# Use ZLIB, BZIP2, ZIP, or no compression
|
||||
personal-compress-preferences ZLIB BZIP2 ZIP Uncompressed
|
||||
# Default preferences for new keys
|
||||
default-preference-list SHA512 SHA384 SHA256 AES256 AES192 AES ZLIB BZIP2 ZIP Uncompressed
|
||||
# SHA512 as digest to sign keys
|
||||
cert-digest-algo SHA512
|
||||
# SHA512 as digest for symmetric ops
|
||||
s2k-digest-algo SHA512
|
||||
# AES256 as cipher for symmetric ops
|
||||
s2k-cipher-algo AES256
|
||||
# UTF-8 support for compatibility
|
||||
charset utf-8
|
||||
# No comments in messages
|
||||
no-comments
|
||||
# No version in output
|
||||
no-emit-version
|
||||
# Disable banner
|
||||
no-greeting
|
||||
# Long key id format
|
||||
keyid-format 0xlong
|
||||
# Display UID validity
|
||||
list-options show-uid-validity
|
||||
verify-options show-uid-validity
|
||||
# Display all keys and their fingerprints
|
||||
with-fingerprint
|
||||
# Display key origins and updates
|
||||
#with-key-origin
|
||||
# Cross-certify subkeys are present and valid
|
||||
require-cross-certification
|
||||
# Enforce memory locking to avoid accidentally swapping GPG memory to disk
|
||||
require-secmem
|
||||
# Disable caching of passphrase for symmetrical ops
|
||||
no-symkey-cache
|
||||
# Output ASCII instead of binary
|
||||
armor
|
||||
# Enable smartcard
|
||||
use-agent
|
||||
# Disable recipient key ID in messages (breaks Mailvelope)
|
||||
throw-keyids
|
||||
# Default key ID to use (helpful with throw-keyids)
|
||||
#default-key 0xFF00000000000001
|
||||
#trusted-key 0xFF00000000000001
|
||||
# Group recipient keys (preferred ID last)
|
||||
#group keygroup = 0xFF00000000000003 0xFF00000000000002 0xFF00000000000001
|
||||
# Keyserver URL
|
||||
#keyserver hkps://keys.openpgp.org
|
||||
#keyserver hkps://keys.mailvelope.com
|
||||
#keyserver hkps://keyserver.ubuntu.com:443
|
||||
#keyserver hkps://pgpkeys.eu
|
||||
#keyserver hkps://pgp.circl.lu
|
||||
#keyserver hkp://zkaan2xfbuxia2wpf7ofnkbz6r5zdbbvxbunvp5g2iebopbfc4iqmbad.onion
|
||||
# Keyserver proxy
|
||||
#keyserver-options http-proxy=http://127.0.0.1:8118
|
||||
#keyserver-options http-proxy=socks5-hostname://127.0.0.1:9050
|
||||
# Enable key retrieval using WKD and DANE
|
||||
#auto-key-locate wkd,dane,local
|
||||
#auto-key-retrieve
|
||||
# Trust delegation mechanism
|
||||
#trust-model tofu+pgp
|
||||
# Show expired subkeys
|
||||
#list-options show-unusable-subkeys
|
||||
# Verbose output
|
||||
#verbose
|
||||
1
env/.gnupg/scdaemon.conf
vendored
Normal file
1
env/.gnupg/scdaemon.conf
vendored
Normal file
@@ -0,0 +1 @@
|
||||
disable-ccid
|
||||
47
env/.local/scripts/aap
vendored
Executable file
47
env/.local/scripts/aap
vendored
Executable file
@@ -0,0 +1,47 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
# A wrapper script to run swift-hpa in a docker container and
|
||||
# mount the correct volumes, etc.
|
||||
#
|
||||
# Make sure to run 'hpa-init' first on this machine to setup
|
||||
# dependencies, if you have not done so already.
|
||||
#
|
||||
# To attach to a shell inside the container run:
|
||||
# `hpa bash`
|
||||
#
|
||||
# To run ansible vault commands inside the container run:
|
||||
# `hpa ansible-vault ...`
|
||||
#
|
||||
|
||||
SCRIPTS=${SCRIPTS:-$HOME/.local/scripts}
|
||||
. "$SCRIPTS/utils/hpa/hpa.env"
|
||||
|
||||
############################## MAIN ##############################
|
||||
|
||||
# Don't pull images if they're prefixed with 'localhost'.
|
||||
if echo "$HPA_DOCKER_IMAGE" | grep -vq "localhost"; then
|
||||
|
||||
# Check if we should pull the image prior to running.
|
||||
last_pull="0"
|
||||
if [[ -f "$HPA_AIRFLOW_CONFIG_DIR/.lastpull" ]]; then
|
||||
last_pull=$(cat "$HPA_AIRFLOW_CONFIG_DIR/.lastpull")
|
||||
fi
|
||||
curr=$(date +%s)
|
||||
diff=$((curr - last_pull))
|
||||
|
||||
if [[ $HPA_AUTO_PULL == "1" ]] && [[ $diff -gt "$HPA_AUTO_PULL_INTERVAL" ]]; then
|
||||
. "$SCRIPTS/hpa-pull" "$HPA_AUTO_PULL_OPTS"
|
||||
fi
|
||||
fi
|
||||
|
||||
podman run --rm --interactive --tty \
|
||||
--volume "$HPA_AIRFLOW_CONFIG_DIR":/root/.config/hpa:ro \
|
||||
--volume "$HPA_DATA_DIR":/root/.local/share/hpa:ro \
|
||||
--volume "$HPA_CONSULTS_DIR":/consults \
|
||||
--volume "$PWD":/root/project \
|
||||
--secret "$HPA_VAULT_SECRET_KEY" \
|
||||
"$HPA_DOCKER_IMAGE:$HPA_DOCKER_TAG" "$@"
|
||||
129
env/.local/scripts/ask-gpt
vendored
Executable file
129
env/.local/scripts/ask-gpt
vendored
Executable file
@@ -0,0 +1,129 @@
|
||||
#!/bin/zsh
|
||||
#
|
||||
# Ask chat-gpt a question and view the output.
|
||||
|
||||
local api_key="${OPENAI_API_KEY}"
|
||||
local debug="${DEBUG}"
|
||||
local outputFile="/tmp/output.json"
|
||||
|
||||
function usage() {
|
||||
cat << EOF
|
||||
|
||||
Ask chat-gpt a question and view the output.
|
||||
|
||||
Example usage:
|
||||
|
||||
ask-gpt 'Who are you?'
|
||||
|
||||
# Send output to a file:
|
||||
ask-gpt --print 'Who are you' > /tmp/gpt.md
|
||||
|
||||
Usage: ask-gpt [-k <key>] [-m <model>] [-p] [-j] [-h] question
|
||||
|
||||
Options:
|
||||
-k | --key : Use api key (default: environment variable 'OPENAI_API_KEY')
|
||||
-m | --model: Specify the chat-gpt model (default is 'gpt-4o-mini')
|
||||
-j | --json: Print the full json output to stdout.
|
||||
-p | --print: Print the output to stdout in markdown format.
|
||||
-h | --help: Show usage.
|
||||
|
||||
Include debug output:
|
||||
|
||||
DEBUG=1 ask-gpt 'Who are you?'
|
||||
|
||||
EOF
|
||||
}
|
||||
|
||||
######################### Helpers #########################
|
||||
|
||||
function debug_print {
|
||||
if [ ! -z "$debug" ]; then
|
||||
echo "$1"
|
||||
fi
|
||||
}
|
||||
|
||||
function makeGptInput {
|
||||
echo $(jq --null-input \
|
||||
--arg model "$1" \
|
||||
--arg question "$2" \
|
||||
'{
|
||||
"model": $model,
|
||||
"messages": [
|
||||
{ "role": "system", "content": "You are such a helpful assistant!" },
|
||||
{ "role": "developer", "content": "You message data is escaped properly to parse as JSON, including escaping newline characters." },
|
||||
{ "role": "user", "content": $question }
|
||||
]
|
||||
}')
|
||||
}
|
||||
|
||||
function getGptOutput {
|
||||
echo "$1" | jq -r '.choices[].message.content'
|
||||
}
|
||||
|
||||
function askGpt {
|
||||
local key=$1
|
||||
local input=$2
|
||||
|
||||
echo $(curl "https://api.openai.com/v1/chat/completions" \
|
||||
-sS \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $key" \
|
||||
-d "$input")
|
||||
}
|
||||
|
||||
######################### MAIN #########################
|
||||
zparseopts -D -E -F -- \
|
||||
{h,-help}=help \
|
||||
{k,-key}:=key \
|
||||
{m,-model}=model \
|
||||
{j,-json}=json \
|
||||
{p,-print}=printOutput
|
||||
|
||||
# Check if help was specified and show usage.
|
||||
[ ! -z "$help" ] && usage && exit 0
|
||||
|
||||
local question="$1"
|
||||
# Ensure there is a question / first argument.
|
||||
[ -z "$question" ] && print "No question found." && usage && exit 1
|
||||
|
||||
# parse the api key.
|
||||
if [ ! -z "$key" ]; then
|
||||
api_key="${key[-1]}"
|
||||
debug_print "Using custom passed in key."
|
||||
fi
|
||||
|
||||
# Fail if we did not find an api key.
|
||||
[ -z "$api_key" ] && echo "No api key found." && usage && exit 1
|
||||
|
||||
# Set default model if not specified.
|
||||
if [ -z "$model" ]; then
|
||||
model="gpt-4o-mini"
|
||||
fi
|
||||
debug_print "Model: $model"
|
||||
|
||||
# Generate the input for chat-gpt.
|
||||
local input="$(makeGptInput $model $question)"
|
||||
debug_print "Input: $input"
|
||||
|
||||
# Get the chat-gpt output.
|
||||
local output="$(askGpt $api_key $input)"
|
||||
|
||||
# TODO: Remove.
|
||||
echo "$output" > "$outputFile"
|
||||
|
||||
debug_print "Full ouptput: $(echo $output | jq '.')"
|
||||
|
||||
# If json option is specified, then send full output to stdout and exit.
|
||||
[ ! -z "$json" ] && (echo "$output" | jq '.') && exit 0
|
||||
|
||||
# parse the output message.
|
||||
local parsedOutput="$(getGptOutput $output)"
|
||||
|
||||
echo "$parsedOutput"
|
||||
|
||||
# Show the output based on options passed in.
|
||||
# if [ -z "$printOutput" ]; then
|
||||
# echo "# $question\n$parsedOutput" | gum format | gum pager
|
||||
# else
|
||||
# echo "# $question\n$parsedOutput" | gum format
|
||||
# fi
|
||||
68
env/.local/scripts/backup-logger
vendored
Executable file
68
env/.local/scripts/backup-logger
vendored
Executable file
@@ -0,0 +1,68 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
SCRIPTS=${SCRIPTS:-$HOME/.local/scripts}
|
||||
THIS_FILE=${BASH_SOURCE[0]}
|
||||
LOG_LABEL=$(basename "$THIS_FILE")
|
||||
THIS=${THIS:-$LOG_LABEL}
|
||||
LOG_FILE=${LOG_FILE:-"$LOG_LABEL.log"}
|
||||
LOG_DIR="/tmp/logs"
|
||||
|
||||
usage() {
|
||||
cat <<EOF
|
||||
|
||||
Utility for logging backup runs.
|
||||
|
||||
USAGE:
|
||||
$ $THIS <flags> <msg...>
|
||||
|
||||
FLAGS:
|
||||
-h | --help: Show this help page.
|
||||
-s | --show: Show the log messages.
|
||||
--rm: Remove the log file
|
||||
|
||||
EOF
|
||||
}
|
||||
|
||||
# Logging utility function, use in place of echo.
|
||||
log() {
|
||||
logging log --source "$THIS_FILE" "$@"
|
||||
}
|
||||
|
||||
show() {
|
||||
[[ ! -f "$LOG_DIR/$LOG_FILE" ]] &&
|
||||
log --warning "Empty log file." &&
|
||||
exit 0
|
||||
|
||||
bat "$LOG_DIR/$LOG_FILE"
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# MAIN
|
||||
################################################################################
|
||||
|
||||
declare -a msg
|
||||
|
||||
# Setup logging file and label.
|
||||
source "$SCRIPTS/hypr/logging"
|
||||
setup-logging "$LOG_FILE" "$LOG_LABEL"
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
if [[ $1 == "-h" ]] || [[ $1 == "--help" ]]; then
|
||||
usage && exit 0
|
||||
elif [[ $1 == "-s" ]] || [[ $1 == "--show" ]]; then
|
||||
show && exit 0
|
||||
elif [[ $1 == "--rm" ]]; then
|
||||
rm "$LOG_DIR/$LOG_FILE" && exit 0
|
||||
else
|
||||
msg+=("$1")
|
||||
fi
|
||||
shift
|
||||
done
|
||||
|
||||
[[ -z "${msg[*]}" ]] && log --error "No message passed to log." && exit 1
|
||||
|
||||
log "${msg[@]}"
|
||||
34
env/.local/scripts/catppuccin-colors
vendored
Executable file
34
env/.local/scripts/catppuccin-colors
vendored
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Catppuccin-mocha colors https://catppuccin.com/palette/
|
||||
#
|
||||
# This allows this file to be sourced and colors available in other scripts.
|
||||
|
||||
export ROSEWATER="#f5e0dc"
|
||||
export FLAMINGO="#f2cdcd"
|
||||
export PINK="#f5c2e7"
|
||||
export MAUVE="#cba6f7"
|
||||
export RED="#f38ba8"
|
||||
export MAROON="#eba0ac"
|
||||
export PEACH="#fab387"
|
||||
export YELLOW="#f9e2af"
|
||||
export GREEN="#a6e3a1"
|
||||
export TEAL="#94e2d5"
|
||||
export SKY="#89dceb"
|
||||
export SAPPHIRE="#74c7ec"
|
||||
export BLUE="#89b4fa"
|
||||
export LAVENDER="#b4befe"
|
||||
export TEXT="#cdd6f4"
|
||||
export SUBTEXT1="#bac2de"
|
||||
export SUBTEXT0="#a6adc8"
|
||||
export OVERLAY2="#9399b2"
|
||||
export OVERLAY1="#7f849c"
|
||||
export OVERLAY0="#6c7086"
|
||||
export SURFACE2="#585b70"
|
||||
export SURFACE1="#45475a"
|
||||
export SURFACE0="#313244"
|
||||
export BASE="#1e1e2e"
|
||||
export MANTLE="#181825"
|
||||
export CRUST="#11111b"
|
||||
|
||||
export FZF_DEFAULT_OPTS="--color=header:$MAROON:bold,footer:$MAROON:bold,pointer:$MAUVE,prompt:$MAUVE,fg+:$MAUVE,border:$LAVENDER,info:$LAVENDER,fg:$TEXT,hl:$TEXT:bold,hl+:$TEXT:bold,bg:$BASE,bg+:$SURFACE0,preview-label:$TEAL:bold"
|
||||
49
env/.local/scripts/hpa
vendored
Executable file
49
env/.local/scripts/hpa
vendored
Executable file
@@ -0,0 +1,49 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
# A wrapper script to run swift-hpa in a docker container and
|
||||
# mount the correct volumes, etc.
|
||||
#
|
||||
# Make sure to run 'hpa-init' first on this machine to setup
|
||||
# dependencies, if you have not done so already.
|
||||
#
|
||||
# To attach to a shell inside the container run:
|
||||
# `hpa bash`
|
||||
#
|
||||
# To run ansible vault commands inside the container run:
|
||||
# `hpa ansible-vault ...`
|
||||
#
|
||||
|
||||
SCRIPTS=${SCRIPTS:-$HOME/.local/scripts}
|
||||
. "$SCRIPTS/utils/hpa/hpa.env"
|
||||
|
||||
############################## MAIN ##############################
|
||||
|
||||
# Don't pull images if they're prefixed with 'localhost'.
|
||||
if echo "$HPA_DOCKER_IMAGE" | grep -vq "localhost"; then
|
||||
|
||||
# Check if we should pull the image prior to running.
|
||||
last_pull="0"
|
||||
if [[ -f "$HPA_CONFIG_DIR/.lastpull" ]]; then
|
||||
last_pull=$(cat "$HPA_CONFIG_DIR/.lastpull")
|
||||
fi
|
||||
curr=$(date +%s)
|
||||
diff=$((curr - last_pull))
|
||||
|
||||
if [[ $HPA_AUTO_PULL == "1" ]] && [[ $diff -gt "$HPA_AUTO_PULL_INTERVAL" ]]; then
|
||||
. "$SCRIPTS/hpa-pull" "$HPA_AUTO_PULL_OPTS"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "ARGS: $@"
|
||||
|
||||
podman run --rm --interactive --tty \
|
||||
--volume "$HPA_CONFIG_DIR":/root/.config/hpa:ro \
|
||||
--volume "$HPA_DATA_DIR":/root/.local/share/hpa:ro \
|
||||
--volume "$HPA_CONSULTS_DIR":/consults \
|
||||
--volume "$PWD":/root/project \
|
||||
--secret "$HPA_VAULT_SECRET_KEY" \
|
||||
"$HPA_DOCKER_IMAGE:$HPA_DOCKER_TAG" "$@"
|
||||
11
env/.local/scripts/hpa-create
vendored
Executable file
11
env/.local/scripts/hpa-create
vendored
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
title="Creating project..."
|
||||
script="${SCRIPTS:-$HOME/.local/scripts}/utils/hpa/hpa-create"
|
||||
first_arg=${1:-""}
|
||||
if [[ $first_arg == "-h" ]] || [[ $first_arg == "--help" ]]; then
|
||||
. "$script" $*
|
||||
else
|
||||
# bash -c "$script $*" | tr -d '\r' | head -1
|
||||
gum spin --show-output --title "$title" -- bash -c "$script $*" | tr -d '\r' | head -1
|
||||
fi
|
||||
98
env/.local/scripts/hpa-init
vendored
Executable file
98
env/.local/scripts/hpa-init
vendored
Executable file
@@ -0,0 +1,98 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
SCRIPTS=${SCRIPTS:-$HOME/.local/scripts}
|
||||
THIS_FILE=${BASH_SOURCE[0]}
|
||||
LOG_LABEL=$(basename "$THIS_FILE")
|
||||
THIS=${THIS:-$LOG_LABEL}
|
||||
LOG_FILE=${LOG_FILE:-"$LOG_LABEL.log"}
|
||||
|
||||
# Load environment / shared variables.
|
||||
. "$SCRIPTS/utils/hpa/hpa.env"
|
||||
|
||||
usage() {
|
||||
cat <<EOF
|
||||
|
||||
Setup dependencies for running hpa script in docker. This only needs to be
|
||||
ran once on a new machine.
|
||||
|
||||
USAGE:
|
||||
$ $THIS <flags> <shell> <completion-file>
|
||||
|
||||
FLAGS:
|
||||
-h | --help: Show this help page.
|
||||
|
||||
DEFAULTS:
|
||||
shell: Default is 'zsh', accepts 'zsh' | 'bash' | 'fish'
|
||||
completion-file: Default is '~/.zsh/completions/_hpa'
|
||||
|
||||
ENVIRONMENT:
|
||||
CONSULTS_DIR: Set the directory where consults / projects are stored.
|
||||
(default: '~/work/consults')
|
||||
|
||||
HPA_DOCKER_TAG: Set the docker image tag to use for the hpa docker image
|
||||
(default: 'latest')
|
||||
|
||||
HPA_VAULT_SECRET_KEY: Set the key used for the ansible-vault secret.
|
||||
(default: 'vault-pass')
|
||||
|
||||
EOF
|
||||
}
|
||||
|
||||
# Logging utility function, use in place of echo.
|
||||
log() {
|
||||
logging log --source "$THIS_FILE" "$@"
|
||||
}
|
||||
|
||||
generate-completion() {
|
||||
local output_dir output type
|
||||
type=${1:-"zsh"}
|
||||
output=${2:-$HOME/.zsh/completions/_hpa}
|
||||
output_dir=$(dirname "$output")
|
||||
|
||||
log "Generating completion: type: '$type', to: $output"
|
||||
|
||||
[[ ! -d "$output_dir" ]] && mkdir -p "$output_dir"
|
||||
(
|
||||
podman run --rm -it "$HPA_DOCKER_IMAGE:$HPA_DOCKER_TAG" \
|
||||
--generate-completion-script "$type" |
|
||||
tr -d '\r'
|
||||
) >"$output"
|
||||
}
|
||||
|
||||
generate-secret() {
|
||||
log "Generating vault secret for key: '$HPA_VAULT_SECRET_KEY'"
|
||||
local secret
|
||||
secret="$(pass -c ansible/vault-pass)"
|
||||
printf "%s" "$secret" | podman secret create "$HPA_VAULT_SECRET_KEY" -
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# MAIN
|
||||
################################################################################
|
||||
|
||||
first_arg=${1:-""}
|
||||
if [[ $first_arg == "-h" ]] || [[ $first_arg == "--help" ]]; then
|
||||
usage && exit 0
|
||||
else
|
||||
# Setup logging file and label.
|
||||
source "$SCRIPTS/hypr/logging"
|
||||
setup-logging "$LOG_FILE" "$LOG_LABEL"
|
||||
|
||||
log "Starting init..."
|
||||
|
||||
generate-completion "$@"
|
||||
generate-secret
|
||||
|
||||
log "Generating directories, if they don't exist."
|
||||
mkdir -p "$HPA_CONSULTS_DIR" &>/dev/null
|
||||
mkdir "$HPA_DATA_DIR" &>/dev/null
|
||||
|
||||
log "Cloning required template and playbook, if they don't exist"
|
||||
[[ ! -d "$HPA_PLAYBOOK_DIR" ]] && git clone "$HPA_PLAYBOOK_URL" "$HPA_PLAYBOOK_DIR"
|
||||
[[ ! -d "$HPA_CONSULT_TEMPLATE_DIR" ]] && git clone "$HPA_CONSULT_TEMPLATE_URL" "$HPA_CONSULT_TEMPLATE_DIR"
|
||||
[[ ! -d "$HPA_AIRFLOW_TEMPLATE_DIR" ]] && git clone "$HPA_AIRFLOW_TEMPLATE_URL" "$HPA_AIRFLOW_TEMPLATE_DIR"
|
||||
fi
|
||||
112
env/.local/scripts/hpa-pull
vendored
Executable file
112
env/.local/scripts/hpa-pull
vendored
Executable file
@@ -0,0 +1,112 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
SCRIPTS=${SCRIPTS:-$HOME/.local/scripts}
|
||||
THIS_FILE=${BASH_SOURCE[0]}
|
||||
LOG_LABEL=$(basename "$THIS_FILE")
|
||||
THIS=${THIS:-$LOG_LABEL}
|
||||
LOG_FILE=${LOG_FILE:-"$LOG_LABEL.log"}
|
||||
# Load environment / shared variables.
|
||||
. "$SCRIPTS/utils/hpa/hpa.env"
|
||||
|
||||
usage() {
|
||||
cat <<EOF
|
||||
|
||||
Pulls / updates template, playbook, docker image, etc.
|
||||
|
||||
USAGE:
|
||||
$ $THIS <flags>
|
||||
|
||||
FLAGS:
|
||||
-a | --all: Pull everything (default).
|
||||
-d | --docker: Pull docker image.
|
||||
-p | --playbook: Pull ansible-hpa-playbook.
|
||||
-t | --template: Pull consult template.
|
||||
-h | --help: Show this help page.
|
||||
|
||||
If no flags are passed in then we will pull everything.
|
||||
|
||||
EOF
|
||||
}
|
||||
|
||||
# Logging utility function, use in place of echo.
|
||||
log() {
|
||||
logging log --source "$THIS_FILE" "$@"
|
||||
}
|
||||
|
||||
pull-repo() {
|
||||
local dir=${1:-""}
|
||||
[[ -z "$dir" ]] &&
|
||||
log --error "Directory not supplied to pull git repo." &&
|
||||
exit 1
|
||||
|
||||
pushd "$dir" &>/dev/null || exit 1
|
||||
(
|
||||
git pull
|
||||
)
|
||||
popd &>/dev/null
|
||||
}
|
||||
|
||||
pull-docker() {
|
||||
log --echo "Pulling docker image: '$HPA_DOCKER_IMAGE:$HPA_DOCKER_TAG'"
|
||||
podman pull "$HPA_DOCKER_IMAGE:$HPA_DOCKER_TAG"
|
||||
}
|
||||
|
||||
pull-playbook() {
|
||||
log --echo "Pulling playbook: '$HPA_PLAYBOOK_DIR'"
|
||||
pull-repo "$HPA_PLAYBOOK_DIR"
|
||||
}
|
||||
|
||||
pull-template() {
|
||||
log --echo "Pulling template: '$HPA_CONSULT_TEMPLATE_DIR'"
|
||||
pull-repo "$HPA_CONSULT_TEMPLATE_DIR"
|
||||
|
||||
log --echo "Pulling airflow assessment template: '$HPA_AIRFLOW_TEMPLATE_DIR'"
|
||||
pull-repo "$HPA_AIRFLOW_TEMPLATE_DIR"
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# MAIN
|
||||
################################################################################
|
||||
|
||||
# Setup logging file and label.
|
||||
source "$SCRIPTS/hypr/logging"
|
||||
setup-logging "$LOG_FILE" "$LOG_LABEL"
|
||||
all_flag="1"
|
||||
docker_flag="0"
|
||||
playbook_flag="0"
|
||||
template_flag="0"
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
if [[ $1 == "-a" ]] || [[ $1 == "--all" ]]; then
|
||||
all_flag="1"
|
||||
break
|
||||
elif [[ $1 == "-h" ]] || [[ $1 == "--help" ]]; then
|
||||
usage && exit 0
|
||||
elif [[ $1 == "-d" ]] || [[ $1 == "--docker" ]]; then
|
||||
all_flag="0"
|
||||
docker_flag="1"
|
||||
elif [[ $1 == "-p" ]] || [[ $1 == "--playbook" ]]; then
|
||||
all_flag="0"
|
||||
playbook_flag="1"
|
||||
elif [[ $1 == "-t" ]] || [[ $1 == "--template" ]]; then
|
||||
all_flag="0"
|
||||
template_flag="1"
|
||||
fi
|
||||
shift
|
||||
done
|
||||
|
||||
if [[ $all_flag == "1" ]]; then
|
||||
docker_flag="1"
|
||||
playbook_flag="1"
|
||||
template_flag="1"
|
||||
fi
|
||||
|
||||
[[ $docker_flag == "1" ]] && pull-docker
|
||||
[[ $playbook_flag == "1" ]] && pull-playbook
|
||||
[[ $template_flag == "1" ]] && pull-template
|
||||
date +%s >"$HPA_CONFIG_DIR/.lastpull"
|
||||
date +%s >"$HPA_AIRFLOW_CONFIG_DIR/.lastpull"
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user