611 Commits

Author SHA1 Message Date
0a59fef11c fix: Fixes hyprpaper configuration, updates to new syntax. 2026-02-06 15:38:19 -05:00
fdf1ba6fb0 feat: Set TERM at bottom of .zshrc when in a devpod environment so that tmux works inside dev container. 2026-02-02 10:39:56 -05:00
17d83c347d feat: Adds devpod module to starship prompt. 2026-02-02 09:37:16 -05:00
c4faef634a feat: Working on devpod in starship 2026-02-02 09:20:37 -05:00
2795a86441 feat: Adds container component to starship prompt. 2026-02-02 09:11:19 -05:00
03244bd272 feat: Updates devcontainer-env 2026-02-02 09:01:50 -05:00
37b97b00f5 feat: Updates to nvim config 2026-02-02 08:48:51 -05:00
5d6cb3a843 feat: Adds tmux config to devcontainer-env. 2026-02-01 16:56:30 -05:00
5561f3ccaf feat: Updates devcontainer-env to pull nvim submodule. 2026-02-01 15:57:24 -05:00
3a82ae15df feat: Updates neovim config. 2026-02-01 14:47:04 -05:00
d26ca008c0 feat: Adds devcontainer-env script, which installs minimal dotfiles when working in a devcontainer. 2026-02-01 13:00:13 -05:00
d29876b367 feat: Adds ste alias to perform swift tests with code coverage enabled. 2026-02-01 12:11:04 -05:00
24440f845b feat: Updates to nvim config 2026-01-30 10:08:41 -05:00
4a08de9573 fix: Fixes typo in hyprtoolkit config 2026-01-06 10:39:25 -05:00
b1c3b16cc6 feat: Updates neovim config. 2026-01-05 10:54:06 -05:00
b159565288 feat: Adds swiftly env support to zshrc. 2025-12-31 12:27:35 -05:00
df876d2cac feat: Adds repos script to clone a few repositories on new installation / machine. 2025-12-18 10:40:08 -05:00
e052f0c394 fix: Fixes dp function 2025-12-18 10:07:59 -05:00
0d916fe960 feat: Updates system to include cifs utils and mounts. 2025-12-16 13:06:09 -05:00
1b504cca65 fix: Moves aap script, so that it can be used from airflow assessment template scripts. 2025-12-15 12:29:43 -05:00
fb0e4d705b feat: Adds airflow assessment generation to hpa scripts. 2025-12-15 12:21:13 -05:00
b9f248926b feat: Updates to qcal configuration. 2025-12-10 14:57:20 -05:00
f798ef2e4e feat: Adds runs/calendar and updates hyprkeybinds. 2025-12-10 14:25:03 -05:00
fa47fcaed7 feat: Moves hyprland workspace configuration to it's own file. 2025-12-10 11:22:44 -05:00
f39a9113d6 feat: Moves hyprland workspace configuration to it's own file. 2025-12-10 11:21:50 -05:00
207e4469b2 feat: Adds jellyfin-tui run and configuration, updates ghostty font size. 2025-12-10 10:01:24 -05:00
047c241df8 feat: Adds localsend keybind. 2025-12-09 16:38:00 -05:00
b8bf70f117 feat: Adds todo for setting up pipewire. 2025-12-06 14:04:52 -05:00
bec884f866 feat: Adds mail todo, updates hyprland run to not use '-git' packages. 2025-12-05 13:26:21 -05:00
943427b3e1 feat: Adds runs/after/localsend to set firewall ports. 2025-12-04 08:36:54 -05:00
eae3bfbc90 feat: Adds github-cli to runs/dev. 2025-11-25 15:51:57 -05:00
6621475808 feat: Removes unused hyprworkspaces.conf 2025-11-24 08:01:09 -05:00
090a0681ca feat: Reverts to not including hyprworkspaces.conf. 2025-11-23 08:17:56 -05:00
3acaf486c0 feat: Updates nvim config. 2025-11-22 12:58:49 -05:00
80c6eefe8c feat: Updates nvim config. 2025-11-22 08:56:15 -05:00
0c80780ade feat: Changes prettier line width to be 100, which is better on my laptop. 2025-11-22 08:32:24 -05:00
5ea0ef74e4 feat: Updates nvim config. 2025-11-21 20:46:51 -05:00
5bad99f712 feat: Updates neovim config, adds window rules for show-me-the-key 2025-11-21 16:01:39 -05:00
44aec09d62 feat: Updates neovim config, and shorten-url create. 2025-11-21 12:29:31 -05:00
a0dcba3810 feat: Updates neovim config. 2025-11-19 13:07:17 -05:00
7356d129cc feat: Updates neovim config. 2025-11-19 12:34:10 -05:00
eece231724 feat: Adds logs subcommand to shorten-url. For viewing or removing logs. 2025-11-19 09:48:48 -05:00
3446460827 WIP: Adds --expire flag to shorten-url create command. 2025-11-19 07:43:49 -05:00
1e60f88ec4 WIP: Adds --no-spin option to shorten-url, fixes dev-env to copy shorten-url utils scripts. 2025-11-19 05:34:51 -05:00
45666a5911 WIP: Moving shorten-url into seperate scripts / utils for gum spinner to work. 2025-11-19 05:04:25 -05:00
46186e2741 feat: Updates nvim config. 2025-11-18 17:32:53 -05:00
fe25f1bf19 feat: Begins shorten-url script. 2025-11-18 17:21:31 -05:00
c8212b7587 feat: Updates nvim config.f' 2025-11-18 10:50:01 -05:00
4b674c40c9 feat: Adds customer share mount to runs/after/system 2025-11-18 10:48:47 -05:00
8daa596205 feat: Adds idle-inhibitor to waybar. 2025-11-16 18:07:15 -05:00
9977a8806b feat: Adds gnome-keyring to pika-backup run. 2025-11-14 08:12:29 -05:00
c667bfb8ee feat: Adds syu alias for quicker system package update 2025-11-13 22:29:14 -05:00
2ed9208e6a feat: Adds backup logger script. 2025-11-13 21:52:14 -05:00
0be8bcd1a2 feat: Adds pika-backup run. 2025-11-13 21:31:21 -05:00
dcb186393e feat: Updates to hpa config and scripts. 2025-11-13 17:08:58 -05:00
b7ce95dc66 feat: Adds runs/after/zathura to set it as the default pdf viewer. 2025-11-13 15:23:32 -05:00
358b9719f1 feat: Adds zathura after run. 2025-11-13 13:44:08 -05:00
89b12fc5fa feat: Adds zathura for pdf viewer. 2025-11-13 13:39:33 -05:00
23a27446df fix: Adds hyprshot to hyprland run. 2025-11-13 10:21:20 -05:00
c44c2cf5ea Updates neovim config. 2025-11-12 23:44:19 -05:00
9d6b99206a feat: Updates git config to better handle submodules automatically. 2025-11-12 22:13:02 -05:00
d19a33f4f0 feat: Updates neovim config. 2025-11-12 22:05:52 -05:00
9c7d395c6b feat: Updates neovim config. 2025-11-12 21:23:13 -05:00
2f9c68acfb feat: Adds swift-dev script 2025-11-12 17:34:15 -05:00
df109c3803 feat: Sets prettierrc width to 100 columns 2025-11-12 15:52:51 -05:00
cbe53484fa feat: Neovim config updates. 2025-11-12 15:49:27 -05:00
2aa9f4e839 feat: Updates mail submodule. 2025-11-12 08:03:48 -05:00
ad593bc25f fix: Removes unused lines in run script. 2025-11-11 15:26:53 -05:00
790ba581aa feat: Adds fuse-overlayfs to runs/podman 2025-11-11 09:46:10 -05:00
e57262b4d3 feat: Unifies webapp scripts into a single script with subcommands. 2025-11-10 21:33:02 -05:00
e63e4f4fab feat: Adds home directory setup in runs/after/system and fixes dev-env not copying markdownlint config with proper file name. 2025-11-10 20:30:59 -05:00
86d3a54e3b feat: Updates nvim config. 2025-11-10 16:56:36 -05:00
cf05f11759 feat: Removes system script, as it's handled in the runs/after/system now. 2025-11-10 16:20:51 -05:00
059dba6f18 feat: Removes pkg subcommands from kanatactl in favor of using package manager. 2025-11-10 16:16:50 -05:00
00c9c77bcc fix: Sets hypr input debounce delay back to 200ms as I was getting lots of false keypresses. 2025-11-10 16:09:11 -05:00
52cbe2ad89 WIP: TODO updates, nvim updates. 2025-11-10 16:03:42 -05:00
f1b65e955e WIP: Adds more items to runs/after/system, adds missing package to runs/dev, adds runs/after/gopass to remove password store. 2025-11-10 15:15:10 -05:00
3c98a008c8 WIP: Adds kanatctl to runs/after/system, adds ability for kanatactl to install service as user or system service. 2025-11-10 11:36:21 -05:00
74011a46bc WIP: Adds some before/after scripts to runs. 2025-11-10 09:14:55 -05:00
e972dd331c feat: Creates run-handler script so that using find works properly for runs. 2025-11-10 00:12:00 -05:00
9c007c9434 WIP: Converts runs to be text files of packages to install / uninstall, begins before and after scripts to execute during runs. 2025-11-09 22:15:29 -05:00
381a0450e5 feat: Prep for new run syntax. 2025-11-09 20:44:40 -05:00
af7b46efa5 feat: Adds some more todos, increases keyboard keyrepeat delay a little. 2025-11-09 16:37:55 -05:00
f269906fd5 feat: Increases key input speed, in hyprinput. 2025-11-09 14:19:24 -05:00
307a971371 fix: Fixes webapp script logging errors. 2025-11-09 13:57:02 -05:00
6b13291fff fix: Fixes some colors for hyprlauncher. 2025-11-09 13:47:44 -05:00
b4b7fa0a84 feat: Some cleanup. 2025-11-09 13:24:18 -05:00
d166c246ef feat: Some cleanup. 2025-11-09 13:23:50 -05:00
746167a9c8 fix: Removes elephant (walker dependency) from autostart. 2025-11-09 12:12:50 -05:00
419752b381 feat: Adds hyprlauncher and configuration (currently requires '-git' versions of hypr*), removes walker (previously used launcher). 2025-11-09 11:56:28 -05:00
79da2db401 feat: Moves nvim config to be a submodule. 2025-11-09 01:59:10 -05:00
0da387b1b9 feat: Updates README and LICENSE in nvim, in prep to make a submodule. 2025-11-09 01:53:10 -05:00
e1ed84d343 chore: Updates todos. 2025-11-09 01:48:45 -05:00
d5f1d56b94 feat: Clean up in nvim config. 2025-11-09 01:38:40 -05:00
97f3047989 feat: Adds better markdown support / plugins to nvim config. 2025-11-09 01:26:12 -05:00
18fc260a75 feat: Adds docker language server to nvim config. 2025-11-08 22:49:05 -05:00
5811d5602b feat: Adds ripgrep to dev run, adds chsh to system script. 2025-11-08 22:21:13 -05:00
d172a0071b feat: Adds ripgrep configuration so mini.pick shows hidden files. 2025-11-08 21:27:29 -05:00
2995edfc86 feat: Updates oil config to show hidden directories, except for .git 2025-11-08 20:39:52 -05:00
10987bd255 feat: Adds mail as a submodule, updates dev-env script to also install / update email config. 2025-11-08 20:25:03 -05:00
0045e6149c feat: Cleans up zshrc and zshenv, more keymaps and plugins in neovim. 2025-11-08 18:39:36 -05:00
3081c6b9b3 feat: Nvim config updates, renames hyprland config files to have a 'hypr' prefix for hypr lsp to work on them. 2025-11-08 14:05:08 -05:00
e154efcac4 feat: Adds bob as package installed by dev. 2025-11-08 13:19:05 -05:00
71eae2eb5b feat: Minimal neovim v0.12 config. 2025-11-08 13:17:18 -05:00
9af452c849 feat: Updates hpa and config to mount home directory inside container. 2025-11-07 15:59:40 -05:00
0636832796 feat: Minor updates. 2025-11-07 12:09:46 -05:00
05cb700cb1 feat: Specifies signing key in git config, updates tmux-sessionator email option to also open iCloud email. 2025-11-07 09:47:01 -05:00
a03617608d feat: Adds tmux-kill-old-sessions script and systemd timer/service, to clean up inactive sessions. 2025-11-07 08:13:27 -05:00
ef933bd3aa feat: Adds consults directory and work directory to tmux-sessionator path. 2025-11-06 16:28:58 -05:00
6b9f2203c1 feat: Adds consults directory and work directory to tmux-sessionator path. 2025-11-06 16:26:08 -05:00
e0214a49d2 feat: Adds auto-pull options to hpa with a default pull interval of 1 hour. 2025-11-06 16:22:35 -05:00
b090430cd8 feat: Adds '--date' option to hpa-create script to allow date override when generating a new project. 2025-11-06 15:26:13 -05:00
e53cef27a0 feat: Creates hpa-pull script, adds '--echo' to logging. 2025-11-06 15:18:52 -05:00
43f18eb45a feat: Creates hpa-init script and hpa.env. 2025-11-06 14:35:28 -05:00
c1eae18c67 feat: Creates hpa-create utility script, which will also push / generate the remote git repo upon creation. 2025-11-06 12:27:41 -05:00
4d73fede8b feat: Updates to notes in hpa script 2025-11-06 07:54:15 -05:00
ba06819221 feat: Adds hpa-create helper script. 2025-11-05 19:56:35 -05:00
ba81c53054 feat: Updates to hpa script. 2025-11-05 17:22:19 -05:00
36fd0558b0 feat: Cleans up hpa script, adds init command to it. 2025-11-04 22:09:24 -05:00
1b349b11c3 feat: Adds hpa configuration, adds global prettierrc and markdownlint 2025-11-04 16:51:48 -05:00
26f2b360e3 feat: Adds hpa wrapper script to run swift-hpa in a docker container. 2025-11-04 14:51:13 -05:00
2ac8560de1 feat: Adds neomutt wrapper script to set TERM correctly, this is to allow tmux-sessionator --email work properly. 2025-11-02 21:38:21 -05:00
f4341f3b5f feat: Update obs-studio run, WIP. 2025-11-02 21:30:16 -05:00
9ab1bed56a feat: Adds neomutt alias that set's TERM to xterm-direct for color scheme to work properly. 2025-11-02 16:03:56 -05:00
def9a00b76 fix: Fixes hyprland GTK scale not specified correctly. 2025-11-02 12:56:10 -05:00
d1e9e3cc5a feat: Adds some todos, adds pcre to dev run, removes sddm-catppuccin that is failing to install. 2025-11-02 11:14:33 -05:00
005403f939 feat: Adds email keybind to tmux config, updates tmux-sessionator to skip choosing if an argument is passed in so the tss alias works better. 2025-11-01 17:25:04 -04:00
9c7940b5fa feat: Updates tmux-sessionator to generate an email session with the '--email' flag, adds email alias to zshrc. 2025-11-01 16:04:29 -04:00
2949a85159 fix: Adds required sasl-oauth package to neomutt installation run. 2025-11-01 10:05:52 -04:00
737f9bfb2c feat: Adds nvim autocmd to detect neomutt compose emails and set filetype to markdown. 2025-10-31 15:50:16 -04:00
654c61a460 feat: Adds run script to install podman. 2025-10-31 14:16:09 -04:00
6f14542b7d fix: Fixes dev-env script to not clobber utils script folder. 2025-10-31 11:48:50 -04:00
63e698acb5 feat: Adds browser to zshenv, so that urlview works in neomutt. 2025-10-31 11:10:31 -04:00
aec01d5876 feat: Sources personal env variables file, if it exists. 2025-10-30 08:51:52 -04:00
95ffc9fa44 feat: Adds mail scripts to path. 2025-10-29 16:37:36 -04:00
b45503717f feat: Adds script to generate work email tokens for work email account. 2025-10-28 17:14:38 -04:00
8acc2e6647 fix: Fixes gopass alias to work along with having pass installed, which is used by some other programs. 2025-10-28 09:17:47 -04:00
f5705e9809 fix: Fixes brave run to uuse brave-bin 2025-10-27 16:21:41 -04:00
eda3213f72 feat: Adds todo for kanata keyboard service. 2025-10-27 15:22:14 -04:00
d21e9931eb feat: Adds brave browser and removes chromium. 2025-10-27 15:17:03 -04:00
ed76943b79 feat: Adds neomutt run for terminal based email setup. 2025-10-25 10:40:03 -04:00
4909aa1fcb fix: Fixes private browser keybind to work with brave. 2025-10-24 09:48:12 -04:00
fcfbfac7dd feat: Updates keybind to launch brave browser instead of zen. 2025-10-24 09:41:12 -04:00
281c26ed71 feat: Updates TMUX_SESSIONATOR path to include personal config directory. 2025-10-24 09:31:18 -04:00
cb479a5370 feat: Updates launch-webapp browser to use brave instead of chromium. 2025-10-24 09:21:40 -04:00
32bdafff4f fix: Fixes npm bin path. 2025-10-23 16:22:16 -04:00
1006821a9c feat: Adds npm bin directory to path. 2025-10-23 16:20:45 -04:00
3b89eb4877 feat: Changes ai keybind to locally hosted open-webui instance. 2025-10-22 14:04:18 -04:00
45fa5196a7 fix: Fixes obs-studio package build to include a libajantv2 library as dependency. 2025-10-20 08:04:59 -04:00
f94d724d67 feat: Adds obs-studio pkgbuild and run file to get working on aarch64 2025-10-19 12:14:37 -04:00
a6fcc8a460 feat: Updates macbook keyboard layout. 2025-10-19 08:41:43 -04:00
3799a81f05 fix: Fixes window-action-picker not calling appropriate close-window script. 2025-10-16 16:34:17 -04:00
97ed707936 feat: Updates starship configuration.f' 2025-10-16 14:04:42 -04:00
Michael Housh
6aee095859 Updates starship prompt. (#3)
* feat: Update kanata voyager keyboard number layer to include modifier
keys on the homerow of my left hand, so that I can use modifier +number
keybinds.

* feat: Updates starship prompt.
2025-10-15 16:43:17 -04:00
Michael Housh
461d06f681 feat: Update kanata voyager keyboard number layer to include modifier (#2) 2025-10-15 15:54:37 -04:00
Michael Housh
2f626d4664 Merge pull request #1 from m-housh/push-osqwmkpzynup
feat: Adds firewalld to system run and setup script.
2025-10-15 09:18:05 -04:00
b87348da96 feat: Adds firewalld to system run and setup script.
feat: Move dotfiles location and update the appropriate environment variables.
2025-10-15 08:40:02 -04:00
4fcd2f43fd feat: Adds firewalld to system run and setup script. 2025-10-14 09:48:24 -04:00
d1dffb632f feat: Updates kanatctl to use the pkg subcommand 2025-10-14 08:24:26 -04:00
1196849c3b feat: Begins pkg subcommand for kanatactl. 2025-10-14 07:41:52 -04:00
e77b3e7535 feat: Begins breaking kanatactl subcommands into their own files. 2025-10-13 16:58:54 -04:00
ee2898053b feat: Adds mouse and arrow layer to voyager keyboard layouts, adds config subcommand to kanatactl to copy the appropriate config based on keyboard type. 2025-10-13 12:48:14 -04:00
f1202d77f3 feat: Begins voyager keyboard layout for kanata, need to update kanatactl to choose between which config to use. 2025-10-13 11:27:48 -04:00
087d7963e8 feat: Adds mouse layer to kanata config, adds stop command to kanatactl script. 2025-10-12 22:41:37 -04:00
8b25509344 fix: Fixes a few typos in kanatactl script. 2025-10-12 20:56:36 -04:00
0034ac6d87 feat: Adds kanatactl to manage kanata installation, building, systemd service, etc. 2025-10-12 20:43:11 -04:00
5c6409c2e9 feat: Adds kanata run and starts config, for macbook pro keyboard mods. 2025-10-11 22:37:24 -04:00
8a63efd6cf feat: Adds screenshot keybinds. 2025-10-11 09:52:48 -04:00
7d4a0714d0 feat: updates. 2025-10-10 16:48:09 -04:00
b454c5d01d feat: Fixes gen script for the new logging settings. 2025-10-09 21:57:15 -04:00
e003be5bee feat: Updates logging paths, to all write to 'logs' directory in the tmp directory. 2025-10-09 18:36:49 -04:00
0bb288b3d6 feat: Adds localsend package to runs. 2025-10-09 15:42:47 -04:00
23a5dc0bdc feat: Updates walker config that was giving errors after walker update. 2025-10-09 15:14:13 -04:00
72ff2e6316 feat: Adds logs picker / views to utils-launcher 2025-10-09 14:46:18 -04:00
390230e532 feat: Moves utils-launcher preview to be at bottom and updates window rules for utils-launcher 2025-10-09 13:34:07 -04:00
a006539bf1 fix: Fixes window titles not always showing properly in window picker. 2025-10-09 12:50:45 -04:00
6332eafea5 feat: Adds ability for window picker to only show windows for a given workspace, in prep for adding workspace action picker. 2025-10-09 10:25:30 -04:00
933ce337a1 feat: Adds workspace picker to utils-launcher 2025-10-09 09:16:42 -04:00
ae73074f6a fix: Fixes window action picker not returning proper choice, removes scripts that are now in the '*ctl' commands. 2025-10-09 08:26:31 -04:00
63c8645051 feat: Adds switch subcommand to workspacectl, and updates keybinds. 2025-10-09 08:16:11 -04:00
aec425c7d2 feat: Restores workspacectl toggle command to only working on active workspace. 2025-10-08 17:06:20 -04:00
fa6a482f2f feat: Begins workspacectl. 2025-10-08 16:34:39 -04:00
dff77ae065 feat: Adds required smb packages to nautilus run/install file. 2025-10-08 12:36:00 -04:00
bac516d446 feat: Fixes missing window-picker script that got deleted. 2025-10-08 11:46:07 -04:00
4674b132f3 feat: Moves preview-stats script into hypr/utils/fzf 2025-10-08 11:31:06 -04:00
fd22a4ab4a feat: Updates timestamp formats for logs to be more readable, updates utils-launcher config to use the '*ctl' command variants, updates preview-stats for utils to format previews based on width of preview window. 2025-10-08 11:10:42 -04:00
18fce8e2bb feat: Adds monitorctl script to handle monitor subcommands. 2025-10-08 10:38:05 -04:00
0922f7578f feat: Adds keybind for launching immich / photos. 2025-10-08 09:30:19 -04:00
335b60f43c feat: Adds window rules for windowctl windows to be floating when opened a new window. 2025-10-08 08:55:26 -04:00
99110dea2a feat: Adds spinner to weather script when loading weather. 2025-10-08 08:50:41 -04:00
2eb831e565 feat: Removes files from scripts/hypr that are now integrated into windowctl. 2025-10-08 08:41:45 -04:00
53c439a418 fix: Fixes windowctl action picker to not focus on it's own window when the '--active' flag is passed. 2025-10-08 08:05:47 -04:00
77c168cc99 feat: Updates keybinds. 2025-10-07 23:04:48 -04:00
cfc846e2f7 feat: Adds toggle floating option to windowctl picker actions. 2025-10-07 19:28:07 -04:00
55d7199315 fix: Fixes some scripts that had logging errors since logging updates. 2025-10-07 17:49:35 -04:00
5ddf6c3927 feat: Adds subcommand toggle-floating to windowctl. 2025-10-07 17:05:46 -04:00
dd9c018f99 fix: Fixes logging errors in switch-to-workspace 2025-10-07 15:50:57 -04:00
1eea0b84a7 feat: Updates logging vars in launch script. 2025-10-07 15:32:07 -04:00
8d21e9a9fe fix: Fixes logging errors in launch-webapp. 2025-10-07 15:15:24 -04:00
52b78aadf8 feat: Updates windowctl subcommands, fixes some logging bugs. Need to remove old files and update keybinds to use windowctl subcommands. 2025-10-07 14:40:04 -04:00
7178a12893 feat: Integrates subcommands into windowctl, need to move the windowctl primary picker into it's own subcommand. 2025-10-07 10:24:20 -04:00
931903d18c feat: Begin incorporating utility scripts into windowctl 2025-10-07 08:37:52 -04:00
7024182f49 feat: Moves window action picker to it's own script, need to use it from windowctl 2025-10-06 23:09:03 -04:00
7aec9d1610 feat: Adds ability to pipe addresses into close-windows script. 2025-10-06 19:56:14 -04:00
5946a177fb feat: Adds help to preview-stats, changes message that get logs to console during error or warning messages. 2025-10-06 18:46:59 -04:00
7c08fec16b feat: Adds ability to narrow down keys returned for preview-stats. 2025-10-06 18:06:09 -04:00
78e40a9401 feat: Begins moving some scripts into a utils folder and using them as subcommands. 2025-10-06 17:01:07 -04:00
b5198a5df6 fix: Fixes windowctl to handle when ctrl-c is hit from the window-picker, when not launched in a new terminal window. Adds a few more options to that allow to return to the window picker after performing certain actions on a selected window. 2025-10-06 16:32:26 -04:00
54fe479ee1 fix: Fixes windowctl not properly focusing windows on special workspaces, adds the ability to call windowctl with an address to perform certain actions without going through the pickers, should likely call from the launch script so code is shared / not duplicated in two spots. 2025-10-06 12:16:46 -04:00
503df7ce33 feat: Adds mychart webapp. 2025-10-06 11:20:07 -04:00
009efbb952 fix: Fixes install-webapp script not properly handling spaces in the desktop file name. 2025-10-06 10:57:07 -04:00
b1fb505ac5 feat: Renames window-table to windowctl, adds preview data to utils-launcher and windowctl actions. 2025-10-06 10:26:25 -04:00
6721b2a8c5 fix: Fixes launch script to have a --new-instance flag to force launching a new instance of an application. 2025-10-06 08:29:01 -04:00
a4a560eb3d feat: Adds monitor-picker to utility launcher config. 2025-10-05 21:49:14 -04:00
a7e6bc893c feat: Adds monitor-picker, utility script for generating fzf preview data for pickers. 2025-10-05 21:17:04 -04:00
90c97263cb feat: Updates setup-logger script to not require file argument, will default to /tmp/<label>.log 2025-10-05 16:46:59 -04:00
dccb1ca0a3 feat: Integrates logging into scripts that need it. 2025-10-05 16:35:19 -04:00
f729bedc99 feat: Adds logging script as a general logging utility to not pollute console for TUI's for example. Updated gen script to put it into newly generated scripts, need to update existing scripts to use it. 2025-10-05 15:21:50 -04:00
4edf92e034 feat: Adds previews to utils-launcher, sources catppuccin colors file in zshrc so that fzf options are setup. 2025-10-05 11:05:05 -04:00
5e8fbbcbab Feat: Updates pickers so delimiters are not showing in selections. 2025-10-05 10:31:16 -04:00
6d6f24467f feat: Adds preview windows to window and workspace pickers. 2025-10-05 01:21:46 -04:00
cc47106e74 feat: Moves window and workspace pickers to their own scripts. 2025-10-04 23:05:18 -04:00
bad3282dc5 feat: Adds waybarctl to combine scripts that were similar. 2025-10-04 19:08:29 -04:00
33e6683369 feat: Adds more items to utility launcher, fixes bug in toggle waybar, and fix window-table to use fzf 2025-10-04 18:02:12 -04:00
c38348e62c feat: Creates a utility launcher fuzzy finder. 2025-10-04 16:57:11 -04:00
55257e7c28 feat: Updates install-webapp script with more flags and a launch option to open in a new terminal window. 2025-10-04 12:27:34 -04:00
318e7c7f95 feat: Adds launch option to install-webapp script, to launch it in a new terminal window. 2025-10-04 10:10:34 -04:00
b6ce570f1d feat: Adds switch-to-workspace script, so that moving workspaces will toggle a special workspace if it's active. 2025-10-04 09:45:55 -04:00
f911bfb7f1 feat: Moves hyprland scripts that were missed and updates systemd services to the appropriate locations. 2025-10-03 23:50:50 -04:00
d32d0cf64f feat: Moves hyprland scripts into it's own directory. 2025-10-03 23:43:29 -04:00
1def0356d7 feat: Adds some more flag options to the launch script. 2025-10-03 21:56:49 -04:00
4d4b8c9945 feat: Renames launch-or to just launch, generalizes it to also handle special workspaces, integrates launch-webapp script to use it, and updates keybinds that reference the script. 2025-10-03 20:06:47 -04:00
cedb6d8ab7 fix: Fixes purchase orders to open in dispatch workspace. 2025-10-03 15:40:02 -04:00
eae42b40b8 feat: Adds purchase order keybind. 2025-10-03 15:38:31 -04:00
42e962d439 feat: Adds home assistant web app. 2025-10-03 11:06:59 -04:00
27767d3948 feat: Adds more matches for emails to espanso, also restart espanso service when dev-env script is ran. 2025-10-03 10:24:49 -04:00
8bb6d35acd feat: Moves launch or focus script and makes it so that it can also close a window based on pattern. Updates keybinds that use it. 2025-10-03 09:58:05 -04:00
50191dde0c feat: Adds window-table script that will show a pretty table of active windows, they can be selected and focused, closed, etc. 2025-10-02 22:37:36 -04:00
d4f85a6786 feat: Updates tmux bindings to navigate windows to use either prefix+h|l or <c-alt>h|l, switches window keybind prefix to use alt in hyprland. 2025-10-02 17:02:34 -04:00
1ee8cad635 fix: Fixes typo in active-workspace flag for close-windows script 2025-10-02 16:31:26 -04:00
93fe3b6864 feat: Updates keybinds and removes close-all-windows script. 2025-10-02 16:28:04 -04:00
e23e861101 feat: Adds close-windows script, need to remove close-all-windows script and update keybinds to use new script. 2025-10-02 16:26:10 -04:00
45bcf8771c feat: Adds script generation to the gen script. 2025-10-02 10:26:30 -04:00
ab2f4356a3 feat: Adds super-tab to focus previous workspace. 2025-10-02 10:01:04 -04:00
26bc6635af fix: Fixes typo in keybinds not calling close-all-windows in active workspace. 2025-10-02 09:42:16 -04:00
0b166ad757 feat: Adds apple calendar web app, updates close-all-windows script to work on workspaces. 2025-10-02 09:38:58 -04:00
eb4c6990ec feat: Renames get-weather script to just weather. 2025-10-01 22:12:45 -04:00
f37b5f1db2 feat: Adds weather desktop file, I may need to fix how it gets copied in the dev-env script. 2025-10-01 17:26:08 -04:00
dccf54e115 feat: Adds META-L to lock computer. 2025-10-01 15:56:43 -04:00
c88d070b86 feat: Adds generic launch-or-focus script for apps that aren't webapps 2025-10-01 15:51:13 -04:00
1305b6708c feat: Adds meta+num sends window to workspace without switching the active workspace. 2025-10-01 14:43:11 -04:00
e15a0ef007 feat: Check alternate gpg key. 2025-10-01 12:39:43 -04:00
6a14830189 fix: Fixes webapp icons not showing properly for oryx and housecall pro. 2025-10-01 12:09:59 -04:00
ede7e4288b feat: Updates launch-webapp script, reformats keybinds, and removes uneeded scripts now that launch-webapp is more robust. 2025-10-01 12:03:13 -04:00
026a998fc4 feat: Makes launch webapp script handle more options, should be able to get rid of some other scripts. 2025-09-30 23:27:55 -04:00
a7033b749e feat: Organizes, reformats, and cleans up hyprland keybinds config file. 2025-09-30 22:10:23 -04:00
7d4e518479 feat: Begins reworking keymaps so that SUPER is for apps / hyprland controls and CTRL OPT are for window controls. 2025-09-30 18:47:11 -04:00
2d878f8c63 feat: Updates keybinds. 2025-09-30 17:10:07 -04:00
cefdf21fc8 feat: Adds proton pass manager script, updates keybinds and window rules for proton pass. 2025-09-30 15:39:05 -04:00
c89b0e307c feat: Updates dotfiles location in zshenv. 2025-09-30 10:39:20 -04:00
c383471903 fix: Fixes references to ~/.local/bin in hyprland keybinds. 2025-09-29 23:10:12 -04:00
ba9a343452 feat: Removes notifications from espanso, fixes keybind for launching unifi. 2025-09-29 18:57:06 -04:00
d78ec7f853 feat: Removes old uninstall-webapp script. 2025-09-29 18:06:06 -04:00
4ae6389ae8 feat: Adds keybinds for uninstalling desktop apps, and rules to float the tui app. 2025-09-29 17:49:27 -04:00
e60f049f10 fix: Fixes wallpaper not showing on hyprlock screen 2025-09-29 17:13:08 -04:00
a0a958defb feat: Adds uninstall-desktop-app script, need to remove the uninstall-webapp script and favor this one. 2025-09-29 17:06:40 -04:00
b9481443a7 feat: Adds keybind to make current file executable in neovim. 2025-09-29 14:28:29 -04:00
a9f7317e30 fix: Fixes hyprlock to not be fixed to internal monitor, updates install-webapp script to use the SCRIPT env var. 2025-09-29 12:27:03 -04:00
07272176cd fix: Fixes hyprland config to use the new wallpaper location. 2025-09-29 07:34:37 -04:00
51e2173084 feat: Removes old skeleton directory, cleans up some unused zsh aliases. 2025-09-28 20:23:27 -04:00
4314d28c01 feat: Removes old scripts directory. 2025-09-28 20:07:30 -04:00
41760ac195 feat: Adds system script that enables services during bootstrap. 2025-09-28 20:03:57 -04:00
edc3e9c74e feat: Adds bootstrap script that will run all the commands for packages, config, and webapps. 2025-09-28 19:42:59 -04:00
eddb346e30 feat: Rearranges assets into env folder and updates script references. 2025-09-28 19:12:10 -04:00
1a3442dee7 feat: Adds functionality to use a json file for install or uninstall webapp scripts. 2025-09-28 18:57:56 -04:00
a05e8f41bd fix: Fixes webapp install scripts to handle 'null' values in json specs 2025-09-28 17:44:54 -04:00
c6a0056ad6 feat: Adds webapps specs and insallation, also an uninstall-webapp script that will also remove any downloaded icons. 2025-09-28 17:36:55 -04:00
d5ab230d3f feat: Adds gen script to generate new runs or webapps. 2025-09-28 16:12:04 -04:00
474746e296 feat: Reorganizes some of the runs. 2025-09-28 12:59:36 -04:00
1a729e7281 feat: removes old link-config script, rename a few things in dev-env script, more cleanup. 2025-09-28 12:38:23 -04:00
5aceabd878 feat: Cleans up zshenv file. 2025-09-28 10:59:44 -04:00
ea6737e55c feat: Rearranges scripts directory, fixes zsh configuration clobbering history and plugins. 2025-09-28 10:44:02 -04:00
28903f8078 feat: Moves local scripts directory. Handles systemd configurations. 2025-09-28 10:04:15 -04:00
e5baef9bac feat: Most config rearranged properly. 2025-09-27 22:43:30 -04:00
9ae31715a3 feat: Moves most configuration 2025-09-27 21:36:25 -04:00
15b488f3a5 feat: Updates run script and adds default runs 2025-09-27 20:40:47 -04:00
6946389fac feat: Beginning of using primeagen's scripts 2025-09-27 18:54:39 -04:00
7903860e32 feat: Updates hyprland config to turn of animations and switch to windows when activated 2025-09-27 18:39:21 -04:00
8ddf08eb4b feat: Reverts pinentry using a tty version seems to break ssh pinentry. 2025-09-27 14:31:04 -04:00
6b1e1412c3 feat: Changes pinentry program used for gpg signing 2025-09-27 14:28:55 -04:00
2ee186b8a2 feat: Adds window rule for pinentry program 2025-09-27 14:27:46 -04:00
a42aad3fec feat: Adds battery monitor service, timer, and execution script. 2025-09-27 14:02:41 -04:00
35b7dca7e4 feat: Some window configuration updates, waybar color changes, clipse history changed, and adds logout service to clear clipboard history 2025-09-27 11:04:19 -04:00
129f452045 feat: Rearranges some file locations, adds install web apps script for a new machine. 2025-09-26 21:41:59 -04:00
824d3e20da feat: Some todo notes, and install packages script updates. 2025-09-26 17:56:32 -04:00
cf7903e9ed feat: Updates install pkg script, fixes typo and adds yubikey stuff. 2025-09-26 17:17:55 -04:00
60656734f1 feat: Hyprland updates, install package updates, new close all windows script 2025-09-26 16:21:49 -04:00
d277706034 feat: Renames webapp-install script to install-webapp, and adds option flags and usage. 2025-09-25 23:16:38 -04:00
1e94c4181f feat: Adds espanso text expander and updates install packages, walker updates. 2025-09-25 19:17:15 -04:00
bef4bbea5f feat: Some waybar updates, hypr keybinds, and scripts added 2025-09-25 15:49:45 -04:00
460d9bb180 feat: Fixes zsh history not saving, some hyprland config updates. 2025-09-25 12:08:21 -04:00
2ea4540cba feat: Updates install package script to include what should be needed on a fresh install, changes pinentry program which was causing ssh not to work. 2025-09-25 11:05:01 -04:00
73d4da7106 feat: Adds clipse clipboard history, removes macos specific scripts, begin creating install scripts. 2025-09-25 10:08:00 -04:00
6107a658bb feat: Updates gpg-agent to use tty. 2025-09-24 19:38:01 -04:00
29dc54f5ae feat: Working on waybar some more, right side of the menubar needs work. 2025-09-24 19:31:19 -04:00
f10875412a feat: Begins waybar configuration, adds theme for eza, some updates to other configuration. 2025-09-24 15:43:07 -04:00
379319dac7 More hyprland config / rearranging, adds some notes, adds gpg scdaemon.conf 2025-09-23 20:37:04 -04:00
f660c0fa23 feat: Trying to increase scale of gpg pinentry 2025-09-23 18:15:19 -04:00
81428fde31 feat: Updates to hyprland, adds waybar (default config for now), adds arch linux notes file to start tracking things that are needed when setting up a new system. 2025-09-23 18:06:09 -04:00
b7edc19958 feat: More hyprland configuration 2025-09-23 12:06:51 -04:00
8bc955b12f feat: More hyprland updates 2025-09-23 09:23:26 -04:00
28c71ee752 feat: Working on more hyprland configuration 2025-09-23 08:21:23 -04:00
920d87f8e0 Working on hyprland configuration, working hyprlock, hyprpaper not working. 2025-09-21 14:05:54 -04:00
d90146fde3 feat: Adds arch specific scripts and removes raycast (macOS) specific scripts. 2025-09-21 01:03:39 -04:00
40fe096baa feat: Removes macOS specific configurations or apps that I no longer use 2025-09-21 00:53:32 -04:00
9dd5559af5 Updated git config, gopass config, hyprland config, kitty config 2025-09-21 00:35:51 -04:00
c96dd116c9 feat: Adds hyprland keybind to launch gitea web app. 2025-09-19 18:34:51 -04:00
92fbde1e00 feat: Initial hyprland setup 2025-09-19 18:19:02 -04:00
b77180638a feat: Updates todos. 2025-09-18 17:14:48 -04:00
a06f1cc2a6 feat: Renames mason config repo in lazynvim 2025-09-18 16:50:02 -04:00
2a54c8c599 feat: Updates vim-tmux-navigator config to work properly. 2025-09-18 16:47:38 -04:00
dddcb877d6 feat: Adds some split navigation to ghostty config. 2025-09-18 16:31:06 -04:00
0bd1e6242d feat: updates nvim and adds gpgreset function 2025-09-18 11:36:44 -04:00
e8de865417 feat: Sets up correction suggestions for zsh 2025-09-17 14:45:49 -04:00
3825ef78ff feat: Updates ghostty config 2025-09-17 10:49:51 -04:00
81582b2194 feat: Adds 'z' alias for zoxide 2025-09-17 10:26:29 -04:00
9363055e5a feat: Removes zoxide from echoing path. 2025-09-17 10:23:55 -04:00
3230fb7007 feat: Adds zoxide to shell 2025-09-17 10:20:00 -04:00
6f11d99043 feat: Updates CARGO_HOME shell variable and location. 2025-09-17 08:55:49 -04:00
802ea082c8 feat: Updates path to include rust / cargo bin 2025-09-16 14:59:09 -04:00
9cb3792223 Adds dp function 2025-06-26 10:25:05 -04:00
3041d0a5e5 feat: Adds typst preview toggle to nvim key maps. 2025-04-24 14:11:46 -04:00
ecf3e98e25 feat: Adds typst preview and language server. 2025-04-23 11:08:11 -04:00
cbe4ebc538 feat: Adds harper_ls to lsp config. 2025-04-17 15:20:25 -04:00
511c7307b6 feat: Updates to git config and snacks.nvim 2025-04-04 17:12:56 -04:00
30ac84ecac fix: Fixes find latest function. 2025-04-03 08:53:00 -04:00
547cc41436 feat: Adds find-latest function to zsh, 'fl' alias for it, lazyvim config changes. 2025-04-03 08:50:04 -04:00
3fd33cd92e feat: Surpresses undefined global 'vim' in lua_ls setup. 2025-04-01 12:48:03 -04:00
8c83898abf feat: Removes project.nvim. 2025-04-01 12:07:13 -04:00
3fc1054206 feat: Updates lazyvim configuration, adds some configuration files. 2025-04-01 11:58:35 -04:00
6c6c5c507d feat: More lazyvim configuration changes. 2025-03-31 15:23:21 -04:00
b627d68ae3 feat: Updates lazyvim configuration, adds some configuration files. 2025-03-31 13:18:07 -04:00
d8feb9535d feat: Adds yubikeyrestart alias 2025-03-31 11:31:30 -04:00
73973aed67 feat: Updates lazyvim. 2025-03-31 09:49:32 -04:00
534a902512 feat: Adds needed LaunchAgents for using gpg ssh keys. 2025-03-31 09:36:27 -04:00
5dc1b33da8 feat: Working on trying lazyvim 2025-03-31 09:33:04 -04:00
4624fa48d3 feat: Adds gpg configuration. 2025-03-29 23:46:49 -04:00
fa0cf72ae0 feat: Configuration changes. 2025-03-29 23:41:16 -04:00
e10715940f feat: Adds ssh-agent eval to zshrc to use open-ssh instead of default macos installed ssh. 2025-03-28 15:47:38 -04:00
a5ca5b4f63 feat: Removes using gpg as an ssh agent. 2025-03-28 12:34:53 -04:00
26b98e444d feat: Check if signing key is fixed. 2025-03-28 10:57:52 -04:00
3796572324 fix: Remains of merge conflict. 2025-03-27 17:08:30 -04:00
3382c4b165 feat: Adds gpg-agent ssh_auth_sock export to zshrc 2025-03-27 17:01:34 -04:00
afdedc5acf feat: Updates git config. 2025-03-26 19:53:07 -04:00
ad5ade6679 feat: Adds CONSULTS environment variable 2025-03-26 10:45:25 -04:00
994ff17ceb feat: Adds DRIVE environment variable. 2025-03-26 10:41:16 -04:00
ccc2367bc3 feat: Adds hpa config. 2025-03-26 10:40:19 -04:00
7f98d4046f feat: Adds sketchybar configuration. 2025-03-26 09:21:33 -04:00
98804b3aa5 feat: Adds new-proposal function 2025-03-11 09:09:55 -04:00
53db3f3e8f feat: Adds new-proposal function 2025-03-11 08:57:37 -04:00
86422bd68b feat: Adds kubectl completions to zshrc. 2025-01-29 13:41:26 -05:00
95139d50ba feat: Adds leaf autocommand to set the filetype to html for better highlight groups. 2025-01-05 13:14:26 -05:00
15b1aded69 feat: Adds ask-gpt script. 2025-01-03 16:12:56 -05:00
dcac27db37 feat: Updates nvim config to include ghostty config highlighting 2025-01-03 13:44:02 -05:00
a71ae05e5b feat: Adds ghostty config syntax highlighting. 2025-01-02 17:46:57 -05:00
9a1b00610e feat adds render-markdown.nvim plugin 2025-01-02 17:46:57 -05:00
4f47e288ea feat: Ghostty config changes. 2024-12-31 07:57:38 -05:00
963fcd2810 feat: Adds mini-ai, ghostty config updates, tmux config updates. 2024-12-29 09:07:18 -05:00
9ead148f34 feat: More ghostty config and updates tmux config to allow image pass through. 2024-12-26 18:57:33 -05:00
0d8364eaf9 feat: Adds ghostty config 2024-12-26 18:26:51 -05:00
4d42fa4dab feat: Adds brew-update function 2024-12-25 16:02:39 -05:00
f23adad4b0 feat: Disables blink.cmp 2024-12-23 08:46:59 -05:00
44f5c35d38 feat: Luasnip working with blink.cmp 2024-12-21 20:10:28 -05:00
25ddde6e12 feat: Updates todo comments. 2024-12-20 22:16:04 -05:00
4a023203bd feat: Adds filetype to xcodebuild.nvim plugin for lazy loading 2024-12-20 10:01:24 -05:00
5f07ffede9 fix: Fixes luasnip not loading custom snippets. 2024-12-20 09:55:53 -05:00
6cdf85b4e3 feat: Reworking nvim configuration 2024-12-20 09:48:54 -05:00
876e7f6d0e feat: Rearranges nvim configuration 2024-12-20 08:13:43 -05:00
b78fb64bd3 feat: Rearranges nvim configuration 2024-12-20 08:10:53 -05:00
ee7854eafc feat: Playing around with lazy-nvim and reworking my nvim config 2024-12-19 22:40:55 -05:00
ef961fcfa8 feat: Initial lazy nvim 2024-12-19 17:59:15 -05:00
6d44edc94d feat: Trying blink.cmp for completions, luasnips not playing nicely yet. 2024-12-19 17:20:06 -05:00
381d272da1 feat: Updates nvim scroll-off setting 2024-12-19 11:24:34 -05:00
38e77e8fcd feat: Trying blink.cmp for completions. 2024-12-19 11:20:54 -05:00
2a5c2cdc58 feat: Updates wezterm fps 2024-12-19 11:02:03 -05:00
0949f9e9fa feat: Adds local completions to zsh fpath 2024-12-17 14:21:49 -05:00
2c7bd9123f feat: Adds go to references to lsp config 2024-12-17 08:28:41 -05:00
f325d61131 feat: Updates tmux-sessionator to also open yazi in a 3rd window. 2024-12-15 19:24:48 -05:00
ae13738a4d feat: Updates tmux-sessionator to also create session properly when tmux isn't running. 2024-12-15 19:16:40 -05:00
6c84428179 feat: Updates nvim, fidget and removes neo-dev. 2024-12-15 18:52:28 -05:00
d27f2ad490 feat: LSP updates 2024-12-11 18:07:18 -05:00
ea7033bea8 feat: Adds yazi configuration to show hidden files and symlinks. 2024-12-09 12:27:09 -05:00
a835414bd1 feat: adds yazi config 2024-12-04 07:56:45 -05:00
82341d87df feat: Updates tmux-sessionator to accept a directory option and updates tns function to use that option. 2024-12-03 08:56:56 -05:00
9e48ba0a77 feat: Updates tmux-sessionator how it spawns the editor window so it doesn't kill the pane on exit. 2024-12-03 08:21:00 -05:00
3518ba059f feat: adds swift aliases. 2024-12-02 15:52:31 -05:00
c8e869c853 feat: Updates to zshrc and ansible config. 2024-12-02 08:19:59 -05:00
b1633707c2 feat: Updates to zsh env 2024-11-27 14:42:03 -05:00
5f45954d98 feat: Renames vault-gopass to vault-gopass-client 2024-11-27 10:03:41 -05:00
4fb2b70004 fix: Fixes ansible config and environment variables to utilize the vault-gopass-client file 2024-11-27 10:02:12 -05:00
a86116056f feat: Edits ansible config to use the vault-gopass script 2024-11-27 08:54:38 -05:00
f43cd2c543 feat: Finishes vault-gopass script 2024-11-27 08:47:45 -05:00
48d0e16f6a feat: Begins vault-gopass script 2024-11-27 07:53:26 -05:00
27d66acb6e feat: Adds tks alias to kill tmux session. 2024-11-26 18:16:44 -05:00
af77a986e2 feat: Adds moving to next and previous tmux windows using Alt-h or Alt-l 2024-11-25 09:16:07 -05:00
1dd7460ac4 feat: Adds <c-v> key binding to oil.nvim, also new spelling words 2024-11-24 21:29:15 -05:00
3badd6a046 fix: Fixes filetype plugins for nvim. 2024-11-23 15:26:33 -05:00
0a9e065b4d fix: Fixes some keymap collisions in nvim 2024-11-23 08:26:26 -05:00
8ac60b4196 feat: Adds note about keeping nvim settings at top of init.lua 2024-11-22 12:43:29 -05:00
7f26013d1c feat: Remove colliding keymaps between trouble.nvim and todo-comments.nvim, needs attention in the future 2024-11-22 12:08:11 -05:00
42cef6e0c4 feat: Adds more todo keymaps. 2024-11-22 12:02:10 -05:00
241c43767c feat: Update nvim-cmp and nvim spell 2024-11-22 09:06:16 -05:00
4b39a3eb95 feat: Adds highlight when yank in nvim config. 2024-11-21 22:40:48 -05:00
1e427911ac feat: Updates nvim-cmp 2024-11-21 21:21:28 -05:00
0c15983dae fix: tmux config 2024-11-21 19:45:14 -05:00
68d3f5a183 feat: Removes toggle terminal keymap that conflicts with trouble 2024-11-20 22:50:00 -05:00
d9ea8d80c6 fix: Fix merge conflicts 2024-11-20 22:07:02 -05:00
eed9c143ea feat: Updates zsh tns (tmux new session) function 2024-11-20 08:18:35 -05:00
d06648864e feat: Updates zsh config 2024-11-20 08:07:12 -05:00
9bb33cfaee feat: cleans up tmux config and updates to tmux-sessionator 2024-11-19 09:16:32 -05:00
917ac3ff2a feat: Updates to tmux config 2024-11-18 22:55:15 -05:00
23bd867430 feat: nvim config updates 2024-11-18 17:16:17 -05:00
2e3c750979 feat: Updates to nvim config and snippets 2024-11-18 08:33:38 -05:00
eff01f42fd feat: Working on snippets for nvim 2024-11-17 14:52:30 -05:00
8a17c5ad80 feat: Adds oil.nvim and removes neo-tree 2024-11-17 09:00:59 -05:00
d8891e40fc feat: More nvim plugins and changes, better xcodebuild experience. 2024-11-16 23:43:40 -05:00
f6f45a8c58 feat: Updates plugins for nvim 2024-11-16 11:38:43 -05:00
3b75e6e918 feat: Adds xcodebuild nvim plugin 2024-11-16 01:56:14 -05:00
2813d5b56d feat: Adds xcodebuild nvim plugin 2024-11-16 01:47:09 -05:00
b3476a4af2 feat: Updates git config 2024-11-14 17:52:30 -05:00
49524fef66 feat: Updates to nvim config and git config 2024-11-14 16:26:35 -05:00
15eedbfd1e feat: Updates to nvim config 2024-11-13 10:29:40 -05:00
365baec18a feat: Adds more keymaps to harpoon nvim config 2024-11-11 10:45:50 -05:00
051a418d0b fix: Fixes moving lines up and down in nvim keymaps 2024-11-10 11:25:22 -05:00
f7484147f7 feat: Adds harpoon to nvim 2024-11-10 09:39:09 -05:00
2334f33cdb feat: Cleanup some nvim config 2024-11-07 21:44:00 -05:00
33c011067f feat: Adds nvim-lint configuration and swiftformat 2024-11-07 17:11:05 -05:00
2d687e8c61 feat: Updates command timeout in starship configuration 2024-11-07 10:07:16 -05:00
377f5849f7 feat: Adds hvac-iot repos variables 2024-11-07 10:03:08 -05:00
37d8e4c678 feat: Updates tmux-sessionator path to use nas 2024-11-07 09:58:21 -05:00
edf62341df feat: Updates nvim lsp config 2024-11-06 18:01:34 -05:00
9f9854e9d5 feat: Begins fixes for lsp errors in nvim config 2024-11-06 17:08:26 -05:00
ef45abdd16 feat: Updates ssh config 2024-11-06 09:10:58 -05:00
23c4afabbc feat: Updates gopass config 2024-10-30 13:20:48 -04:00
329589612b feat: Fixes ssh config encryption 2024-10-21 16:35:07 -04:00
87b901f6c0 feat: Updates todos 2024-09-23 09:13:41 -04:00
c0c5e92184 feat: Update tmux config fixes catppucin warning 2024-09-23 08:44:48 -04:00
728c77a2d2 feat: Update nvim config for ts_ls name 2024-09-23 08:42:18 -04:00
319a63ddcc Updates ssh config 2024-06-14 09:55:37 -04:00
6a6c6ace8a Updates git credential helper. 2024-06-14 08:32:51 -04:00
4dbd2864c1 feat: Adds fzf-tab plugin 2024-05-16 18:50:24 -04:00
7b75cca4d7 feat: Adds fzf to shell searches / history 2024-05-16 18:43:38 -04:00
be1ab62d8f feat: Adds fzf to shell searches / history 2024-05-16 18:36:49 -04:00
a379a9ce60 Fix background colors on prompt when ssh 2024-04-24 21:04:52 -04:00
3c172a4597 Adds hostname to zsh prompt when ssh 2024-04-24 20:55:57 -04:00
3f91ec849d Adds karabiner 2024-04-17 21:57:16 -04:00
326ce37b02 Fixes some lsp / cmp errors in nvim 2024-04-15 16:58:44 -04:00
54b6377407 Adds gopass config 2024-04-13 19:10:16 -04:00
61258c8a32 Adds raycast config export from my macbook-pro 2024-04-13 18:32:57 -04:00
ffcb53f6e2 Update .zshenv to source local env if it exists 2024-04-08 21:42:21 -04:00
9c6d5a1e91 Fixes broken tmux-sessionator-path on mymini 2024-04-08 10:13:38 -04:00
a344d29ca4 Updates starship config 2024-04-08 09:38:36 -04:00
a70e1a70b4 Updates colors in starship config 2024-04-07 16:24:07 -04:00
53bad22017 Adds starship configuration 2024-04-07 16:17:38 -04:00
8a9a378f18 Updates to nvim to harden for gopass 2024-04-07 00:07:45 -04:00
65e8de5b75 Adds raycast pass-attribute script 2024-04-06 12:43:37 -04:00
b860ff8858 Adds raycast scripts directory and pass-copy command. 2024-04-06 11:03:50 -04:00
6e33524859 Failed with auto-commit launchd service because gpg signing 2024-04-05 15:39:51 -04:00
6599d90e39 Fixes some errors since moving xdg_data_home 2024-04-05 13:02:06 -04:00
6158763985 Fixes XDG_DATA_HOME directory 2024-04-05 12:37:57 -04:00
9b8e30bde3 Adds pgc alias to get an attribute of a password file and copy to clipboard 2024-04-05 12:15:05 -04:00
094a77c22e Adds pass word store aliases to zshrc 2024-04-05 09:47:20 -04:00
91e05a1345 Enables password store extensions 2024-04-04 12:20:55 -04:00
d9445d4e89 Adds gpg-tty to fix broken prompt for password 2024-04-02 22:15:50 -04:00
87594a5d96 Adds gpg-tui config 2024-04-02 22:14:39 -04:00
6759e4e85b Fixes typo in git config 2024-04-01 18:02:59 -04:00
712b209c86 Adds gpg signing to git config 2024-04-01 18:02:04 -04:00
19fbce7dd1 Adds pass word store generated length 2024-04-01 16:37:56 -04:00
48b4278ae9 Adds pass word store directory environment variable 2024-04-01 16:35:00 -04:00
47930ad6da updates tmux config. 2024-03-30 23:02:45 -04:00
a9d76c5107 Updates neovim 2024-03-30 22:51:11 -04:00
c4da654111 Updates ssh config 2024-03-27 12:58:10 -04:00
557da77caf adds edit-ssh-config function 2024-03-27 08:56:03 -04:00
01a7c4845f Adds edit-ssh-config function 2024-03-26 14:32:09 -04:00
1ae41a0fac Adds update dots script and fixes some typos 2024-03-26 14:27:01 -04:00
a696e4e658 Updates frankenMini ssh key 2024-03-26 14:16:18 -04:00
6527ad88df Updates frankenMini ip-address 2024-03-26 14:09:10 -04:00
cbf26b10e7 Adds some zsh aliases 2024-03-26 07:54:49 -04:00
a9d7f24d24 Removes lazy-lock from being tracked 2024-03-25 08:06:51 -04:00
2d39db3401 Adds tka alias to quickly kill tmux server and all it's sessions 2024-03-24 17:19:52 -04:00
1e26df8ef0 Adds cda to cd into local ansible directory 2024-03-24 17:05:48 -04:00
d653110ec2 Adds ANSIBLE_LOCAL environment variable 2024-03-24 17:02:27 -04:00
128dd695b9 Adds SITES environment variable 2024-03-24 17:00:36 -04:00
a2558e0296 Adds comments and new aliases to zshrc 2024-03-24 16:56:04 -04:00
19285a539d adds: gen alias and env exports, removes some unused scripts 2024-03-24 11:17:47 -04:00
6c0eda81d5 Adds tns shell function, to start a new tmux session in current or supplied directory. 2024-03-23 21:48:02 -04:00
842bf84c25 Adds tns shell function 2024-03-23 21:47:32 -04:00
f6bad2b0f5 Updates ssh config 2024-03-23 18:57:25 -04:00
47ea7ba28a Adds vault files to be copied to clients 2024-03-23 12:25:40 -04:00
54408de2cf nvim settings updates 2024-03-23 10:50:28 -04:00
a2e6d3e825 Updates to look for additional local environment variables 2024-03-23 08:55:07 -04:00
090b0fb2f3 Updates to look for additional local environment variables 2024-03-23 01:11:52 -04:00
2bab3d516c Rename local env file stored in xdg_data_home 2024-03-23 00:48:42 -04:00
9ef283fda1 Adds lookup for a zsh env file in xdg_data_home, for local configuration options. 2024-03-22 23:26:06 -04:00
881905f203 Updates to wezterm config and removes lazy-lock.json 2024-03-22 16:40:38 -04:00
55be390f7f updates permissions on files 2024-03-21 10:45:12 -04:00
3763775bb6 updates nvim packages and ignores certain ansible directories 2024-03-21 10:43:30 -04:00
b61004554a Updates tmux-sessionator script to use an environment variable for path lookups 2024-03-20 23:18:43 -04:00
0f8e56394d removes lua-snip 2024-03-20 19:19:05 -04:00
2434fb52e2 trying catppuccin color scheme in wezterm 2024-03-20 18:21:26 -04:00
cd8808ab74 removes lua-snip 2024-03-20 18:09:15 -04:00
fb235ab19d removes lua-snip 2024-03-20 18:03:05 -04:00
1db62e3457 trying catppuccin color scheme 2024-03-20 17:54:12 -04:00
411f660cbb updates nvim lock file 2024-03-20 17:47:36 -04:00
5572c8f0e3 fixed nvim back to original, problem was in my ansible playbook 2024-03-20 16:56:19 -04:00
d258f14376 adds: bootstrap for lazy 2024-03-20 16:15:33 -04:00
7660587a33 fixes permissions on zshenv file 2024-03-20 14:55:51 -04:00
aafdef33e3 adds: ansible configuration 2024-03-20 12:11:07 -04:00
bcd9742b37 Fixed broken permissions 2024-03-20 10:56:52 -04:00
c0714cb010 adds: tmux-yank plugin 2024-03-19 22:54:11 -04:00
8e20f20b4f update: uses catppuccin for tmux status bar 2024-03-19 22:35:45 -04:00
eae33a6705 adds: Ansible repos to autocd path and tmux-sessionator 2024-03-19 11:07:05 -04:00
17bc6ef41b adds: option to ingnore commands that start with a space to be ignored in shell history 2024-03-17 14:14:16 -04:00
9a05bd20d8 adds: yabai and skhd, need to implement linking to proper locations 2024-03-16 14:53:12 -04:00
bc342d28c8 moves tmux status bar to top 2023-11-07 21:11:07 -05:00
148916909a adds mkhpadir script 2023-11-07 10:18:33 -05:00
f362789006 Adds shortdate function 2023-11-07 09:03:43 -05:00
367cae9748 Updated newx script to show usage 2023-11-07 08:47:12 -05:00
8e46610a7b updated nvim autocmd 2023-11-07 08:16:03 -05:00
ff870c0f1b Commit to pull 2023-10-28 09:17:03 -04:00
d34059c34d feat: adds autocmd for sourcekit-lsp, which stopped working for some reason 2023-10-25 16:11:45 -04:00
016e4d459f fixes: typo in swift plugin 2023-10-22 14:07:05 -04:00
cead1bc85e feat: adds hnc alias 2023-10-17 16:29:03 -04:00
c296a1492f feat: adds hn alias 2023-10-17 16:21:07 -04:00
892966d27a Adds .swiftpm to be ignored in telescope 2023-10-16 13:03:36 -04:00
b53d239cd3 Added hashicorp/vault to env 2023-10-12 12:56:59 -04:00
cd95365149 Move more items to XDG locations and set environment variables 2023-10-10 08:58:17 -04:00
ba8a64a447 Updated wezterm config 2023-10-09 22:40:47 -04:00
d15d3b406f Updated tmux config 2023-10-09 22:11:29 -04:00
9cc99ff03d Updates to zsh 2023-10-09 18:45:18 -04:00
d3a383102b Added a few git functions and fixed fpath not being set in the appropriate spot 2023-10-09 09:22:08 -04:00
c1b1381f24 Updated newx and alias, now handles creating functions and local executables 2023-10-08 19:55:13 -04:00
0f58b00f97 Cleaning up some scripts and moving to autoload functions 2023-10-08 10:26:30 -04:00
05b36efeea Adds zsh functions, needs work on moving some items 2023-10-08 01:17:11 -04:00
30ff7b7652 Updated zsh config 2023-10-07 23:08:42 -04:00
a3c3ed1d23 Updated config to clean up home directory 2023-10-07 21:55:32 -04:00
Michael Housh
0294c4e5bc Edited zshrc 2023-10-07 21:03:50 -04:00
Michael Housh
be24adf2aa Added post-to-facebook script 2023-10-06 22:46:53 -04:00
Michael Housh
2b4ecf3939 Updated mhlink script 2023-10-06 18:46:28 -04:00
Michael Housh
ce99e7dd76 Updated plugin lazy configs 2023-10-06 17:57:28 -04:00
3fcb57d090 Adds mhlink script, which still needs some work and updates to nvim config, which fixes tmux-navigator mappings 2023-10-06 17:47:32 -04:00
346ff30f4a Fixed typo in neovim mappings 2023-10-06 15:43:58 -04:00
a8e8228696 Updated neovim and noice config 2023-10-06 09:10:39 -04:00
2f6630b272 Updating keymaps 2023-10-06 07:57:05 -04:00
Michael Housh
a328615cbf Updated nvim timeout settings 2023-10-05 20:54:32 -04:00
Michael Housh
385c17811d Update timeout settings for nvim 2023-10-05 20:51:18 -04:00
92a4571bff Added not equals symbol to espanso 2023-10-05 10:52:55 -04:00
3a5adc07ad Updated tmux-sessionator 2023-10-05 09:33:44 -04:00
Michael Housh
fa02ac9889 Update tmux-sessionator, and some other configs 2023-10-04 23:11:05 -04:00
Michael Housh
e3ff780999 Added desktop script 2023-10-04 18:03:36 -04:00
64b5e4b21c Updated tmux-sessionator and added some espanso symbols 2023-10-04 17:02:38 -04:00
00749e3be7 Some updates to wezterm and nvim theme 2023-10-04 08:27:35 -04:00
Michael Housh
7690713f46 Config updates 2023-10-03 21:38:41 -04:00
Michael Housh
5927ef7fb3 Checking out some different terminals 2023-10-03 20:17:35 -04:00
e90c491a47 Updated tmux-sessionator and tmux config 2023-10-03 17:08:48 -04:00
f55eca41f0 Added nvim-tmux config 2023-10-03 10:15:57 -04:00
6cb0744e92 Updated tmux config for prefix-S to switch sessions 2023-10-03 08:34:06 -04:00
Michael Housh
5555c14327 Updates to tmux config 2023-10-03 08:00:30 -04:00
Michael Housh
353b669f27 Added tmux-sessionator and updated tmux config 2023-10-02 22:47:32 -04:00
Michael Housh
f0a5d85dea Added comment.nvim 2023-10-02 21:41:30 -04:00
f643b45432 Neovim config updates 2023-10-02 18:30:56 -04:00
427fd1d063 Added spell check to text and other formats, fixes markdown autocmd to remember cursor position 2023-10-02 12:39:10 -04:00
ca0c0b1ca0 Added spell check to markdown files 2023-10-02 08:32:44 -04:00
Michael Housh
19229a2b90 Adds snippets to nvim 2023-10-01 19:21:06 -04:00
Michael Housh
e8772df72e Adds luasnip for completions 2023-10-01 11:44:07 -04:00
Michael Housh
660ff7d94d Added go.nvim, updated ts script to accept a session argument 2023-10-01 11:28:24 -04:00
Michael Housh
7c5c642ae5 Added noice.nvim 2023-09-30 11:01:54 -04:00
Michael Housh
742f26a81c Added cdots script.
Added cdots script, instead of alias. Now toggles or starts a
tmux session.
2023-09-30 00:20:18 -04:00
Michael Housh
7f13161948 Added formatting 2023-09-30 00:06:49 -04:00
Michael Housh
00c5e0cca6 Removed old git plugins. 2023-09-30 00:01:38 -04:00
Michael Housh
c930fb7e7a Added lazy git 2023-09-29 23:49:56 -04:00
be0bb66e09 Added automatic text-width for markdown 2023-09-29 12:31:59 -04:00
8d68b1033a Added formatting for markdown, to wrap lines when buffer is saved 2023-09-29 12:14:36 -04:00
4b37f8afcb Added formatter.nvim 2023-09-29 11:14:05 -04:00
Michael Housh
fcf8c83beb Moved overseer to it's own plugin file 2023-09-28 21:22:36 -04:00
Michael Housh
0e77478075 Fixed tab not working with completion, adds overseer.nvim 2023-09-28 21:05:06 -04:00
a8c4191d96 Updated mappings 2023-09-28 11:38:19 -04:00
56cfaf4360 Fixed .gitignore 2023-09-28 10:31:25 -04:00
35a5cf15c5 Re-arrange neovim config 2023-09-28 10:26:46 -04:00
3896bab4fb Re-arrange neovim config 2023-09-28 09:45:52 -04:00
Michael Housh
9acb92154a Added nap config 2023-09-27 20:51:59 -04:00
Michael Housh
e519322fb2 Updated path to include go bin. 2023-09-27 20:36:48 -04:00
aa8e3847a2 Fixed typo in ts, and updated vic script to use EDITOR 2023-09-27 10:58:28 -04:00
2de739ec68 Added ts script, to list and attach to tmux sessions 2023-09-27 10:45:30 -04:00
1d08232c52 Rename clean screenshots, nvim configuration updates 2023-09-27 09:28:27 -04:00
607f1b20b9 Fixed snippets directory in nvim setup 2023-09-26 08:29:07 -04:00
Michael Housh
cc6dd26184 Added tmux plugins 2023-09-25 23:10:40 -04:00
Michael Housh
220dddc930 Fixed merge conflicts in nvim plugin-config 2023-09-25 18:22:50 -04:00
966c050875 nvim updates 2023-09-25 16:32:30 -04:00
275baa228c Fixes .gitignore to ignore lazy-lock.json 2023-09-25 11:21:40 -04:00
Michael Housh
437b4f5002 Added swift.nvim plugin 2023-09-24 15:14:07 -04:00
Michael Housh
ab1a45d421 Added toggle-term plugin for neovim 2023-09-24 11:32:18 -04:00
Michael Housh
663673dfd3 Added toggle-term plugin for neovim 2023-09-23 23:58:42 -04:00
Michael Housh
7673963158 Added toggle-term plugin for neovim 2023-09-23 23:58:32 -04:00
Michael Housh
433c6cf59f Added swift specific neovim configs 2023-09-23 22:40:47 -04:00
Michael Housh
8d396ff46f Moved things around with nvim to allow multiple configurations, with nvims command 2023-09-23 20:39:33 -04:00
6204b5f7b3 Added mktrans to scripts 2023-09-21 09:32:58 -04:00
26f78217f7 Updated neo-tree config 2023-09-21 09:14:58 -04:00
42827b7154 Added file watcher to neo-tree 2023-09-20 08:04:36 -04:00
e3dd7a80f6 Adds some more parsers to treesitter 2023-09-19 08:25:43 -04:00
Michael Housh
5cbb1affd5 Allow hidden files to be shown in neo-git configuration 2023-09-18 22:35:40 -04:00
284 changed files with 13590 additions and 3816 deletions

12
.gitignore vendored
View File

@@ -1,7 +1,5 @@
**/.DS_Store
**/Brewfile.lock.json
**/plugins
**/plugin
**/.zcompdump*
**/.zcompdump
**/.zcompcache
@@ -11,4 +9,12 @@
**/completions/*
**/.netrwhist
**/.zshrc-local
nvim/lazy-lock.json
facebook-bot/config/*
facebook-bot/config/*
**/tmp
ansible/tmp/*
ansible/collections/*
ansible/galaxy_cache/*
ansible/galaxy_token
**/lazy-lock.json
**/*.target.wants/*

6
.gitmodules vendored Normal file
View 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

82
.luarc.json Normal file
View File

@@ -0,0 +1,82 @@
{
"workspace.library": [
"/Users/michael/.local/share/m-housh/lazy/neodev.nvim/types/stable",
"/opt/homebrew/Cellar/neovim/0.9.2/share/nvim/runtime/lua",
"/Users/michael/.local/share/m-housh/lazy/bufdelete.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/diffview.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/lsp_signature.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/neo-tree.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/neodev.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/telescope-fzf-native.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/nvim-lspconfig/lua",
"/Users/michael/.local/share/m-housh/lazy/nvim-cmp/lua",
"/Users/michael/.local/share/m-housh/lazy/nvim-treesitter-textobjects/lua",
"/Users/michael/.local/share/m-housh/lazy/nui.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/nightfox.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/cmp-buffer/lua",
"/Users/michael/.local/share/m-housh/lazy/cmp-path/lua",
"/Users/michael/.local/share/m-housh/lazy/nvim-treesitter/lua",
"/Users/michael/.local/share/m-housh/lazy/nvim-lsp-installer/lua",
"/Users/michael/.local/share/m-housh/lazy/cmp-cmdline/lua",
"/Users/michael/.local/share/m-housh/lazy/lazy.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/cmp-spell/lua",
"/Users/michael/.local/share/m-housh/lazy/wrapping.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/cmp-calc/lua",
"/Users/michael/.local/share/m-housh/lazy/which-key.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/mason-lspconfig.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/formatter.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/cmp-nvim-lsp/lua",
"/Users/michael/.local/share/m-housh/lazy/cmp-emoji/lua",
"/Users/michael/.local/share/m-housh/lazy/nvim-web-devicons/lua",
"/Users/michael/.local/share/m-housh/lazy/plenary.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/neogit/lua",
"/Users/michael/.local/share/m-housh/lazy/overseer.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/lualine.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/mason.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/telescope.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/lspkind-nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/swift.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/toggleterm.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/neodev.nvim/types/stable",
"/opt/homebrew/Cellar/neovim/0.9.2/share/nvim/runtime/lua",
"/Users/michael/.local/share/m-housh/lazy/bufdelete.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/diffview.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/lsp_signature.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/neo-tree.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/neodev.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/telescope-fzf-native.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/nvim-lspconfig/lua",
"/Users/michael/.local/share/m-housh/lazy/nvim-cmp/lua",
"/Users/michael/.local/share/m-housh/lazy/nvim-treesitter-textobjects/lua",
"/Users/michael/.local/share/m-housh/lazy/nui.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/nightfox.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/cmp-buffer/lua",
"/Users/michael/.local/share/m-housh/lazy/cmp-path/lua",
"/Users/michael/.local/share/m-housh/lazy/nvim-treesitter/lua",
"/Users/michael/.local/share/m-housh/lazy/nvim-lsp-installer/lua",
"/Users/michael/.local/share/m-housh/lazy/cmp-cmdline/lua",
"/Users/michael/.local/share/m-housh/lazy/lazy.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/cmp-spell/lua",
"/Users/michael/.local/share/m-housh/lazy/wrapping.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/cmp-calc/lua",
"/Users/michael/.local/share/m-housh/lazy/which-key.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/mason-lspconfig.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/formatter.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/cmp-nvim-lsp/lua",
"/Users/michael/.local/share/m-housh/lazy/cmp-emoji/lua",
"/Users/michael/.local/share/m-housh/lazy/nvim-web-devicons/lua",
"/Users/michael/.local/share/m-housh/lazy/plenary.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/neogit/lua",
"/Users/michael/.local/share/m-housh/lazy/overseer.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/lualine.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/mason.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/telescope.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/lspkind-nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/swift.nvim/lua",
"/Users/michael/.local/share/m-housh/lazy/toggleterm.nvim/lua",
"/Users/michael/.dotfiles/nvim/m-housh/lua",
"/Users/michael/.dotfiles/nvim/m-housh/lua",
"${3rd}/luv/library",
"${3rd}/luassert/library"
]
}

3
.markdownlint.jsonc Normal file
View File

@@ -0,0 +1,3 @@
{
"MD013": { "code_blocks": false }
}

4
.prettierrc Normal file
View File

@@ -0,0 +1,4 @@
{
"proseWrap": "always"
"printWidth": 100
}

View File

@@ -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

View File

@@ -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.

59
TODO.md
View File

@@ -1,4 +1,59 @@
# TODO
- Remove brewfiles and use the `dots` app instead.
- Add helix to `dots` app.
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.

30
bootstrap Executable file
View 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
View 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
View 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
View 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
View 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
View 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"
}

View File

@@ -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/

View File

@@ -12,5 +12,6 @@ imports:
- "./email.yml"
- "./housecallpro.yml"
- "./links.yml"
- './symbols.yml'

View File

@@ -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"

View File

@@ -0,0 +1,14 @@
## Actually All Emojis
An up-to-date package for [espanso](https://espanso.org/) which provides triggers for all emojis (`v14.0`). Emojis and codes fetched from [Unicode.org](https://unicode.org/emoji/charts/full-emoji-list.html)
### Usage
To use this package, just type the name of the emoji between two colons. For example, to use the `smile` emoji 😄, you can type: `:smile:`
A full list of emojis and their CLDR Short Names can be found [here](https://unicode.org/emoji/charts/full-emoji-list.html)
**Note**: There are two options for this package. One with spaces between words, and one with underscores. This version uses _spaces_
For example `:kissing face:`
To install the version with underscores use `actually-all-emojis`

View File

@@ -0,0 +1,7 @@
author: Jobie Wong
description: An updated package providing all v.14 emojis - fetched from unicode.org
name: actually-all-emojis-spaces
title: Actually All Emojis (Spaces)
version: 0.1.0
homepage: "https://github.com/jobiewong/espanso-emojis"
tags: ["emoji", "chat"]

View File

@@ -0,0 +1,2 @@
---
hub

File diff suppressed because it is too large Load Diff

9
env/.config/espanso/match/symbols.yml vendored Normal file
View File

@@ -0,0 +1,9 @@
matches:
- trigger: ':deg:'
replace: '°'
- trigger: ':cmd:'
replace: '⌘'
- trigger: ':shift:'
replace: '⇧'
- trigger: ':noteq:'
replace: '≠'

104
env/.config/eza/theme.yml vendored Normal file
View 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
View 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
View 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
View 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
View 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
View 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
View 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
View 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
View 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
View 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
View File

@@ -0,0 +1,2 @@
desktop_launch_prefix = uwsm app --

109
env/.config/hypr/hyprlock.conf vendored Normal file
View 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
View 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
View 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
View 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
View 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 windows 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
View 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
View 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
View 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
)

5
env/.config/npm/npmrc vendored Normal file
View File

@@ -0,0 +1,5 @@
# Needs linked to ~/.config/npm/npmrc
prefix=${XDG_DATA_HOME}/npm
cache=${XDG_CACHE_HOME}/npm
init-module=${XDG_CONFIG_HOME}/npm/config/npm-init.js

1
env/.config/nvim vendored Submodule

Submodule env/.config/nvim added at da24092050

7
env/.config/ripgrep/ripgreprc vendored Normal file
View 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
View 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)'

View 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

View 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

View 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

View 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

View 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
View 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
View 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
View 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
View 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
View 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" }
]
# : }}}

View 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
View File

@@ -0,0 +1,3 @@
[mgr]
show_hidden = true
show_symlink = true

View File

@@ -0,0 +1,3 @@
[manager]
show_hidden = true
show_symlink = true

245
env/.config/zsh/.zshrc vendored Executable file
View File

@@ -0,0 +1,245 @@
#!/usr/bin/env zsh
# _
# _______| |__ _ __ ___
# |_ / __| '_ \| '__/ __|
# / /\__ \ | | | | | (__
# /___|___/_| |_|_| \___|
#
#
#------------------------------ utilites ------------------------------
_source_if() { test -r "$1" && source "$1" || return 0 }
#------------------------------ exports ------------------------------
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
#------------------------------ path ------------------------------
# Helper function to prepend to the $PATH
path_prepend() {
declare arg
for arg in "$@"; do
test -d "$arg" || continue
PATH=${PATH//:"$arg:"/:}
PATH=${PATH/#"$arg:"/}
PATH=${PATH/%":$arg"/}
export PATH="$arg${PATH:+":$PATH"}"
done
} && export path_prepend
# Helper function to prepend to the $FPATH
fpath_prepend() {
declare arg
for arg in "$@"; do
test -d "$arg" || continue
FPATH=${FPATH//:"$arg:"/:}
FPATH=${FPATH/#"$arg:"/}
FPATH=${FPATH/%":$arg"/}
export FPATH="$arg${FPATH:+":$FPATH"}"
done
} && export fpath_prepend
# last arg will be first in $PATH
path_prepend \
"/usr/local/bin" \
"$HOME/.local/share/gem/bin" \
"$GOROOT/bin" \
"$GOPATH/bin" \
"$XDG_DATA_HOME/bin" \
"$XDG_DATA_HOME/npm/bin" \
"$HOME/.local/bin" \
"$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 \
"$ZDOTDIR/completions" \
"$HOME/.local/share/zsh/completions" \
"$HOME/.zsh/completions" \
"$ZDOTDIR/functions"
autoload -Uz $fpath[1]/*(.:t)
#------------------------------ history ------------------------------
setopt appendhistory # append to history
setopt sharehistory # share history across multiple sessions
setopt incappendhistory # adds commands as typed, not at shell exit
setopt hist_expire_dups_first # expire duplicates first
setopt hist_ignore_dups # do not store duplicates
setopt hist_find_no_dups # ignore duplicates when searching
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=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=".:$REPOS:$REPOS/ansible:$DOTFILES:$LOCAL_REPOS:$BUCKET:$HOME"
#------------------------------ options ------------------------------
# (see `man zshoptions`)
setopt chaselinks
setopt extended_glob
setopt glob_dots
setopt glob_star_short
setopt clobber
setopt interactive_comments
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.
# Load Useful Functions
_source_if "${ZDOTDIR}/zsh-functions"
# Plugins
zsh_add_plugin "zsh-users/zsh-autosuggestions"
zsh_add_plugin "zsh-users/zsh-syntax-highlighting"
zsh_add_plugin "Aloxaf/fzf-tab"
#------------------------------ completions ------------------------------
# case insensitive path-completion
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
# partial completion suggestions
zstyle ':completion:*' list-suffixes
#zstyle ':completion:*' expand prefix suffix
zstyle ':completion:*' menu no
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath'
autoload -Uz compinit; compinit # zstyle(s) should be added before this.
zmodload zsh/complist
_comp_options+=(globdots) # Include hidden files.
autoload bashcompinit && bashcompinit
[[ -r "$PASSWORD_STORE_DIR/.extensions/completions/extensions.bash.completion" ]] && \
source "$PASSWORD_STORE_DIR/.extensions/completions/extensions.bash.completion"
_source_if "$ZDOTDIR/plugins/fzf-tab/fzf-tab.plugin.zsh"
#------------------------------ prompt ------------------------------
autoload -Uz promptinit; promptinit
eval "$(starship init zsh)"
#------------------------------ aliases ------------------------------
alias bk='cd "${OLDPWD}"' # change to last directory
alias cda='cd "$ANSIBLE_LOCAL"' # change into local ansible directory.
alias cl='printf "\e[H\e[2J"' # clear the terminal
alias clear='printf "\e[H\e[2J"' # clear the terminal
alias czets='cd "${ZETDIR}"' # move into zettlekasten notes
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 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 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='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 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 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 ------------------------------
# TODO: The .zshrc-local is a legacy location and should be removed once my machines are
# use the new location in XDG_DATA_HOME.
# HACK: These need to stay here, otherwise environment overrides do not work properly
# 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
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env zsh
function brew-update() {
brew update && brew upgrade --greedy && brew cleanup
}

6
env/.config/zsh/functions/cdots vendored Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env zsh
function cdots() {
"$SCRIPTS/tmux-sessionator" "$DOTFILES"
}

8
env/.config/zsh/functions/chmox vendored Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/zsh
# makes files executable
function chmox() {
[ ! -f "$1" ] && echo "usage: chmox <file>" && return 1
chmod u+x "$1"
}

7
env/.config/zsh/functions/clean-screenshots vendored Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/zsh
function clean-screenshots() {
for file in "$SCREENSHOTS"/*; do
rm "$file"
done
}

23
env/.config/zsh/functions/desktop vendored Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/zsh
function desktop() {
declare hide
declare show
zparseopts -D -E -K -- \
{h,-hide}=hide \
{s,-show}=show
if [ -n "$hide" ]; then
defaults write com.apple.finder CreateDesktop false && killall Finder
return 0
fi
if [ -n "$show" ]; then
defaults write com.apple.finder CreateDesktop true && killall Finder
return 0
fi
echo "Please pass in --hide | --show"
return 1
}

16
env/.config/zsh/functions/dmg vendored Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/zsh
# Creates an encrypted disk image from a folder
function dmg() {
from="$1"
to="$2"
if [ -z "$1" ] || [ -z "$2" ]; then
echo "Usage: dmg <fromdir> <todir>"
echo ""
return 1
fi
name="$(isosec).dmg"
hdiutil create -encryption AES-256 -srcfolder "$from" "$to/$name"
}

12
env/.config/zsh/functions/dp vendored Executable file
View 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"
}

5
env/.config/zsh/functions/edit-ssh-config vendored Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/zsh
function edit-ssh-config() {
ansible-vault edit "$DOTFILES/ssh/config"
}

7
env/.config/zsh/functions/find-latest vendored Executable file
View 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)"
}

8
env/.config/zsh/functions/gl vendored Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/zsh
# Prettier git log
function gl() {
git log --graph \
--pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' \
--abbrev-commit
}

11
env/.config/zsh/functions/gma vendored Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/zsh
# Add all and commit to git.
function gma() {
[ -z "$1" ] \
&& echo "usage: gma <commit-message>" \
&& return 1
git add . && git commit -m "$1"
}

5
env/.config/zsh/functions/gpgreset vendored Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/zsh
function gpgreset() {
gpgconf --kill all && gpgconf --launch all
}

12
env/.config/zsh/functions/mkcd vendored Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env zsh
# Creates a directory then `cd`'s into the directory
function mkcd() {
dir=$1
if [ -z "$dir" ]; then
echo "usage: mkcd <dir>" && return 1
fi
mkdir "$dir"
cd "$dir"
}

13
env/.config/zsh/functions/new-proposal vendored Executable file
View 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"

7
env/.config/zsh/functions/shortdate vendored Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/zsh
# Formats the date as '23.10.12'.
function shortdate() {
echo "$(date '+%Y.%m.%d' | cut -c3-)"
}

17
env/.config/zsh/functions/tns vendored Executable file
View 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/.config/zsh/functions/update-dots vendored Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/zsh
function update-dots() {
find "$ANSIBLE_MACOS_PLAYBOOK_DIR" -type f -maxdepth 1 -mindepth 1 -name justfile \
| xargs -I {} just --justfile {} run-playbook --tags dotfiles "$@"
}

19
env/.config/zsh/functions/vic vendored Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/zsh
function vic() {
# opens a shell command in $EDITOR
cmd="$(command -v $1)"
[ -f "$cmd" ] \
&& "$EDITOR" "$cmd" \
&& return 0
# if command was not found try the function directory.
cmd="$ZFUNCDIR/$1"
[ -f "$cmd" ] \
&& "$EDITOR" "$cmd" \
&& return 0
echo "Command not found: $1"
return 1
}

0
zsh/config/zsh-functions → env/.config/zsh/zsh-functions vendored Normal file → Executable file
View File

6
env/.gnupg/gpg-agent.conf vendored Normal file
View 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
View 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
View File

@@ -0,0 +1 @@
disable-ccid

47
env/.local/scripts/aap vendored Executable file
View 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
View 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
View 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
View 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
View 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
View 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
View 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
View 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