From db7cf5d9eec94fcba7e41c4de844760a15414d88 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Mon, 30 Sep 2024 14:59:18 -0400 Subject: [PATCH] picom: overhaul animations, and use chezmoi to substitute $HOME --- src/dot_config/picom/picom.conf | 43 ---------------------- src/dot_config/picom/picom.conf.tmpl | 37 +++++++++++++++++++ src/dot_config/qbprof/dsc/config/config.py | 2 + src/dot_config/xinitrc | 2 +- src/dot_config/zathura/zathurarc | 5 ++- src/dot_local/bin/executable_open_typ.sh | 2 +- src/dot_local/bin/executable_picomstart.sh | 6 --- 7 files changed, 44 insertions(+), 53 deletions(-) delete mode 100644 src/dot_config/picom/picom.conf create mode 100644 src/dot_config/picom/picom.conf.tmpl delete mode 100644 src/dot_local/bin/executable_picomstart.sh diff --git a/src/dot_config/picom/picom.conf b/src/dot_config/picom/picom.conf deleted file mode 100644 index 5ffae00..0000000 --- a/src/dot_config/picom/picom.conf +++ /dev/null @@ -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, -}; diff --git a/src/dot_config/picom/picom.conf.tmpl b/src/dot_config/picom/picom.conf.tmpl new file mode 100644 index 0000000..ca914a1 --- /dev/null +++ b/src/dot_config/picom/picom.conf.tmpl @@ -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" }, +) diff --git a/src/dot_config/qbprof/dsc/config/config.py b/src/dot_config/qbprof/dsc/config/config.py index 74b8407..672d404 100644 --- a/src/dot_config/qbprof/dsc/config/config.py +++ b/src/dot_config/qbprof/dsc/config/config.py @@ -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" diff --git a/src/dot_config/xinitrc b/src/dot_config/xinitrc index dd68796..afc6dbb 100644 --- a/src/dot_config/xinitrc +++ b/src/dot_config/xinitrc @@ -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 diff --git a/src/dot_config/zathura/zathurarc b/src/dot_config/zathura/zathurarc index 05b6ae1..4f6d3ca 100644 --- a/src/dot_config/zathura/zathurarc +++ b/src/dot_config/zathura/zathurarc @@ -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 diff --git a/src/dot_local/bin/executable_open_typ.sh b/src/dot_local/bin/executable_open_typ.sh index 5887022..e948345 100644 --- a/src/dot_local/bin/executable_open_typ.sh +++ b/src/dot_local/bin/executable_open_typ.sh @@ -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")) diff --git a/src/dot_local/bin/executable_picomstart.sh b/src/dot_local/bin/executable_picomstart.sh deleted file mode 100644 index d4fe577..0000000 --- a/src/dot_local/bin/executable_picomstart.sh +++ /dev/null @@ -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'" \