mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-04-27 06:19:11 +00:00
Compare commits
5 Commits
09ec4cfe53
...
345293c64e
Author | SHA1 | Date | |
---|---|---|---|
345293c64e | |||
ede5b1f8b0 | |||
7c3707343d | |||
78efab2b19 | |||
7f81615b0a |
@ -1,17 +1,32 @@
|
||||
#!/usr/bin/env nu
|
||||
|
||||
# This script also accepts several environment variables overriding the default
|
||||
# arguments in each of the subcommand.
|
||||
#
|
||||
# * FDS_PASSSUITE_PASSPHRASE_ARGS for passphrase generation.
|
||||
# * FDS_PASSSUITE_PASSWORD_ARGS for password generation.
|
||||
# * FDS_PASSSUITE_DICEWARE_ARGS for username generation.
|
||||
|
||||
# Generate a passphrase.
|
||||
def "main passphrase" --wrapped [
|
||||
...rest: string # Additional arguments to be added to the passphrase generation command.
|
||||
] {
|
||||
gopass pwgen --xkcd --lang en --one-per-line --xkcdnumbers --xkcdcapitalize ...$rest | head -n1
|
||||
with-env {
|
||||
FDS_PASSSUITE_PASSPHRASE_ARGS: ($env.FDS_PASSSUITE_PASSPHRASE_ARGS? | default [ --xkcd --lang en --one-per-line --xkcdnumbers --xkcdcapitalize ])
|
||||
} {
|
||||
gopass pwgen ...$env.FDS_PASSSUITE_PASSPHRASE_ARGS ...$rest | head -n1
|
||||
}
|
||||
}
|
||||
|
||||
# Generate a password.
|
||||
def "main password" --wrapped [
|
||||
...rest # Additional arguments to be added to the password generation command.
|
||||
] {
|
||||
gopass pwgen --symbols --one-per-line ...$rest | head -n1
|
||||
with-env {
|
||||
FDS_PASSSUITE_PASSWORD_ARGS: ($env.FDS_PASSSUITE_PASSWORD_ARGS? | default [ --symbols --one-per-line ])
|
||||
} {
|
||||
gopass pwgen ...$env.FDS_PASSSUITE_PASSWORD_ARGS ...$rest | head -n1
|
||||
}
|
||||
}
|
||||
|
||||
# Generate a randomly-generated base64-encoded string.
|
||||
@ -26,6 +41,17 @@ def "main encode-argon2" [
|
||||
$string | argon2 (openssl rand -base64 32) -e -id -k 65540 -t 3 -p 4
|
||||
}
|
||||
|
||||
# Generate a predictable username.
|
||||
def "main username" --wrapped [
|
||||
...rest # Additional arguments to be added to the username generation password.
|
||||
] {
|
||||
with-env {
|
||||
FDS_PASSSUITE_DICEWARE_ARGS: ($env.FDS_PASSSUITE_DICEWARE_ARGS? | default [ --specials 0 --num 3 ])
|
||||
} {
|
||||
diceware ...$env.FDS_PASSSUITE_DICEWARE_ARGS ...$rest
|
||||
}
|
||||
}
|
||||
|
||||
# A toolbelt for anything secret-related. It can be used to generate a
|
||||
# passphrase, password, and encode into several variants.
|
||||
def "main" [] {
|
||||
|
@ -3,14 +3,21 @@ image=docker.io/archlinux/archlinux:latest
|
||||
init=false
|
||||
pull=true
|
||||
root=false
|
||||
replace=true
|
||||
|
||||
[debian]
|
||||
image=docker.io/_/debian:latest
|
||||
[debian-unstable]
|
||||
image=docker.io/debian:trixie
|
||||
init=false
|
||||
pull=true
|
||||
root=false
|
||||
|
||||
[debian-stable]
|
||||
image=docker.io/debian:bookworm
|
||||
init=false
|
||||
pull=true
|
||||
root=false
|
||||
|
||||
[tumbleweed-pkg]
|
||||
image=registry.opensuse.org/opensuse/distrobox-packaging:20231225
|
||||
image=registry.opensuse.org/opensuse/distrobox-packaging:20250204
|
||||
root=true
|
||||
replace=true
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" },
|
||||
"ale": { "branch": "master", "commit": "e5d6d94f71003e4d0d3b1c77cc4e2514b415e9f9" },
|
||||
"ale": { "branch": "master", "commit": "e319d489410df7705d72708ff9e44ae730721ac8" },
|
||||
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
||||
"cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" },
|
||||
@ -11,31 +11,32 @@
|
||||
"editorconfig-vim": { "branch": "master", "commit": "91bd0b0a2c6a72a110ab9feae335e1224480c233" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" },
|
||||
"harpoon": { "branch": "master", "commit": "1bc17e3e42ea3c46b33c0bbad6a880792692a1b3" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "f15a93907ddad3d9139aea465ae18336d87f5ce6" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "e5e9bf48211a13d9ee6c1077c88327c49c1ab4a0" },
|
||||
"legendary.nvim": { "branch": "master", "commit": "f0067589b9e6de063afac707451689aa13cf6aff" },
|
||||
"lua-utils.nvim": { "branch": "main", "commit": "e565749421f4bbb5d2e85e37c3cef9d56553d8bd" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "f4f791f67e70d378a754d02da068231d2352e5bc" },
|
||||
"lush.nvim": { "branch": "main", "commit": "45a79ec4acb5af783a6a29673a999ce37f00497e" },
|
||||
"neorg": { "branch": "main", "commit": "ed43ed58116caa0a17bbbc7aa663e32bf94bc531" },
|
||||
"nui.nvim": { "branch": "main", "commit": "53e907ffe5eedebdca1cd503b00aa8692068ca46" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "12509903a5723a876abd65953109f926f4634c30" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "5a11682453ac6b13dbf32cd403da4ee9c07ef1c3" },
|
||||
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
|
||||
"nvim-dap": { "branch": "master", "commit": "52302f02fea3a490e55475de52fa4deb8af2eb11" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "6c17f8656f667727b27f5f598463afedb7791b18" },
|
||||
"nvim-dap": { "branch": "master", "commit": "6e0e8ab4d8ed520076971465a4388dfe54a91d83" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "9e932edb0af4e20880685ddb96a231669fbe8091" },
|
||||
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "6d957c22cb48a734b009a69d03c18d20042c4754" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "f2bd62c6568de54ca1b8fb0a8de04a41442934cb" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "ad8f0a472148c3e0ae9851e26a722ee4e29b1595" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "1020869742ecb191f260818234517f4a1515cfe8" },
|
||||
"oil.nvim": { "branch": "master", "commit": "5313690956d27cc6b53d5a2583df05e717c59b16" },
|
||||
"oil.nvim": { "branch": "master", "commit": "975a77cce3c8cb742bc1b3629f4328f5ca977dad" },
|
||||
"pathlib.nvim": { "branch": "main", "commit": "57e5598af6fe253761c1b48e0b59b7cd6699e2c1" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
|
||||
"smart-splits.nvim": { "branch": "master", "commit": "4a231987665d3c6e02ca88833d050e918afe3e1e" },
|
||||
"snacks.nvim": { "branch": "main", "commit": "1491b543ef1d8a0eb29a6ebc35db4fb808dcb47f" },
|
||||
"snacks.nvim": { "branch": "main", "commit": "70e7e081ee558eb3756aba02491f1bc84fb72ab0" },
|
||||
"sqlite.lua": { "branch": "master", "commit": "b487fcc8937b683942a1f7d9662fcf50ca5acd58" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "78857db9e8d819d3cc1a9a7bdc1d39d127a36495" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "589910694bafe3975d0f025a750dcabc09824126" },
|
||||
"vim-gitgutter": { "branch": "main", "commit": "7b0b5098e3e57be86bb96cfbf2b8902381eef57c" },
|
||||
"vim-just": { "branch": "main", "commit": "520f67ab70b6f687ad7e0e20111ea8f7f8cac810" },
|
||||
"vim-nix": { "branch": "master", "commit": "7235c7ce2cea530cb6b59bc3e46d4bfe917d15c8" },
|
||||
"vimspector": { "branch": "master", "commit": "5e24df822e278ee79abfc8c7110089a5322d1a3c" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "0e76a87ac51772569aec678dc74baa8e2a86100c" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" },
|
||||
"zig.vim": { "branch": "master", "commit": "f023e86b042c0d5bef68b9f0651144a6bf6d642e" }
|
||||
}
|
||||
|
@ -11,4 +11,7 @@ return {
|
||||
|
||||
-- Zig
|
||||
"ziglang/zig.vim",
|
||||
|
||||
-- Justfiles
|
||||
"NoahTheDuke/vim-just",
|
||||
}
|
||||
|
@ -90,8 +90,8 @@ function module.apply_to_config(config)
|
||||
-- More pane-related niceties.
|
||||
{ key = "f", mods = "LEADER", action = act.TogglePaneZoomState },
|
||||
{ key = "f", mods = keymod, action = act.TogglePaneZoomState },
|
||||
{ key = "n", mods = "LEADER", action = act.SplitHorizontal({ domain = "CurrentPaneDomain" }) },
|
||||
{ key = "n", mods = keymod, action = act.SplitHorizontal({ domain = "CurrentPaneDomain" }) },
|
||||
{ key = "n", mods = "LEADER", action = act.SplitPane({ direction = "Right", size = { Percent = 37 } }) },
|
||||
{ key = "n", mods = keymod, action = act.SplitPane({ direction = "Right", size = { Percent = 37 } }) },
|
||||
{ key = "n", mods = alt_keymod, action = act.SplitVertical({ domain = "CurrentPaneDomain" }) },
|
||||
{ key = "d", mods = keymod, action = act.CloseCurrentPane({ confirm = false }) },
|
||||
|
||||
|
@ -1,21 +1,37 @@
|
||||
local config = require("wezterm").config_builder()
|
||||
config:set_strict_mode(true)
|
||||
|
||||
|
||||
require("config/events").apply_to_config(config)
|
||||
require("config/base").apply_to_config(config)
|
||||
require("config/keys").apply_to_config(config)
|
||||
require("config/appearance").apply_to_config(config)
|
||||
require("config/mux_server").apply_to_config(config)
|
||||
|
||||
local smart_splits = require("wezterm").plugin.require("https://github.com/mrjones2014/smart-splits.nvim")
|
||||
smart_splits.apply_to_config(config, {
|
||||
local wezterm = require("wezterm")
|
||||
|
||||
wezterm.plugin
|
||||
.require("https://github.com/mikkasendke/sessionizer.wezterm")
|
||||
.apply_to_config(config)
|
||||
|
||||
wezterm.plugin
|
||||
.require("https://github.com/mrjones2014/smart-splits.nvim")
|
||||
.apply_to_config(config, {
|
||||
direction_keys = { 'h', 'j', 'k', 'l' },
|
||||
modifiers = {
|
||||
move = 'CTRL',
|
||||
resize = 'META',
|
||||
},
|
||||
log_level = 'info',
|
||||
})
|
||||
})
|
||||
|
||||
wezterm.plugin
|
||||
.require("https://github.com/yriveiro/wezterm-status")
|
||||
.apply_to_config(config, {
|
||||
cells = {
|
||||
battery = { enabled = true },
|
||||
date = { format = "%F %M:%h" },
|
||||
mode = { enabled = true },
|
||||
},
|
||||
})
|
||||
|
||||
return config
|
||||
|
Loading…
Reference in New Issue
Block a user