dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
commit 0ebd8139cfb8218c04ba657d35f8aed6fea9ff0b parent a6703b65438a67dc15db67b3df7c5a98a58401ad Author: maydayv7 <maydayv7@gmail.com> Date: Wed, 23 Oct 2024 14:18:10 +0530 fix: XFCE Update
Diffstat:
| M | README.md | | | 7 | +------ |
| M | files/xfce/settings/xfce4-panel.xml | | | 4 | +--- |
| M | modules/gui/desktop/xfce/compositor.nix | | | 110 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------- |
| M | modules/gui/desktop/xfce/default.nix | | | 2 | +- |
| M | site/content/now.md | | | 11 | ++++------- |
5 files changed, 89 insertions(+), 45 deletions(-)
diff --git a/README.md b/README.md @@ -777,14 +777,9 @@ You can navigate to the `README`s present in the various directories to know mor - Home Configuration isn't be decoupled from System - [Wine](./packages/wine) Applications have to be manually updated -#### To Fix - -- GNOME Extensions aren't updated -- New [Picom](https://github.com/yshui/picomx) animations feature isn't implemented - </details> -> Last Updated: **June** 2024 +> Last Updated: **October** 2024 If you like this project, consider leaving a [star](https://github.com/maydayv7/dotfiles) diff --git a/files/xfce/settings/xfce4-panel.xml b/files/xfce/settings/xfce4-panel.xml @@ -47,14 +47,12 @@ <value type="int" value="13"/> <value type="int" value="14"/> </property> - <property name="position" type="string" value="p=0;x=946;y=27"/> <property name="position-locked" type="bool" value="true"/> <property name="size" type="uint" value="27"/> <property name="span-monitors" type="bool" value="false"/> <property name="enable-struts" type="bool" value="true"/> </property> <property name="panel-1" type="empty"> - <property name="position" type="string" value="p=0;x=961;y=1031"/> <property name="size" type="uint" value="72"/> <property name="plugin-ids" type="array"> <value type="int" value="23"/> @@ -135,7 +133,7 @@ <property name="tooltip-format" type="string" value="%A %d %B %Y"/> <property name="digital-time-format" type="string" value="%a %I:%M %p"/> <property name="digital-layout" type="uint" value="3"/> - <property name="digital-time-font" type="string" value="Sans 11"/> + <property name="digital-time-font" type="string" value="@font 11"/> </property> <property name="plugin-9" type="string" value="separator"> <property name="expand" type="bool" value="false"/> diff --git a/modules/gui/desktop/xfce/compositor.nix b/modules/gui/desktop/xfce/compositor.nix @@ -6,6 +6,7 @@ ## Picom Compositor Configuration ## services.picom = rec { enable = true; + package = pkgs.unstable.picom; # Driver backend = "egl"; @@ -27,15 +28,15 @@ "95:class_g = 'Code'" "95:class_g = 'Ulauncher'" ]; + wintypes = { tooltip = {opacity = 0.8;}; popup_menu = {opacity = 0.9;}; dropdown_menu = {opacity = 0.9;}; }; - # Behaviour - fade = true; settings = + # Behaviour { inactive-dim = 0.1; corner-radius = 10.0; @@ -50,40 +51,93 @@ "class_g='Xfce4-panel'" ]; } - // - # Blur + // # Fade + { + fading = true; + fade-in-step = 0.03; + fade-out-step = 0.1; + fade-delta = 15; + no-fading-openclose = false; + } + // # Blur { blur-method = "dual_kawase"; blur-strength = 3; blur-background-exclude = shadowExclude; } - // - # Animations + // # Animation { - animations = true; - animation-for-open-window = "zoom"; - animation-for-unmap-window = "zoom"; - animation-for-transient-window = "slide-up"; - animation-stiffness-in-tag = 150; - animation-stiffness-tag-change = 90.0; - animation-window-mass = 0.2; - animation-dampening = 15; - animation-clamping = true; - animation-for-prev-tag = "minimize"; - enable-fading-prev-tag = true; - animation-for-next-tag = "slide-in-center"; - enable-fading-next-tag = true; - }; + animations = [ + { + triggers = ["close" "hide"]; + preset = "disappear"; + scale = 0.4; + opacity = { + duration = 0.4; + start = "window-raw-opacity-before"; + end = 0; + }; + blur-opacity = "opacity"; + shadow-opacity = "opacity"; + } + { + triggers = ["open" "show"]; + opacity = { + curve = "cubic-bezier(0.3,1.0,0.4,1)"; + duration = 0.4; + start = 0; + end = "window-raw-opacity"; + }; + blur-opacity = "opacity"; + shadow-opacity = "opacity"; + offset-x = "(1 - scale-x) / 2 * window-width"; + offset-y = "(1 - scale-y) / 2 * window-height"; + scale-x = { + curve = "cubic-bezier(0.3,1.0,0.4,1)"; + duration = 0.4; + start = 0; + end = 1; + }; + scale-y = "scale-x"; + shadow-scale-x = "scale-x"; + shadow-scale-y = "scale-y"; + shadow-offset-x = "offset-x"; + shadow-offset-y = "offset-y"; + } + { + triggers = ["geometry"]; + scale-x = { + curve = "cubic-bezier(0.3,1.0,0.4,1)"; + duration = 0.4; + start = "window-width-before / window-width"; + end = 1; + }; + scale-y = { + curve = "cubic-bezier(0.3,1.0,0.4,1)"; + duration = 0.4; + start = "window-height-before / window-height"; + end = 1; + }; + offset-x = { + curve = "cubic-bezier(0.3,1.0,0.4,1)"; + duration = 0.4; + start = "window-x-before - window-x"; + end = 0; + }; + offset-y = { + curve = "cubic-bezier(0.3,1.0,0.4,1)"; + duration = 0.4; + start = "window-y-before - window-y"; + end = 0; + }; - package = pkgs.picom.overrideAttrs (old: { - version = "11a"; - src = pkgs.fetchFromGitHub { - owner = "FT-Labs"; - repo = "picom"; - rev = "fe5b416ed6f43c31418d21dde7a9f20c12d7dfb0"; - sha256 = "sha256-jouBx8fqoy/psD/P9dX3Q4/D4IWsLSxA210CKcBbh4I="; + shadow-scale-x = "scale-x"; + shadow-scale-y = "scale-y"; + shadow-offset-x = "offset-x"; + shadow-offset-y = "offset-y"; + } + ]; }; - }); }; # Theme Fixes diff --git a/modules/gui/desktop/xfce/default.nix b/modules/gui/desktop/xfce/default.nix @@ -188,7 +188,7 @@ in { replace = { placeholders = [ "@system" - "@monitor" + "@display" "@wallpaper" "@theme" "@icons" diff --git a/site/content/now.md b/site/content/now.md @@ -5,12 +5,9 @@ description = "What I'm currently up to!" This page is inspired by [NowNowNow](https://nownownow.com) -Entrance Exams are over! Time to PARTAYYY!! +Freshman at uni, still getting adjusted -- Messing around with Nix(OS) -- Playing FPS Games -- Binge-watching {{ url(path="anime", text="Anime", trail_slash=false) }} +- Trying (failing) to study +- Watching {{ url(path="anime", text="Anime", trail_slash=false) }} -Nothing much else really! ;) - -> Last Updated: **June** 2024 +> Last Updated: **October** 2024