picom: overhaul

animations, and use chezmoi to substitute $HOME
This commit is contained in:
dogeystamp 2024-09-30 14:59:18 -04:00
parent d328a324a6
commit db7cf5d9ee
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
7 changed files with 44 additions and 53 deletions

View File

@ -1,43 +0,0 @@
backend = "glx";
# animations
# works with https://github.com/FT-Labs/picom
# if your picom doesn't support it it won't do anything
animations = false;
animation-stiffness-in-tag = 125;
animation-stiffness-tag-change = 90.0;
animation-window-mass = 0.4;
animation-dampening = 15;
animation-clamping = true;
animation-for-open-window = "slide-up";
animation-for-unmap-window = "slide-up";
animation-for-transient-window = "slide-up";
animation-for-prev-tag = "slide-up";
enable-fading-prev-tag = true;
animation-for-next-tag = "slide-in-center";
enable-fading-next-tag = true;
# enable vsync
vsync = false;
# shadow
shadow = true;
shadow-radius = 12;
shadow-offset-x = -7;
shadow-offset-y = -7;
# fading
fading = true;
fade-in-step = 1;
fade-out-step = 0.05;
fade-delta = 5;
# corner
corner-radius = 10;
blur: {
method = "dual_kawase",
strength = 8,
};

View File

@ -0,0 +1,37 @@
backend = "glx";
vsync = false;
# animations
animations = (
{
triggers = [ "open", "show" ];
preset = "appear";
duration = 0.15;
},
{
triggers = [ "close", "hide" ];
preset = "disappear";
duration = 0.1;
},
)
# shadow
shadow = true;
shadow-radius = 12;
shadow-offset-x = -7;
shadow-offset-y = -7;
# corner
corner-radius = 10;
blur: {
method = "dual_kawase",
strength = 3,
};
rules = (
{ match = "class_g = 'dwm'"; shadow = false; corner-radius = 0; blur-background = false },
{ match = "class_i = 'qutebrowser' && ! name = 'discord'"; shader = "{{ env "HOME" }}/.config/picom/shaders/transparency.glsl" },
{ match = "class_i = 'neovide'"; shader = "{{ env "HOME" }}/.config/picom/shaders/transparency.glsl" },
{ match = "class_g = 'Zathura'"; shader = "/home/dogeystamp/.config/picom/shaders/transparency.glsl" },
)

View File

@ -21,3 +21,5 @@ c.fileselect.multiple_files.command = ["alacritty", "-e", "fish", "-C", "set -x
c.fileselect.single_file.command = ["alacritty", "-e", "fish", "-C", "set -x OUTPUT {}; source ~/.local/bin/fish-fm"]
c.content.user_stylesheets = ["~/.config/qbprof/dsc/config/amoled-cord.css"]
c.window.title_format = "discord"

View File

@ -8,7 +8,7 @@ if [ $SYSTEM_PROFILE = "MINIMAL" ]; then
fi
if [ $SYSTEM_PROFILE = "DEFAULT" ]; then
picomstart.sh &
picom &
fi
battwatch.sh &
xwallpaper --center .config/wall.png

View File

@ -4,7 +4,7 @@ set statusbar-home-tilde true
set scroll-page-aware true
set adjust-open width
set font "Liberation Sans 13"
set font "JetBrains Mono 12"
set recolor-darkcolor "#dddddd"
set recolor-lightcolor rgba(0,0,0,0.6)
@ -18,7 +18,8 @@ set index-active-bg "#111111"
set index-active-fg "#FFFFFF"
set inputbar-bg rgba(0,0,0,0.6)
set inputbar-fg "#CCCCCC"
set statusbar-bg rgba(0,0,0,0.6)
set statusbar-bg rgba(0,0,0,1)
set statusbar-fg "#CCCCCC"
set render-loading false

View File

@ -1,4 +1,4 @@
#!/bin/sh
# opens corresponding .typ to current .pdf
st -e nvim $(printf "%s/%s.typ" $(dirname "$1") $(basename -s .pdf "$1"))
alacritty -e nvim $(printf "%s/%s.typ" $(dirname "$1") $(basename -s .pdf "$1"))

View File

@ -1,6 +0,0 @@
#!/bin/sh
# misc opts so i don't have to use absolute path in picom config
picom --window-shader-fg-rule "$HOME/.config/picom/shaders/transparency-sonixd.glsl:class_g = 'feishin'" \
--window-shader-fg-rule "$HOME/.config/picom/shaders/transparency.glsl:class_g = 'qutebrowser'" \
--window-shader-fg-rule "$HOME/.config/picom/shaders/transparency.glsl:class_g = 'neovide'" \