diff --git a/bspwm/.config/bspwm/autostart b/bspwm/.config/bspwm/autostart index 1d9a22d..e564e8f 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/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. # 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 f9a2874..7e9d1e5 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -174,6 +174,9 @@ zinit light zdharma-continuum/zinit-annex-patch-dl 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 @@ -190,21 +193,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 @@ -215,8 +211,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 \ @@ -229,6 +235,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 + +