Move sway to swayfx

This commit is contained in:
Natsu Kagami 2023-03-23 11:17:12 +01:00
parent 2964471723
commit c9e15b373e
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
4 changed files with 55 additions and 3 deletions

View file

@ -109,7 +109,7 @@ in
config.wayland.windowManager.sway = mkIf cfg.enable {
enable = true;
package = pkgs.unstable.sway;
package = pkgs.swayfx;
systemdIntegration = true;
config = {
@ -319,7 +319,16 @@ in
(if cfg.enableLaptopBars then ''
# Lock screen on lid close
bindswitch lid:off exec ${cfg.lockCmd}
'' else "");
'' else "") + ''
# swayfx stuff
corner_radius 5
smart_corner_radius on
shadows on
shadow_blur_radius 5
default_dim_inactive 0.0
for_window [app_id="kitty"] dim_inactive 0.05
titlebar_separator enable
'';
};
config.services.swayidle = mkIf cfg.enable {