From 45fd9dfd51a04a54168c519903a52a71bc78486d Mon Sep 17 00:00:00 2001 From: VectorKappa Date: Fri, 26 May 2023 10:40:14 +0200 Subject: [PATCH 1/3] Modified zsh config --- zsh/.zshenv | 2 +- zsh/.zshrc | 43 ++++++++++++++++++++++++++++++++++--------- 2 files changed, 35 insertions(+), 10 deletions(-) diff --git a/zsh/.zshenv b/zsh/.zshenv index e08003e..87d4ced 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -1,5 +1,5 @@ # Path shenanigans -export PATH="$PATH:~/.cargo/bin:~/.local/bin"; +export PATH="$PATH:$HOME/.cargo/bin:$HOME/.local/bin"; diff --git a/zsh/.zshrc b/zsh/.zshrc index 2e01edb..4daf26c 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -170,6 +170,9 @@ zinit light romkatv/powerlevel10k zinit ice wait lucid zinit light MichaelAquilina/zsh-you-should-use +zinit ice wait lucid +zinit light MichaelAquilina/zsh-autoswitch-virtualenv + zinit ice wait lucid zinit light laggardkernel/zsh-thefuck @@ -186,21 +189,14 @@ zinit load 'wfxr/forgit' #zinit light jeffreytse/zsh-vi-mode #zplug "plugins/virtualenv", from:oh-my-zsh -#zplug "plugins/pip", from:oh-my-zsh -#zplug "plugins/nmap", from:oh-my-zsh -#zplug "plugins/ipfs", from:oh-my-zsh ##zplug "plugins/gpg-agent", from:oh-my-zsh -#zplug "plugins/rsync", from:oh-my-zsh -#zplug "plugins/rust", from:oh-my-zsh #zplug "plugins/git", from:oh-my-zsh -#zplug "plugins/colored-man-pages", from:oh-my-zsh #zplug "plugins/command-not-found", from:oh-my-zsh ##zplug "plugins/tmux", from:oh-my-zsh #zplug "plugins/urltools", from:oh-my-zsh ##zplug "plugins/thefuck", from:oh-my-zsh #Used interchangably with ##setopt correct #<-This option ## Load completion library for those sweet [tab] squares -#zplug "lib/completion", from:oh-my-zsh ##zplug "mollifier/anyframe", from:github ## Misc. visual tweaks ## zplug "modules/prompt", from:prezto @@ -211,8 +207,18 @@ zinit load 'wfxr/forgit' ## Syntax highlighting for commands, load last #zplug "zsh-users/zsh-syntax-highlighting", from:github, defer:3 #zplug "Aloxaf/gencomp", defer:3 - -zinit snippet ~/.zsh_compl/zoxide +zinit snippet OMZP::pip +#zinit snippet OMZP::adb +zinit snippet OMZP::aliases +zinit snippet OMZP::encode64 +#zinit snippet OMZP::fd +#zinit snippet OMZP::ripgrep +zinit snippet OMZP::nmap +#zinit snippet OMZP::ipfs +zinit snippet OMZP::rsync +zinit snippet OMZP::colored-man-pages +zinit snippet OMZP::rust +zinit snippet OMZP::zoxide zinit snippet OMZL::completion.zsh zinit wait lucid for \ @@ -225,6 +231,25 @@ zinit wait lucid for \ #[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh zinit pack"binary" for fzf + + +# GPG-SSH INTEGRATION +unset SSH_AGENT_PID +if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then + export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" +fi +export GPG_TTY=$(tty) +gpg-connect-agent updatestartuptty /bye >/dev/null + + + + + + + + # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh (( ! ${+functions[p10k]} )) || p10k finalize + + From 56a1a8f87ce1fcbea249fa13ca79187bb7fb8d37 Mon Sep 17 00:00:00 2001 From: VectorKappa Date: Sun, 20 Aug 2023 16:11:13 +0200 Subject: [PATCH 2/3] Added picom shader, fixing stalonetray transparency --- picom/.config/picom/black_to_transparent.frag | 21 +++++++++++++++++++ picom/.config/{ => picom}/picom.conf | 7 +++++++ 2 files changed, 28 insertions(+) create mode 100644 picom/.config/picom/black_to_transparent.frag rename picom/.config/{ => picom}/picom.conf (98%) diff --git a/picom/.config/picom/black_to_transparent.frag b/picom/.config/picom/black_to_transparent.frag new file mode 100644 index 0000000..7d71c1f --- /dev/null +++ b/picom/.config/picom/black_to_transparent.frag @@ -0,0 +1,21 @@ +#version 330 +in vec2 texcoord; +uniform float opacity; +uniform bool invert_color; +uniform sampler2D tex; + +vec4 window_shader() { + vec4 c = texelFetch(tex, ivec2(texcoord), 0); + { + // Change vec4(1.0, 1.0, 1.0, 1.0) to your desired color + vec4 vdiff = abs(vec4(0.0, 0.0, 0.0, 1.0) - c); + float diff = max(max(max(vdiff.r, vdiff.g), vdiff.b), vdiff.a); + // Change 0.8 to your desired opacity + if (diff < 0.001) + c *= 0; + } + if (invert_color) + c = vec4(vec3(c.a, c.a, c.a) - vec3(c), c.a); + c *= opacity; + return c; +} diff --git a/picom/.config/picom.conf b/picom/.config/picom/picom.conf similarity index 98% rename from picom/.config/picom.conf rename to picom/.config/picom/picom.conf index e755992..10dffdf 100644 --- a/picom/.config/picom.conf +++ b/picom/.config/picom/picom.conf @@ -294,6 +294,13 @@ use-damage = true; # # glx-fshader-win = "" +# Use rules to set per-window shaders. Syntax is SHADER_PATH:PATTERN, similar +# to opacity-rule. SHADER_PATH can be "default". This overrides window-shader-fg. +# +window-shader-fg-rule = [ + "black_to_transparent.frag:class_g = 'stalonetray'" +] + # Force all windows to be painted with blending. Useful if you # have a glx-fshader-win that could turn opaque pixels transparent. # From a5bad7e69048374c94438428e169cb4e94fad702 Mon Sep 17 00:00:00 2001 From: VectorKappa Date: Sun, 20 Aug 2023 17:06:46 +0200 Subject: [PATCH 3/3] Stalonetray heebiejeebies --- bspwm/.config/bspwm/autostart | 2 +- bspwm/.config/bspwm/bspwmrc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bspwm/.config/bspwm/autostart b/bspwm/.config/bspwm/autostart index d24684b..5a13041 100755 --- a/bspwm/.config/bspwm/autostart +++ b/bspwm/.config/bspwm/autostart @@ -59,7 +59,7 @@ jgmenu --at-pointer --hide-on-startup & #(tint2; sleep 10; xdo raise -n tint2) & ## launch tray -stalonetray -v -t --geometry=1x48+0+35 & +stalonetray -v --geometry=1x48+0+35 & ## Screenshot daemon flameshot & diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc index f34416e..ad6a464 100755 --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc @@ -98,10 +98,10 @@ bspc rule -a Variety state=floating rectangle=1600x120+0+440 ## windows on the desktop. Using it disables negative window gap. autogap & -## This script balances all windows when new one is spawned +## This script balances all windows when new one is spawned #euclid_balancer & -##Edge-switcher switches to next workspace when moves moves to the +##Edge-switcher switches to next workspace when moves moves to the ##edge of the monitor (behavior similar to enlightenment) #edge-switcher &