refactor(sway): rework wallpapers integration
This commit is contained in:
parent
61685e8253
commit
674d531d32
5 changed files with 28 additions and 8 deletions
|
@ -1,5 +1,8 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.desktop.sway;
|
||||
in
|
||||
{
|
||||
config = mkIf config.modules.desktop.sway.enable {
|
||||
wayland.windowManager.sway = {
|
||||
|
@ -20,6 +23,11 @@ with lib;
|
|||
xkb_variant = "altgr-intl";
|
||||
};
|
||||
};
|
||||
output = {
|
||||
"*" = {
|
||||
bg = "${cfg.wallpapers.desktop}";
|
||||
};
|
||||
};
|
||||
seat = {
|
||||
"*".hide_cursor = "when-typing enable";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue