update
This commit is contained in:
parent
fb0d7779dc
commit
95b409d720
10 changed files with 70 additions and 19 deletions
|
|
@ -1,10 +0,0 @@
|
||||||
#[Desktop Entry]
|
|
||||||
#Type=Application
|
|
||||||
#Exec=swayidle -w timeout 300 'swaylock -f' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f'
|
|
||||||
#Hidden=false
|
|
||||||
#NoDisplay=false
|
|
||||||
#X-GNOME-Autostart-enabled=false
|
|
||||||
#Name[en_US]=swaylock
|
|
||||||
#Name=swaylock
|
|
||||||
#Comment[en_US]=
|
|
||||||
#Comment=
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
false
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
Terminal: "cosmic-term",
|
Terminal: "kitty",
|
||||||
}
|
}
|
||||||
|
|
@ -46,16 +46,23 @@ lspconfig.pyright.setup({
|
||||||
})
|
})
|
||||||
|
|
||||||
lspconfig.powershell_es.setup({
|
lspconfig.powershell_es.setup({
|
||||||
bundle_path = vim.fn.stdpath("data") .. "/mason/packages/powershell-editor-services",
|
bundle_path = vim.fn.stdpath("data")
|
||||||
|
.. "/mason/packages/powershell-editor-services",
|
||||||
})
|
})
|
||||||
|
|
||||||
lspconfig.bashls.setup({})
|
lspconfig.bashls.setup({})
|
||||||
|
|
||||||
omnisharp_bin = vim.fn.stdpath("data") .. "/mason/packages/omnisharp/omnisharp"
|
omnisharp_bin = vim.fn.stdpath("data")
|
||||||
|
.. "/mason/packages/omnisharp/omnisharp"
|
||||||
|
|
||||||
lspconfig.omnisharp.setup({
|
lspconfig.omnisharp.setup({
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
filetypes = { "cs" },
|
filetypes = { "cs" },
|
||||||
cmd = { omnisharp_bin, "--languageserver", "--hostPID", tostring(pid) },
|
cmd = {
|
||||||
|
omnisharp_bin,
|
||||||
|
"--languageserver",
|
||||||
|
"--hostPID",
|
||||||
|
tostring(pid),
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
local OLLAMA_TOKEN = os.getenv("OLLAMA_TOKEN")
|
local OLLAMA_TOKEN = os.getenv("OLLAMA_TOKEN")
|
||||||
local OPENAI_TOKEN = os.getenv("OPENAI_TOKEN")
|
local OPENAI_TOKEN = os.getenv("OPENAI_TOKEN")
|
||||||
local GEMINI_TOKEN = os.getenv("GEMINI_TOKEN")
|
local GEMINI_TOKEN = os.getenv("GEMINI_TOKEN")
|
||||||
|
local ANTHROPIC_TOKEN = os.getenv("ANTHROPIC_TOKEN")
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"olimorris/codecompanion.nvim",
|
"olimorris/codecompanion.nvim",
|
||||||
|
|
@ -30,6 +31,22 @@ return {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
anthropic = function()
|
||||||
|
return require("codecompanion.adapters").extend(
|
||||||
|
"anthropic",
|
||||||
|
{
|
||||||
|
name = "anthropic",
|
||||||
|
schema = {
|
||||||
|
model = {
|
||||||
|
default = "claude-3-haiku-20240307",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
env = {
|
||||||
|
api_key = ANTHROPIC_TOKEN,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
)
|
||||||
|
end,
|
||||||
openai = function()
|
openai = function()
|
||||||
return require("codecompanion.adapters").extend("openai", {
|
return require("codecompanion.adapters").extend("openai", {
|
||||||
name = "openai",
|
name = "openai",
|
||||||
|
|
|
||||||
30
.config/scripts/credentials.sh
Executable file
30
.config/scripts/credentials.sh
Executable file
|
|
@ -0,0 +1,30 @@
|
||||||
|
#!/usr/bin/zsh
|
||||||
|
source ~/.config/shell/functions.zsh
|
||||||
|
|
||||||
|
set() {
|
||||||
|
export BW_SESSION="$(bw unlock $(secret-tool lookup drive bitwarden) --raw)"
|
||||||
|
bw sync
|
||||||
|
printf "$(bw get password cli-gitlab)" | secret-tool store --label='Gitlab Token for CLI' 'token' 'GITLAB_TOKEN'
|
||||||
|
printf "$(bw get password cli-ollama-token)" | secret-tool store --label='Ollama Token for CLI' 'token' 'OLLAMA_TOKEN'
|
||||||
|
printf "$(bw get password cli-litellm-token)" | secret-tool store --label='LiteLLM Token for CLI' 'token' 'LITELLM_TOKEN'
|
||||||
|
printf "$(bw get password cli-openai)" | secret-tool store --label='OpenAI Token for CLI' 'token' 'OPENAI_TOKEN'
|
||||||
|
printf "$(bw get password GEMINI_TOKEN)" | secret-tool store --label='Gemini Token for CLI' 'token' 'GEMINI_TOKEN'
|
||||||
|
printf "$(bw get password cli-anthropic)" | secret-tool store --label='Anthropic Token for CLI' 'token' 'ANTHROPIC_TOKEN'
|
||||||
|
|
||||||
|
unset BW_SESSION
|
||||||
|
}
|
||||||
|
|
||||||
|
get() {
|
||||||
|
export GITLAB_TOKEN="$(secret-tool lookup token GITLAB_TOKEN)"
|
||||||
|
export OLLAMA_TOKEN="$(secret-tool lookup token OLLAMA_TOKEN)"
|
||||||
|
export LITELLM_TOKEN="$(secret-tool lookup token LITELLM_TOKEN)"
|
||||||
|
export OPENAI_TOKEN="$(secret-tool lookup token OPENAI_TOKEN)"
|
||||||
|
export GEMINI_TOKEN="$(secret-tool lookup token GEMINI_TOKEN)"
|
||||||
|
export ANTHROPIC_TOKEN="$(secret-tool lookup token ANTHROPIC_TOKEN)"
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
set) set ;;
|
||||||
|
get) get ;;
|
||||||
|
*) echo "Please enter an action" ;;
|
||||||
|
esac
|
||||||
|
|
@ -44,4 +44,4 @@ fi
|
||||||
|
|
||||||
ykman -d $YUBIKEY_SERIAL oath accounts code $selection -p $password | cut -d' ' -f3 | wl-copy
|
ykman -d $YUBIKEY_SERIAL oath accounts code $selection -p $password | cut -d' ' -f3 | wl-copy
|
||||||
|
|
||||||
notify-send "copied $selection to Clipboard"
|
notify-send "copied $selection to Clipboard" -t 5000
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ set-cred ()
|
||||||
printf "$(bw get password cli-litellm-token)" | secret-tool store --label='LiteLLM Token for CLI' 'token' 'LITELLM_TOKEN'
|
printf "$(bw get password cli-litellm-token)" | secret-tool store --label='LiteLLM Token for CLI' 'token' 'LITELLM_TOKEN'
|
||||||
printf "$(bw get password cli-openai)" | secret-tool store --label='OpenAI Token for CLI' 'token' 'OPENAI_TOKEN'
|
printf "$(bw get password cli-openai)" | secret-tool store --label='OpenAI Token for CLI' 'token' 'OPENAI_TOKEN'
|
||||||
printf "$(bw get password GEMINI_TOKEN)" | secret-tool store --label='Gemini Token for CLI' 'token' 'GEMINI_TOKEN'
|
printf "$(bw get password GEMINI_TOKEN)" | secret-tool store --label='Gemini Token for CLI' 'token' 'GEMINI_TOKEN'
|
||||||
|
printf "$(bw get password cli-anthropic)" | secret-tool store --label='Anthropic Token for CLI' 'token' 'ANTHROPIC_TOKEN'
|
||||||
|
|
||||||
unset BW_SESSION
|
unset BW_SESSION
|
||||||
}
|
}
|
||||||
|
|
@ -21,6 +22,7 @@ set-env ()
|
||||||
export LITELLM_TOKEN="$(secret-tool lookup token LITELLM_TOKEN)"
|
export LITELLM_TOKEN="$(secret-tool lookup token LITELLM_TOKEN)"
|
||||||
export OPENAI_TOKEN="$(secret-tool lookup token OPENAI_TOKEN)"
|
export OPENAI_TOKEN="$(secret-tool lookup token OPENAI_TOKEN)"
|
||||||
export GEMINI_TOKEN="$(secret-tool lookup token GEMINI_TOKEN)"
|
export GEMINI_TOKEN="$(secret-tool lookup token GEMINI_TOKEN)"
|
||||||
|
export ANTHROPIC_TOKEN="$(secret-tool lookup token ANTHROPIC_TOKEN)"
|
||||||
}
|
}
|
||||||
|
|
||||||
clear-env ()
|
clear-env ()
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ required_packages_brew:
|
||||||
- zsh-history-substring-search
|
- zsh-history-substring-search
|
||||||
- zsh-autosuggestions
|
- zsh-autosuggestions
|
||||||
- istioctl
|
- istioctl
|
||||||
- oven-sh/bun/bun
|
|
||||||
- pkl
|
- pkl
|
||||||
|
- tailwindcss
|
||||||
|
|
||||||
required_packages_pacman:
|
required_packages_pacman:
|
||||||
- sway
|
- sway
|
||||||
|
|
@ -142,11 +142,12 @@ required_packages_flatpak:
|
||||||
- io.gitlab.librewolf-community
|
- io.gitlab.librewolf-community
|
||||||
- org.videolan.VLC
|
- org.videolan.VLC
|
||||||
- fr.handbrake.ghb
|
- fr.handbrake.ghb
|
||||||
|
- app.zen_browser.zen
|
||||||
|
|
||||||
systemd_service:
|
systemd_service:
|
||||||
- cronie.service
|
- cronie.service
|
||||||
#- cosmic-greeter.service
|
- cosmic-greeter.service
|
||||||
- ly.service
|
#- ly.service
|
||||||
- libvirtd.service
|
- libvirtd.service
|
||||||
- com.system76.PowerDaemon.service
|
- com.system76.PowerDaemon.service
|
||||||
- ufw.service
|
- ufw.service
|
||||||
|
|
@ -163,6 +164,8 @@ go_apps:
|
||||||
- github.com/nats-io/natscli/nats@latest
|
- github.com/nats-io/natscli/nats@latest
|
||||||
- github.com/go-task/task/v3/cmd/task@latest
|
- github.com/go-task/task/v3/cmd/task@latest
|
||||||
- github.com/a-h/templ/cmd/templ@latest
|
- github.com/a-h/templ/cmd/templ@latest
|
||||||
|
- github.com/segmentio/golines@latest
|
||||||
|
- github.com/templui/templui/cmd/templui@latest
|
||||||
|
|
||||||
yay:
|
yay:
|
||||||
- nwg-look
|
- nwg-look
|
||||||
|
|
@ -179,4 +182,3 @@ yay:
|
||||||
- wdisplays
|
- wdisplays
|
||||||
- bluetuith
|
- bluetuith
|
||||||
- powershell
|
- powershell
|
||||||
- urbackup2-client
|
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,6 @@ rm .bashrc .zshrc .ideavirmrc .gitmodules
|
||||||
sudo apt update && sudo apt install stow
|
sudo apt update && sudo apt install stow
|
||||||
stow --adopt .
|
stow --adopt .
|
||||||
git reset --hard
|
git reset --hard
|
||||||
|
|
||||||
|
curl -L https://nixos.org/nix/install | sh -s -- --daemon
|
||||||
nix-env -iA nixpkgs.myPackages
|
nix-env -iA nixpkgs.myPackages
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue