refactor(sway): rework wallpapers integration
This commit is contained in:
parent
61685e8253
commit
674d531d32
5 changed files with 28 additions and 8 deletions
|
@ -25,6 +25,8 @@
|
||||||
desktop.sway = {
|
desktop.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
kanshi = true;
|
kanshi = true;
|
||||||
|
wallpapers.lockscreen = "${./files/lockscreen.png}";
|
||||||
|
wallpapers.desktop = "${./files/wallpaper.png} center #000000";
|
||||||
waybar = {
|
waybar = {
|
||||||
laptop = true;
|
laptop = true;
|
||||||
gpuThermal = {
|
gpuThermal = {
|
||||||
|
|
|
@ -15,11 +15,5 @@ _:
|
||||||
"pointer_accel" = "0.3";
|
"pointer_accel" = "0.3";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
output = {
|
|
||||||
"*" = {
|
|
||||||
bg = "${../files/wallpaper.png} center #000000";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,19 @@ in
|
||||||
description = "configure laptop mode";
|
description = "configure laptop mode";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
wallpapers = {
|
||||||
|
lockscreen = mkOption {
|
||||||
|
type = types.path;
|
||||||
|
default = "";
|
||||||
|
description = "path for lockscreen wallpaper";
|
||||||
|
};
|
||||||
|
desktop = mkOption {
|
||||||
|
type = types.path;
|
||||||
|
default = "";
|
||||||
|
description = "path for desktop wallpaper";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
waybar = {
|
waybar = {
|
||||||
laptop = mkOption {
|
laptop = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
@ -130,7 +143,7 @@ in
|
||||||
|
|
||||||
qt = {
|
qt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
platformTheme = "gnome";
|
platformTheme.name = "adwaita";
|
||||||
style.name = "adwaita-dark";
|
style.name = "adwaita-dark";
|
||||||
};
|
};
|
||||||
xdg = {
|
xdg = {
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.desktop.sway;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
config = mkIf config.modules.desktop.sway.enable {
|
config = mkIf config.modules.desktop.sway.enable {
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
|
@ -20,6 +23,11 @@ with lib;
|
||||||
xkb_variant = "altgr-intl";
|
xkb_variant = "altgr-intl";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
output = {
|
||||||
|
"*" = {
|
||||||
|
bg = "${cfg.wallpapers.desktop}";
|
||||||
|
};
|
||||||
|
};
|
||||||
seat = {
|
seat = {
|
||||||
"*".hide_cursor = "when-typing enable";
|
"*".hide_cursor = "when-typing enable";
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,11 +1,14 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.desktop.sway;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
config = mkIf config.modules.desktop.sway.enable {
|
config = mkIf config.modules.desktop.sway.enable {
|
||||||
programs.swaylock = {
|
programs.swaylock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
image = "~/medias/images/wallpapers/lockscreen.png";
|
image = "${cfg.wallpapers.lockscreen}";
|
||||||
scaling = "center";
|
scaling = "center";
|
||||||
color = "000000";
|
color = "000000";
|
||||||
indicator-radius = 70;
|
indicator-radius = 70;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue