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]
|
#[Desktop Entry]
|
||||||
Type=Application
|
#Type=Application
|
||||||
Exec=swayidle -w timeout 300 'swaylock -f' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f'
|
#Exec=swayidle -w timeout 300 'swaylock -f' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f'
|
||||||
Hidden=false
|
#Hidden=false
|
||||||
NoDisplay=false
|
#NoDisplay=false
|
||||||
X-GNOME-Autostart-enabled=false
|
#X-GNOME-Autostart-enabled=false
|
||||||
Name[en_US]=swaylock
|
#Name[en_US]=swaylock
|
||||||
Name=swaylock
|
#Name=swaylock
|
||||||
Comment[en_US]=
|
#Comment[en_US]=
|
||||||
Comment=
|
#Comment=
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
false
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
[
|
[
|
||||||
"Panel",
|
"Panel",
|
||||||
"Dock",
|
|
||||||
]
|
]
|
||||||
|
|
@ -1 +1 @@
|
||||||
"display"
|
"wired"
|
||||||
|
|
@ -3,7 +3,7 @@ gtk-theme-name=catppuccin-mocha-mauve-standard+default
|
||||||
gtk-icon-theme-name=Adwaita
|
gtk-icon-theme-name=Adwaita
|
||||||
gtk-font-name=Cantarell 11
|
gtk-font-name=Cantarell 11
|
||||||
gtk-cursor-theme-name=Pop
|
gtk-cursor-theme-name=Pop
|
||||||
gtk-cursor-theme-size=8
|
gtk-cursor-theme-size=24
|
||||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
||||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||||
gtk-button-images=1
|
gtk-button-images=1
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
[Settings]
|
[Settings]
|
||||||
gtk-application-prefer-dark-theme=0
|
gtk-application-prefer-dark-theme=0
|
||||||
XCURSOR_SIZE=24
|
gtk-cursor-theme-size=24
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,26 @@ return {
|
||||||
config = true,
|
config = true,
|
||||||
opts = {
|
opts = {
|
||||||
strategies = {
|
strategies = {
|
||||||
chat = { adapter = "ollama" },
|
chat = { adapter = "openai" },
|
||||||
inline = { adapter = "ollama" },
|
inline = { adapter = "ollama" },
|
||||||
},
|
},
|
||||||
adapters = {
|
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()
|
ollama = function()
|
||||||
return require("codecompanion.adapters").extend("ollama", {
|
return require("codecompanion.adapters").extend("ollama", {
|
||||||
name = "ollama",
|
name = "ollama",
|
||||||
|
|
@ -22,7 +38,7 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
env = {
|
env = {
|
||||||
url = "https://ollama.durp.info",
|
url = "https://litellm.durp.info",
|
||||||
},
|
},
|
||||||
headers = {
|
headers = {
|
||||||
["Content-Type"] = "application/json",
|
["Content-Type"] = "application/json",
|
||||||
|
|
|
||||||
|
|
@ -14,5 +14,6 @@ export GEM_HOME="$HOME/gems"
|
||||||
export XCURSOR_SIZE=24
|
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:$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
|
source $(brew --prefix)/share/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||||||
|
|
|
||||||
|
|
@ -64,3 +64,19 @@ tmux-new () {
|
||||||
load-profile () {
|
load-profile () {
|
||||||
ansible-playbook /home/user/.dotfiles/ansible/.config/ansible/local.yml -K
|
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 -g terminal-overrides 'xterm*:smcup@:rmcup@'
|
||||||
|
#set-option -sa terminal-overrides ",xterm*:Tc"
|
||||||
set -g mouse on
|
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 set-clipboard on
|
||||||
set -g @yank_selection_mouse 'clipboard'
|
set -g @yank_selection_mouse 'clipboard'
|
||||||
set -g @yank_selection 'clipboard'
|
set -g @yank_selection 'clipboard'
|
||||||
|
|
||||||
unbind C-b
|
unbind C-b
|
||||||
set -g prefix C-Space
|
set -g prefix C-Space
|
||||||
bind C-Space send-prefix
|
bind C-Space send-prefix
|
||||||
set -g allow-passthrough on
|
set -g allow-passthrough on
|
||||||
|
|
||||||
set -ga update-environment TERM
|
#set -g default-terminal "screen-256color"
|
||||||
set -ga update-environment TERM_PROGRAM
|
#set -ga update-environment TERM
|
||||||
|
#set -ga update-environment TERM_PROGRAM
|
||||||
|
|
||||||
# Vim style pane selection
|
# Vim style pane selection
|
||||||
bind h select-pane -L
|
bind h select-pane -L
|
||||||
|
|
@ -39,8 +48,8 @@ bind -n S-Left previous-window
|
||||||
bind -n S-Right next-window
|
bind -n S-Right next-window
|
||||||
|
|
||||||
# Shift Alt vim keys to switch windows
|
# Shift Alt vim keys to switch windows
|
||||||
#bind -n M-H previous-window
|
bind -n M-H previous-window
|
||||||
#bind -n M-L next-window
|
bind -n M-L next-window
|
||||||
|
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
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 @plugin 'nhdaly/tmux-better-mouse-mode'
|
||||||
|
|
||||||
set -g @catppuccin_flavor 'mocha'
|
set -g @catppuccin_flavor 'mocha'
|
||||||
|
|
||||||
# set vi-mode
|
# set vi-mode
|
||||||
set-window-option -g mode-keys vi
|
set-window-option -g mode-keys vi
|
||||||
# keybindings
|
# keybindings
|
||||||
|
|
|
||||||
|
|
@ -76,8 +76,12 @@ map <leader>" <action>(SplitHorizontally)
|
||||||
|
|
||||||
" Buffers
|
" Buffers
|
||||||
let g:WhichKeyDesc_Buffer = "<leader>b Buffers"
|
let g:WhichKeyDesc_Buffer = "<leader>b Buffers"
|
||||||
let g:WhichKeyDesc_BufferDelete = "<leader>x Buffer Delete"
|
let g:WhichKeyDesc_BufferDelete = "<leader>bd Delete Buffer"
|
||||||
map <leader>bx <action>(CloseContent)
|
let g:WhichKeyDesc_BufferDelete = "<leader>bo Delete Other Buffers"
|
||||||
|
let g:WhichKeyDesc_BufferDelete = "<leader>bp Toggle Pin"
|
||||||
|
map <leader>bd <action>(CloseContent)
|
||||||
|
map <leader>bo <action>(CloseAllEditorsButActive)
|
||||||
|
map <leader>bp <action>(PinActiveEditorTab)
|
||||||
|
|
||||||
" Popup Navigation
|
" Popup Navigation
|
||||||
inoremap <C-j> <Action>(PopupMenu-selectNext)
|
inoremap <C-j> <Action>(PopupMenu-selectNext)
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit d7e2dc0e6838c7666e4a1988ca22abf758e0119d
|
Subproject commit 92c1859b212db189d3a72feb25f0b4db4c26042c
|
||||||
Loading…
Add table
Add a link
Reference in a new issue