update
This commit is contained in:
parent
28ca42d375
commit
4104f13f25
12 changed files with 71 additions and 24 deletions
|
|
@ -1,10 +1,10 @@
|
|||
[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=
|
||||
#[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,4 +1,3 @@
|
|||
[
|
||||
"Panel",
|
||||
"Dock",
|
||||
]
|
||||
|
|
@ -1 +1 @@
|
|||
"display"
|
||||
"wired"
|
||||
|
|
@ -3,7 +3,7 @@ gtk-theme-name=catppuccin-mocha-mauve-standard+default
|
|||
gtk-icon-theme-name=Adwaita
|
||||
gtk-font-name=Cantarell 11
|
||||
gtk-cursor-theme-name=Pop
|
||||
gtk-cursor-theme-size=8
|
||||
gtk-cursor-theme-size=24
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||
gtk-button-images=1
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
[Settings]
|
||||
gtk-application-prefer-dark-theme=0
|
||||
XCURSOR_SIZE=24
|
||||
gtk-cursor-theme-size=24
|
||||
|
|
|
|||
|
|
@ -9,10 +9,26 @@ return {
|
|||
config = true,
|
||||
opts = {
|
||||
strategies = {
|
||||
chat = { adapter = "ollama" },
|
||||
chat = { adapter = "openai" },
|
||||
inline = { adapter = "ollama" },
|
||||
},
|
||||
adapters = {
|
||||
opts = {
|
||||
show_defaults = false,
|
||||
},
|
||||
openai = function()
|
||||
return require("codecompanion.adapters").extend("openai", {
|
||||
schema = {
|
||||
model = {
|
||||
default = "gpt-4o-mini",
|
||||
},
|
||||
},
|
||||
url = "https://litellm.durp.info",
|
||||
env = {
|
||||
api_key = "sk-8lkQVLNLOMYeblJhaqcaCw",
|
||||
},
|
||||
})
|
||||
end,
|
||||
ollama = function()
|
||||
return require("codecompanion.adapters").extend("ollama", {
|
||||
name = "ollama",
|
||||
|
|
@ -22,7 +38,7 @@ return {
|
|||
},
|
||||
},
|
||||
env = {
|
||||
url = "https://ollama.durp.info",
|
||||
url = "https://litellm.durp.info",
|
||||
},
|
||||
headers = {
|
||||
["Content-Type"] = "application/json",
|
||||
|
|
|
|||
|
|
@ -14,5 +14,6 @@ export GEM_HOME="$HOME/gems"
|
|||
export XCURSOR_SIZE=24
|
||||
|
||||
export PATH="$HOME/.local/bin:$HOME/gems/bin:/usr/local/go/bin:$HOME/go/bin:/home/linuxbrew/.linuxbrew/bin:$PATH"
|
||||
export PATH="$HOME/.local/bin/DSC:$PATH"
|
||||
|
||||
source $(brew --prefix)/share/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||||
|
|
|
|||
|
|
@ -64,3 +64,19 @@ tmux-new () {
|
|||
load-profile () {
|
||||
ansible-playbook /home/user/.dotfiles/ansible/.config/ansible/local.yml -K
|
||||
}
|
||||
|
||||
decode_base64_url() {
|
||||
local len=$((${#1} % 4))
|
||||
local result="$1"
|
||||
if [ $len -eq 2 ]; then result="$1"'=='
|
||||
elif [ $len -eq 3 ]; then result="$1"'='
|
||||
fi
|
||||
echo "$result" | tr '_-' '/+' | openssl enc -d -base64
|
||||
}
|
||||
|
||||
decode-jwtpayload(){
|
||||
decode_base64_url $(echo -n $1 | cut -d "." -f '2') | jq .
|
||||
}
|
||||
decode-jwtheader(){
|
||||
decode_base64_url $(echo -n $1 | cut -d "." -f '1') | jq .
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,16 +1,25 @@
|
|||
#set-option -sa terminal-overrides ",xterm*:Tc"
|
||||
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
|
||||
#set-option -sa terminal-overrides ",xterm*:Tc"
|
||||
set -g mouse on
|
||||
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'"
|
||||
setw -g mode-keys vi
|
||||
bind -T copy-mode-vi WheelUpPane send -X scroll-up
|
||||
bind -T copy-mode-vi WheelDownPane send -X scroll-down
|
||||
#set-option -g aggressive-resize off
|
||||
bind r source-file ~/.config/tmux/tmux.conf
|
||||
|
||||
set -g set-clipboard on
|
||||
set -g @yank_selection_mouse 'clipboard'
|
||||
set -g @yank_selection 'clipboard'
|
||||
|
||||
unbind C-b
|
||||
set -g prefix C-Space
|
||||
bind C-Space send-prefix
|
||||
set -g allow-passthrough on
|
||||
|
||||
set -ga update-environment TERM
|
||||
set -ga update-environment TERM_PROGRAM
|
||||
#set -g default-terminal "screen-256color"
|
||||
#set -ga update-environment TERM
|
||||
#set -ga update-environment TERM_PROGRAM
|
||||
|
||||
# Vim style pane selection
|
||||
bind h select-pane -L
|
||||
|
|
@ -39,8 +48,8 @@ bind -n S-Left previous-window
|
|||
bind -n S-Right next-window
|
||||
|
||||
# Shift Alt vim keys to switch windows
|
||||
#bind -n M-H previous-window
|
||||
#bind -n M-L next-window
|
||||
bind -n M-H previous-window
|
||||
bind -n M-L next-window
|
||||
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
|
|
@ -51,6 +60,7 @@ set -g @plugin 'pschmitt/tmux-ssh-split'
|
|||
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
|
||||
|
||||
set -g @catppuccin_flavor 'mocha'
|
||||
|
||||
# set vi-mode
|
||||
set-window-option -g mode-keys vi
|
||||
# keybindings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue