dev: automated commit - 2025-06-09 09:35:58
This commit is contained in:
parent
6f13d4b40d
commit
c71e2bd9a9
5 changed files with 92 additions and 22 deletions
|
@ -318,9 +318,9 @@ exec {
|
||||||
# Applications
|
# Applications
|
||||||
$term --class="uy.com.mzunino"
|
$term --class="uy.com.mzunino"
|
||||||
slack
|
slack
|
||||||
#davmail
|
davmail
|
||||||
betterbird
|
betterbird
|
||||||
vesktop
|
legcord
|
||||||
|
|
||||||
# Browser - using gtk-launch instead of BROWSER variable
|
# Browser - using gtk-launch instead of BROWSER variable
|
||||||
zen-browser
|
zen-browser
|
||||||
|
|
|
@ -1,4 +1,66 @@
|
||||||
[
|
[
|
||||||
|
{
|
||||||
|
"include": [
|
||||||
|
"~/.config/waybar/common.jsonc"
|
||||||
|
],
|
||||||
|
"modules-left": [
|
||||||
|
"sway/workspaces"
|
||||||
|
],
|
||||||
|
"modules-right": [
|
||||||
|
"disk",
|
||||||
|
"cpu",
|
||||||
|
"memory"
|
||||||
|
],
|
||||||
|
"output": [
|
||||||
|
"DP-1"
|
||||||
|
],
|
||||||
|
"cpu": {
|
||||||
|
"interval": 10,
|
||||||
|
"format": " {}%",
|
||||||
|
"max-length": 10
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"interval": 30,
|
||||||
|
"format": " {used:0.1f}/{total:0.1f} GiB"
|
||||||
|
},
|
||||||
|
"disk": {
|
||||||
|
"interval": 30,
|
||||||
|
"format": " {used}/{total}",
|
||||||
|
"unit": "GiB",
|
||||||
|
"path": "/home"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": [
|
||||||
|
"~/.config/waybar/common.jsonc"
|
||||||
|
],
|
||||||
|
"modules-left": [
|
||||||
|
"sway/workspaces"
|
||||||
|
],
|
||||||
|
"modules-center": [
|
||||||
|
"custom/playerctl",
|
||||||
|
"custom/playerlabel"
|
||||||
|
],
|
||||||
|
"modules-right": [
|
||||||
|
"custom/wf-recorder",
|
||||||
|
"custom/randwall",
|
||||||
|
"pulseaudio",
|
||||||
|
"custom/vpn",
|
||||||
|
"custom/notification",
|
||||||
|
"tray",
|
||||||
|
"clock"
|
||||||
|
],
|
||||||
|
"output": [
|
||||||
|
"HDMI-A-1"
|
||||||
|
],
|
||||||
|
"custom/vpn": {
|
||||||
|
"format": "{}",
|
||||||
|
"return-type": "json",
|
||||||
|
"interval": 1,
|
||||||
|
"exec": "/home/forbi/.local/bin/vpn",
|
||||||
|
"on-click": "/home/forbi/.local/bin/vpn toggle"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"include": [
|
"include": [
|
||||||
"~/.config/waybar/common.jsonc"
|
"~/.config/waybar/common.jsonc"
|
||||||
|
|
|
@ -58,8 +58,11 @@ alias doomconf="vim ~/.config/gzdoom/gzdoom.ini"
|
||||||
alias pluginconf="vim ~/.config/nvim/plugins.vim"
|
alias pluginconf="vim ~/.config/nvim/plugins.vim"
|
||||||
alias i3conf="vim ~/.config/i3/config"
|
alias i3conf="vim ~/.config/i3/config"
|
||||||
alias cssh="vim ~/.ssh/config"
|
alias cssh="vim ~/.ssh/config"
|
||||||
alias vd='vim -c ":VimwikiMakeDiaryNote"'
|
|
||||||
alias vw='vim -c ":VimwikiIndex"'
|
function vimwhich {
|
||||||
|
nvim $(which $1)
|
||||||
|
}
|
||||||
|
alias vw="vimwhich"
|
||||||
|
|
||||||
# Clipboard operations - with auto-detection
|
# Clipboard operations - with auto-detection
|
||||||
if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
|
if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
|
||||||
|
|
|
@ -287,6 +287,7 @@ fi
|
||||||
|
|
||||||
# COMPLETIONS
|
# COMPLETIONS
|
||||||
for completion_file in ~/.local/share/zsh/*-autocomplete.zsh; do
|
for completion_file in ~/.local/share/zsh/*-autocomplete.zsh; do
|
||||||
|
echo $completion_file
|
||||||
if [ -f "$completion_file" ]; then
|
if [ -f "$completion_file" ]; then
|
||||||
source "$completion_file"
|
source "$completion_file"
|
||||||
fi
|
fi
|
||||||
|
@ -298,14 +299,7 @@ if command -v kubefwd &> /dev/null; then eval "$(kubefwd completion zsh)"; fi
|
||||||
if command -v bombadil &> /dev/null; then eval "$(bombadil generate-completions zsh)"; fi
|
if command -v bombadil &> /dev/null; then eval "$(bombadil generate-completions zsh)"; fi
|
||||||
if command -v eza &> /dev/null; then compdef eza=ls; fi
|
if command -v eza &> /dev/null; then compdef eza=ls; fi
|
||||||
|
|
||||||
# ALIASES
|
alias dev='~/Dev/marianozunino/dev/dev'
|
||||||
# yarn() { echo 🖕; }
|
|
||||||
# yarnpkg() { echo 🖕; }
|
|
||||||
# pnpm() { echo 🖕; }
|
|
||||||
# pn() { echo 🖕; }
|
|
||||||
# pnpx() { echo 🖕; }
|
|
||||||
# npm() { echo 🖕; }
|
|
||||||
|
|
||||||
alias p='_package_manager'
|
alias p='_package_manager'
|
||||||
alias fo='fopen'
|
alias fo='fopen'
|
||||||
alias drop='upload_file'
|
alias drop='upload_file'
|
||||||
|
|
|
@ -23,19 +23,30 @@ if [ -z "$TMUX" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# tmux project launcher function
|
|
||||||
function tmuxLauncher {
|
function tmuxLauncher {
|
||||||
selected_dir=$(/bin/fd --base-directory ~/Dev --search-path . -t d -d 2 | fzf)
|
local selected_dir full_path session_name
|
||||||
if [[ -n "$selected_dir" ]]; then
|
|
||||||
if git rev-parse --git-dir &>/dev/null; then
|
selected_dir=$(fd --base-directory ~/Dev --search-path . -t d -d 2 | fzf)
|
||||||
tmux rename-window "$selected_dir"
|
[[ -z "$selected_dir" ]] && { zle reset-prompt; return }
|
||||||
cd "$HOME/Dev/$selected_dir"
|
|
||||||
else
|
selected_dir="${selected_dir#./}"
|
||||||
tmux new-window -n "$selected_dir" -c "$HOME/Dev/$selected_dir"
|
selected_dir="${selected_dir%/}"
|
||||||
fi
|
full_path="$HOME/Dev/$selected_dir"
|
||||||
|
|
||||||
|
session_name="${selected_dir//\//-}"
|
||||||
|
session_name="${session_name%-}"
|
||||||
|
|
||||||
|
if [[ -n "$TMUX" ]]; then
|
||||||
|
tmux new-window -n "$session_name" -c "$full_path"
|
||||||
|
zle reset-prompt
|
||||||
|
else
|
||||||
|
echo "tmux new-session -s '$session_name' -c '$full_path'" > /tmp/tmux_cmd
|
||||||
|
zle accept-line
|
||||||
|
BUFFER="source /tmp/tmux_cmd && rm /tmp/tmux_cmd"
|
||||||
|
zle accept-line
|
||||||
fi
|
fi
|
||||||
zle reset-prompt
|
|
||||||
}
|
}
|
||||||
|
|
||||||
zle -N tmuxLauncher
|
zle -N tmuxLauncher
|
||||||
bindkey "^t" tmuxLauncher
|
bindkey "^t" tmuxLauncher
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue