Skip to content

Commit

Permalink
hyprland: use settings and style from stylix
Browse files Browse the repository at this point in the history
  • Loading branch information
adomixaszvers committed Jan 21, 2025
1 parent b697d4d commit 4992ab2
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
8 changes: 7 additions & 1 deletion profiles/t14.nix
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@
xset s off -dpms
xrandr --output eDP --set TearFree on
'';
wayland.windowManager.hyprland.settings.monitor = [ "eDP-1,1920x1080,0x0,1.25" ];
wayland.windowManager.hyprland.settings = {
monitor = [ "eDP-1,1920x1080,0x0,1.25" ];
decoration = {
blur.enabled = false;
shadow.enabled = false;
};
};
wayland.windowManager.sway = {
config = {
input = {
Expand Down
17 changes: 12 additions & 5 deletions profiles/wm/hyprland/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
pkgs,
lib,
myPkgs,
config,
...
Expand Down Expand Up @@ -65,6 +66,15 @@
}
];
};
stylix.targets = {
hyprland.enable = true;
waybar = {
enable = true;
enableCenterBackColors = true;
enableLeftBackColors = true;
enableRightBackColors = true;
};
};
wayland.windowManager.hyprland = {
enable = true;
xwayland.enable = true;
Expand Down Expand Up @@ -122,8 +132,6 @@
gaps_in = 5;
gaps_out = 20;
border_size = 2;
"col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
"col.inactive_border" = "rgba(595959aa)";

layout = "master";
allow_tearing = true;
Expand All @@ -134,17 +142,16 @@

rounding = 5;
blur = {
enabled = true;
enabled = lib.mkDefault true;
size = 3;
passes = 1;
new_optimizations = true;
};

shadow = {
enabled = true;
enabled = lib.mkDefault true;
range = 4;
render_power = 3;
color = "rgba(1a1a1aee)";
};

};
Expand Down
2 changes: 1 addition & 1 deletion profiles/wm/waybar/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
programs.waybar = {
enable = true;
style = builtins.readFile ./style.css;
# style = builtins.readFile ./style.css;
};
}
2 changes: 1 addition & 1 deletion profiles/wm/waybar/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

window#waybar {
background-color: rgba(43, 48, 59, 0.5);
border-bottom: 3px solid rgba(100, 114, 125, 0.5);
border-bottom: 0px solid rgba(100, 114, 125, 0.5);
color: #ffffff;
transition-property: background-color;
transition-duration: .5s;
Expand Down

0 comments on commit 4992ab2

Please sign in to comment.