add a sway background

This commit is contained in:
Charlotte 🦝 Delenk 2022-06-22 16:13:11 +01:00
parent 2ad6a007f5
commit cac56f5d00
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 23 additions and 1 deletions

View file

@ -38,6 +38,23 @@
${pkgs.sway-contrib.grimshot}/bin/grimshot "$@"
${pkgs.sway}/bin/swaymsg mode default
'';
bg-full-res = "${pkgs.lotte-art}/2022-06-21-sammythetanuki-lotteplushpride.jxl";
bg-1440p = pkgs.stdenvNoCC {
name = "wayland-background-1440p.png";
nativeBuildInputs = [pkgs.imagemagick];
buildPhase = ''
convert ${bg-full-res} -resize 2560x1440 $out
'';
installPhase = "true";
};
bg-1080p = pkgs.stdenvNoCC {
name = "wayland-background-1080p.png";
nativeBuildInputs = [pkgs.imagemagick];
buildPhase = ''
convert ${bg-full-res} -resize 1920x1080 $out
'';
installPhase = "true";
};
in {
imports = [
./wl-clipboard.nix
@ -61,16 +78,21 @@ in {
};
};
output = {
"eDP-1" = {
bg = "${bg-1080p} fill";
};
"DP-1" = {
mode = "2560x1440@74.971Hz";
position = "0 0";
subpixel = "rgb";
adaptive_sync = "on";
bg = "${bg-1440p} fill";
};
"HDMI-A-1" = {
mode = "1920x1080@60Hz";
position = "2560 0";
subpixel = "rgb";
bg = "${bg-1080p} fill";
};
};
keybindings = let

View file

@ -65,7 +65,7 @@ in {
*/
inherit (noto-variable) noto-fonts-cjk;
inherit (go116) buildGo116Module;
inherit (nix-packages.packages.${system}) plover plover-plugins-manager regenpfeifer plover-regenpfeifer;
inherit (nix-packages.packages.${system}) plover plover-plugins-manager regenpfeifer plover-regenpfeifer lotte-art;
kitty = prev.kitty.overrideAttrs (old: {
patches =
old.patches