dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
commit 39dcc46ba3c290a80aca246039ca50ed2cf29d16 parent b2d0434c43a06decf0adf3b42ae1777ef5bf51f8 Author: maydayv7 <maydayv7@gmail.com> Date: Sat, 29 Mar 2025 12:14:05 +0530 fix(Hyprland): Nits
Diffstat:
| M | files/hyprland/theme/hyprswitch.css | | | 12 | +++++++++--- |
| M | files/hyprland/theme/wlogout.css | | | 10 | +++++----- |
| M | flake.lock | | | 6 | +++--- |
| M | lib/build.nix | | | 4 | ++-- |
| M | modules/gui/desktop/hyprland/settings/default.nix | | | 2 | +- |
| M | scripts/hyprutils.nix | | | 4 | ++-- |
6 files changed, 22 insertions(+), 16 deletions(-)
diff --git a/files/hyprland/theme/hyprswitch.css b/files/hyprland/theme/hyprswitch.css @@ -1,6 +1,7 @@ :root { - --bg-color: rgba(0, 0, 0, 0.5); - --bg-color-hover: rgba(255, 255, 255, 0.2); + --bg-color: rgba(@bg-r, @bg-g, @bg-b, 0.5); + --bg-color-active: rgba(255, 255, 255, 0.2); + --bg-color-hover: rgba(255, 255, 255, 0.4); --border-radius: 10px; --border-color: #@base04; --border-color-active: #@base05; @@ -19,6 +20,11 @@ .workspace { background: var(--bg-color); + border: none; +} + +.workspace_active { + border: var(--border-size) solid var(--border-color-active); } .client { @@ -34,6 +40,6 @@ } .client_active { - background: var(--bg-color-hover); + background: var(--bg-color-active); border: var(--border-size) solid var(--border-color-active); } diff --git a/files/hyprland/theme/wlogout.css b/files/hyprland/theme/wlogout.css @@ -12,17 +12,17 @@ button { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 rgba(0, 0, 0, 0.5); + transition: background-color 0.2s ease-in-out; margin: 1rem; - background-repeat: no-repeat; - background-position: center; - background-size: 25%; } button:focus, -button:active, button:hover { background-color: rgba(255, 255, 255, 0.2); - outline-style: none; +} + +button:active { + background-color: rgba(255, 255, 255, 0.5); } label { diff --git a/flake.lock b/flake.lock @@ -102,11 +102,11 @@ ] }, "locked": { - "lastModified": 1742599566, - "narHash": "sha256-xr6ntmiUPXSh9o9mJ7og9vxALMQs1EQhIhWUAO2D1M0=", + "lastModified": 1743217966, + "narHash": "sha256-S9Q/Pl0U/kdwz8LBt1JjE1Qay3CY0pk1gHHvRosWlUI=", "owner": "catppuccin", "repo": "nix", - "rev": "5e303e8d7e251868fa79f83bbda69da90aa62402", + "rev": "c41c89f69fcdc8bd78bbc95123eef280575f1df8", "type": "github" }, "original": { diff --git a/lib/build.nix b/lib/build.nix @@ -42,8 +42,8 @@ in { fonts ? null, file, }: let - color = ["@accent" "@white" "@base00" "@base01" "@base02" "@base03" "@base04" "@base05" "@base06" "@base07" "@base08" "@base09" "@base0A" "@base0B" "@base0C" "@base0D" "@base0E" "@base0F"]; - color' = with colors; [colors."${accent}" "FFFFFF" base00 base01 base02 base03 base04 base05 base06 base07 base08 base09 base0A base0B base0C base0D base0E base0F]; + color = ["@accent" "@white" "@bg-r" "@bg-g" "@bg-b" "@base00" "@base01" "@base02" "@base03" "@base04" "@base05" "@base06" "@base07" "@base08" "@base09" "@base0A" "@base0B" "@base0C" "@base0D" "@base0E" "@base0F"]; + color' = with colors; [colors."${accent}" "FFFFFF" base00-rgb-r base00-rgb-g base00-rgb-b base00 base01 base02 base03 base04 base05 base06 base07 base08 base09 base0A base0B base0C base0D base0E base0F]; font = ["@font" "@monospace"]; font' = with fonts; [sansSerif.name monospace.name]; in diff --git a/modules/gui/desktop/hyprland/settings/default.nix b/modules/gui/desktop/hyprland/settings/default.nix @@ -32,6 +32,7 @@ in { }; input = { + follow_mouse = 1; # Focus on cursor move focus_on_close = 1; # Keyboard @@ -39,7 +40,6 @@ in { numlock_by_default = true; # Mouse - follow_mouse = 1; # Focus on cursor move accel_profile = "flat"; touchpad = { tap-to-click = true; diff --git a/scripts/hyprutils.nix b/scripts/hyprutils.nix @@ -155,11 +155,11 @@ in } case "$2" in "up") - hyprctl hyprsunset temperature +400 + hyprctl hyprsunset temperature +200 temperature_notification ;; "down") - hyprctl hyprsunset temperature -400 + hyprctl hyprsunset temperature -200 temperature_notification ;; "reset")