home/sway: Drop swayfx

This commit is contained in:
fleaz 2024-07-23 19:29:18 +02:00
parent 9f2e1afc34
commit d0006081fd
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083

View file

@ -5,11 +5,9 @@ in
{ {
wayland.windowManager.sway = { wayland.windowManager.sway = {
enable = true; enable = true;
package = pkgs.swayfx;
wrapperFeatures.gtk = true; wrapperFeatures.gtk = true;
# Sway can't find wallpaper.jpg and failes to build # Sway can't find wallpaper.jpg and failes to build
# swayfx also has some problems:
# https://discourse.nixos.org/t/sway-fails-with-cannot-create-gles2-renderer-after-update/45703/2 # https://discourse.nixos.org/t/sway-fails-with-cannot-create-gles2-renderer-after-update/45703/2
checkConfig = false; checkConfig = false;
@ -98,8 +96,8 @@ in
{ {
command = ''${pkgs.swayidle}/bin/swayidle -w \ command = ''${pkgs.swayidle}/bin/swayidle -w \
timeout 600 "${lockCmd}" \ timeout 600 "${lockCmd}" \
timeout 900 "${pkgs.swayfx}/bin/swaymsg output * dpms off" \ timeout 900 "${pkgs.sway}/bin/swaymsg output * dpms off" \
resume "${pkgs.swayfx}/bin/swaymsg output * dpms on" \ resume "${pkgs.sway}/bin/swaymsg output * dpms on" \
before-sleep "${lockCmd}"''; before-sleep "${lockCmd}"'';
} }
]; ];
@ -191,13 +189,6 @@ in
}; };
}; };
extraConfig = ''
blur enable
blur_radius 10
default_dim_inactive 0.2
corner_radius 15
'';
}; };
} }